Add horizontal offset to Primitive::Clip

This commit is contained in:
Héctor Ramón Jiménez 2019-11-05 03:16:46 +01:00
parent ba470a2b2a
commit 470266f540
6 changed files with 40 additions and 25 deletions

View file

@ -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>,
},
}