Add horizontal offset to Primitive::Clip
This commit is contained in:
parent
ba470a2b2a
commit
470266f540
6 changed files with 40 additions and 25 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use iced_native::{text, Background, Color, Rectangle};
|
||||
use iced_native::{text, Background, Color, Rectangle, Vector};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Primitive {
|
||||
|
|
@ -25,7 +25,7 @@ pub enum Primitive {
|
|||
},
|
||||
Clip {
|
||||
bounds: Rectangle,
|
||||
offset: u32,
|
||||
offset: Vector<u32>,
|
||||
content: Box<Primitive>,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue