ScrollGestureRecognizer
struct · ferroui-base · v0.5.0
struct ScrollGestureRecognizer
Recognizes the scroll gesture: a touch or pen drag, optionally followed by inertia.
Members
TYPEto_refINERTIAL_SCROLL_SPEED_ENDINERTIAL_RESISTANCEcan_horizontally_scroll_propertycan_vertically_scroll_propertyis_scroll_inertia_enabled_propertyscroll_start_distance_propertyoffset_propertyextent_propertyviewport_propertynewcan_horizontally_scrollset_can_horizontally_scrollcan_vertically_scrollset_can_vertically_scrollis_scroll_inertia_enabledset_is_scroll_inertia_enabledscroll_start_distanceset_scroll_start_distanceextentset_extentoffsetset_offsetviewportset_viewport
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ScrollGestureRecognizer>
Returns a strong reference to this object.
INERTIAL_SCROLL_SPEED_END
const INERTIAL_SCROLL_SPEED_END: f64
Pixels per second speed that is considered to be the stop of inertial scroll.
INERTIAL_RESISTANCE
const INERTIAL_RESISTANCE: f64
The resistance applied to inertial scrolling.
can_horizontally_scroll_property
fn can_horizontally_scroll_property() -> &'static DirectProperty<ScrollGestureRecognizer, bool>
Defines the CanHorizontallyScroll property.
can_vertically_scroll_property
fn can_vertically_scroll_property() -> &'static DirectProperty<ScrollGestureRecognizer, bool>
Defines the CanVerticallyScroll property.
is_scroll_inertia_enabled_property
fn is_scroll_inertia_enabled_property() -> &'static DirectProperty<ScrollGestureRecognizer, bool>
Defines the IsScrollInertiaEnabled property.
scroll_start_distance_property
fn scroll_start_distance_property() -> &'static DirectProperty<ScrollGestureRecognizer, i32>
Defines the ScrollStartDistance property.
offset_property
fn offset_property() -> &'static DirectProperty<ScrollGestureRecognizer, Option<Vector>>
Defines the Offset property.
extent_property
fn extent_property() -> &'static DirectProperty<ScrollGestureRecognizer, Option<Size>>
Defines the Extent property.
viewport_property
fn viewport_property() -> &'static DirectProperty<ScrollGestureRecognizer, Option<Size>>
Defines the Viewport property.
new
fn new() -> Ref<Self>
can_horizontally_scroll
fn can_horizontally_scroll(self: &Self) -> bool
Whether the content can be scrolled horizontally.
set_can_horizontally_scroll
fn set_can_horizontally_scroll(self: &Self, value: bool)
can_vertically_scroll
fn can_vertically_scroll(self: &Self) -> bool
Whether the content can be scrolled vertically.
set_can_vertically_scroll
fn set_can_vertically_scroll(self: &Self, value: bool)
is_scroll_inertia_enabled
fn is_scroll_inertia_enabled(self: &Self) -> bool
Whether scroll inertia is enabled.
set_is_scroll_inertia_enabled
fn set_is_scroll_inertia_enabled(self: &Self, value: bool)
scroll_start_distance
fn scroll_start_distance(self: &Self) -> i32
The minimum distance the pointer must move before scrolling starts.
set_scroll_start_distance
fn set_scroll_start_distance(self: &Self, value: i32)
extent
fn extent(self: &Self) -> Option<Size>
The extent of the scrollable content, if known.
set_extent
fn set_extent(self: &Self, value: Option<Size>)
offset
fn offset(self: &Self) -> Option<Vector>
The current scroll offset, if known.
set_offset
fn set_offset(self: &Self, value: Option<Vector>)
viewport
fn viewport(self: &Self) -> Option<Size>
The size of the viewport, if known.
set_viewport
fn set_viewport(self: &Self, value: Option<Size>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeGestureRecognizerImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<ScrollGestureRecognizer>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplGestureRecognizerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.