summaryrefslogtreecommitdiffstats
path: root/graphics/src/primitive.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-25 16:16:35 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-25 16:35:02 +0700
commit4a11cbd99445338619dfaf1f327dbc25b2983cb7 (patch)
tree254598ff97f17cb33e44bd1402323d3b6892cb6b /graphics/src/primitive.rs
parent41394b4e90a81a43c796c070e706e6aa4d8652bc (diff)
downloadiced-4a11cbd99445338619dfaf1f327dbc25b2983cb7.tar.gz
iced-4a11cbd99445338619dfaf1f327dbc25b2983cb7.tar.bz2
iced-4a11cbd99445338619dfaf1f327dbc25b2983cb7.zip
Implement `Widget::mouse_interaction` for `PaneGrid`
... and fix rendering of drag interaction in `PaneGrid` by introducing an explicit `with_translation` method to `Renderer` and simplifying the `with_layer` and `Clip` primitive.
Diffstat (limited to 'graphics/src/primitive.rs')
-rw-r--r--graphics/src/primitive.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/graphics/src/primitive.rs b/graphics/src/primitive.rs
index 32f8383d..b984feaa 100644
--- a/graphics/src/primitive.rs
+++ b/graphics/src/primitive.rs
@@ -66,8 +66,6 @@ pub enum Primitive {
Clip {
/// The bounds of the clip
bounds: Rectangle,
- /// The offset transformation of the clip
- offset: Vector<u32>,
/// The content of the clip
content: Box<Primitive>,
},