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,
bounds: Rectangle,
},
Scrollable {
Clip {
bounds: Rectangle,
offset: u32,
content: Box<Primitive>,

View file

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

View file

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