FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    HorizontalScrollViewerBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct HorizontalScrollViewerBehavior
    

    Enables horizontal scrolling of a ScrollViewer using the mouse wheel.

    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<HorizontalScrollViewerBehavior>
    

    Returns a strong reference to this object.

    Source

    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.

    Source

    scroll_change_size_property

    fn scroll_change_size_property() -> &'static StyledProperty<ChangeSize>
    

    Gets or sets the scroll amount used for each wheel delta.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    require_shift_key

    fn require_shift_key(self: &Self) -> bool
    

    Whether the Shift key must be held while scrolling.

    Source

    set_require_shift_key

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

    Source

    scroll_change_size

    fn scroll_change_size(self: &Self) -> ChangeSize
    

    The scroll amount used for each wheel delta.

    Source

    set_scroll_change_size

    fn set_scroll_change_size(self: &Self, value: ChangeSize)
    

    Source

    Trait implementations

    Availability

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