HorizontalScrollViewerBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct HorizontalScrollViewerBehavior
Enables horizontal scrolling of a ScrollViewer using the mouse wheel.
Members
TYPEto_refrequire_shift_key_propertyscroll_change_size_propertyconstructnewrequire_shift_keyset_require_shift_keyscroll_change_sizeset_scroll_change_size
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<HorizontalScrollViewerBehavior>
Returns a strong reference to this object.
require_shift_key_property
fn require_shift_key_property() -> &'static StyledProperty<bool>
Gets or sets a value indicating whether the Shift key must be held while scrolling.
scroll_change_size_property
fn scroll_change_size_property() -> &'static StyledProperty<ChangeSize>
Gets or sets the scroll amount used for each wheel delta.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
require_shift_key
fn require_shift_key(self: &Self) -> bool
Whether the Shift key must be held while scrolling.
set_require_shift_key
fn set_require_shift_key(self: &Self, value: bool)
scroll_change_size
fn scroll_change_size(self: &Self) -> ChangeSize
The scroll amount used for each wheel delta.
set_scroll_change_size
fn set_scroll_change_size(self: &Self, value: ChangeSize)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<HorizontalScrollViewerBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.