Rename Primitive::Scrollable to Clip

This commit is contained in:
Héctor Ramón Jiménez 2019-10-29 19:50:34 +01:00
parent ace4217b22
commit 85916c9e87
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ pub enum Primitive {
path: String, path: String,
bounds: Rectangle, bounds: Rectangle,
}, },
Scrollable { Clip {
bounds: Rectangle, bounds: Rectangle,
offset: u32, offset: u32,
content: Box<Primitive>, content: Box<Primitive>,

View file

@ -270,7 +270,7 @@ impl Renderer {
scale: [bounds.width, bounds.height], scale: [bounds.width, bounds.height],
}); });
} }
Primitive::Scrollable { Primitive::Clip {
bounds, bounds,
offset, offset,
content, content,

View file

@ -56,7 +56,7 @@ impl scrollable::Renderer for Renderer {
let (content, mouse_cursor) = let (content, mouse_cursor) =
scrollable.content.draw(self, content, cursor_position); scrollable.content.draw(self, content, cursor_position);
let primitive = Primitive::Scrollable { let primitive = Primitive::Clip {
bounds, bounds,
offset, offset,
content: Box::new(content), content: Box::new(content),