Module cosmic::iced_widget::scrollable
source · Expand description
Scrollables let users navigate an endless amount of content with a scrollbar.
§Example
use iced::widget::{column, scrollable, vertical_space};
enum Message {
// ...
}
fn view(state: &State) -> Element<'_, Message> {
scrollable(column![
"Scroll me!",
vertical_space().height(3000),
"You did it!",
]).into()
}
Structs§
- The amount of absolute offset in each direction of a
Scrollable
. - The appearance of the scrollbar of a scrollable.
- The amount of relative offset in each direction of a
Scrollable
. - A widget that can vertically display an infinite amount of content with a scrollbar.
- A scrollbar within a
Scrollable
. - The appearance of the scroller of a scrollable.
- The appearance of a scrollable.
- The current
Viewport
of theScrollable
.
Enums§
- The anchor of the scroller of the
Scrollable
relative to itsViewport
on a given axis. - The direction of
Scrollable
. - The possible status of a
Scrollable
.
Traits§
- The theme catalog of a
Scrollable
.
Functions§
- The default style of a
Scrollable
.
Type Aliases§
- A styling function for a
Scrollable
.