Implement Scrollable in iced_pure
This commit is contained in:
parent
178914ec23
commit
b2670e8752
5 changed files with 809 additions and 377 deletions
|
|
@ -4,6 +4,7 @@ mod column;
|
|||
mod container;
|
||||
mod element;
|
||||
mod row;
|
||||
mod scrollable;
|
||||
mod text;
|
||||
mod tree;
|
||||
|
||||
|
|
@ -13,6 +14,7 @@ pub use column::Column;
|
|||
pub use container::Container;
|
||||
pub use element::Element;
|
||||
pub use row::Row;
|
||||
pub use scrollable::Scrollable;
|
||||
pub use text::Text;
|
||||
pub use tree::Tree;
|
||||
|
||||
|
|
@ -95,6 +97,13 @@ pub fn row<'a, Message, Renderer>() -> Row<'a, Message, Renderer> {
|
|||
Row::new()
|
||||
}
|
||||
|
||||
pub fn scrollable<'a, Message, Renderer>() -> Scrollable<'a, Message, Renderer>
|
||||
where
|
||||
Renderer: iced_native::Renderer,
|
||||
{
|
||||
Scrollable::new()
|
||||
}
|
||||
|
||||
pub fn button<'a, Message, Renderer>(
|
||||
content: impl Into<Element<'a, Message, Renderer>>,
|
||||
) -> Button<'a, Message, Renderer> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue