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,
|
||||
bounds: Rectangle,
|
||||
},
|
||||
Scrollable {
|
||||
Clip {
|
||||
bounds: Rectangle,
|
||||
offset: u32,
|
||||
content: Box<Primitive>,
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ impl Renderer {
|
|||
scale: [bounds.width, bounds.height],
|
||||
});
|
||||
}
|
||||
Primitive::Scrollable {
|
||||
Primitive::Clip {
|
||||
bounds,
|
||||
offset,
|
||||
content,
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue