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.
Members
TYPEto_refvisualizer_propertypull_direction_propertyis_mouse_enabled_propertyrefresh_requested_eventconstructnewis_mouse_enabledset_is_mouse_enabledvisualizerset_visualizerpull_directionset_pull_directionrefresh_requestedrequest_refresh
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RefreshContainer>
Returns a strong reference to this object.
visualizer_property
fn visualizer_property() -> &'static DirectProperty<RefreshContainer, Option<Ref<RefreshVisualizer>>>
Defines the Visualizer property.
pull_direction_property
fn pull_direction_property() -> &'static StyledProperty<PullDirection>
Defines the PullDirection property.
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.
refresh_requested_event
fn refresh_requested_event() -> &'static RoutedEvent<RefreshRequestedEventArgs>
Defines the RefreshRequested event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
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.
set_is_mouse_enabled
fn set_is_mouse_enabled(self: &Self, value: bool)
visualizer
fn visualizer(self: &Self) -> Option<Ref<RefreshVisualizer>>
Gets or sets the RefreshVisualizer for this container.
set_visualizer
fn set_visualizer(self: &Self, value: Option<Ref<RefreshVisualizer>>)
pull_direction
fn pull_direction(self: &Self) -> PullDirection
Gets or sets a value that specifies the direction to pull to initiate a refresh.
set_pull_direction
fn set_pull_direction(self: &Self, value: PullDirection)
refresh_requested
fn refresh_requested(self: &Self, handler: impl Fn(&Interactive, &RefreshRequestedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when an update of the content has been initiated.
request_refresh
fn request_refresh(self: &Self)
Initiates an update of the content.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<RefreshContainer>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplContentControlImplFerroObjectImplTemplatedControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.