FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RefreshContainer

    struct · ferroui-controls · v0.5.0

    struct RefreshContainer
    

    Represents a container control that provides a RefreshVisualizer and pull-to-refresh functionality for scrollable content.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<RefreshContainer>
    

    Returns a strong reference to this object.

    Source

    visualizer_property

    fn visualizer_property() -> &'static DirectProperty<RefreshContainer, Option<Ref<RefreshVisualizer>>>
    

    Defines the Visualizer property.

    Source

    pull_direction_property

    fn pull_direction_property() -> &'static StyledProperty<PullDirection>
    

    Defines the PullDirection property.

    Source

    is_mouse_enabled_property

    fn is_mouse_enabled_property() -> &'static StyledProperty<bool>
    

    Defines the IsMouseEnabled property.

    Allows to enable the pull to refresh gesture for devices using a mouse. Disabled by default.

    Source

    refresh_requested_event

    fn refresh_requested_event() -> &'static RoutedEvent<RefreshRequestedEventArgs>
    

    Defines the RefreshRequested event.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    is_mouse_enabled

    fn is_mouse_enabled(self: &Self) -> bool
    

    Gets or sets a value that indicates whether the pull-to-refresh gesture is enabled for desktop devices. Allows to enable the pull to refresh gesture for devices using a mouse. Disabled by default.

    Source

    set_is_mouse_enabled

    fn set_is_mouse_enabled(self: &Self, value: bool)
    

    Source

    visualizer

    fn visualizer(self: &Self) -> Option<Ref<RefreshVisualizer>>
    

    Gets or sets the RefreshVisualizer for this container.

    Source

    set_visualizer

    fn set_visualizer(self: &Self, value: Option<Ref<RefreshVisualizer>>)
    

    Source

    pull_direction

    fn pull_direction(self: &Self) -> PullDirection
    

    Gets or sets a value that specifies the direction to pull to initiate a refresh.

    Source

    set_pull_direction

    fn set_pull_direction(self: &Self, value: PullDirection)
    

    Source

    refresh_requested

    fn refresh_requested(self: &Self, handler: impl Fn(&Interactive, &RefreshRequestedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when an update of the content has been initiated.

    Source

    request_refresh

    fn request_refresh(self: &Self)
    

    Initiates an update of the content.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.