Rename Primitive::Scrollable to Clip
This commit is contained in:
parent
ace4217b22
commit
85916c9e87
3 changed files with 3 additions and 3 deletions
|
|
@ -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>,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue