Skip to main content

Module scrollable

Module scrollable 

Source
Expand description

Scrollables let users navigate an endless amount of content with a scrollbar.

§Example

use iced::widget::{column, scrollable, space};

enum Message {
    // ...
}

fn view(state: &State) -> impl Widget<Message> {
    scrollable(column![
        "Scroll me!",
        space().height(3000),
        "You did it!",
    ])
}

Structs§

AbsoluteOffset
The amount of absolute offset in each direction of a Scrollable.
AutoScroll
The appearance of the autoscroll overlay of a scrollable.
Rail
The appearance of the scrollbar of a scrollable.
RelativeOffset
The amount of relative offset in each direction of a Scrollable.
Scroll
An event describing a scroll of a Scrollable.
Scrollable
A widget that can vertically display an infinite amount of content with a scrollbar.
Scrollbar
A scrollbar within a Scrollable.
Scroller
The appearance of the scroller of a scrollable.
Style
The appearance of a scrollable.
Target
The target of an in-progress smooth scroll.
Viewport
The current Viewport of the Scrollable.

Enums§

Action
An action to perform in response to a Scroll.
Anchor
The anchor of the scroller of the Scrollable relative to its Viewport on a given axis.
Direction
The direction of Scrollable.
Offset
An offset of a Scrollable, in either absolute or relative units.
Source
The source of a scroll notification.
Status
The possible status of a Scrollable.

Traits§

Catalog
The theme catalog of a Scrollable.

Functions§

default
The default style of a Scrollable.

Type Aliases§

StyleFn
A styling function for a Scrollable.