FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ItemsControlAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct ItemsControlAutomationPeer
    

    An automation peer which represents an ItemsControl.

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

    Returns a strong reference to this object.

    Source

    scroller

    fn scroller(self: &Self) -> Option<Rc<dyn IScrollProvider>>
    

    Gets the scroll provider of the element that scrolls the items of the owner, searching for it on the first call.

    Source

    construct

    fn construct(owner: &ItemsControl) -> Self
    

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

    Source

    new

    fn new(owner: &ItemsControl) -> Ref<Self>
    

    Initializes a new peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<ItemsControl>
    

    Gets the owning items control.

    Source

    horizontally_scrollable

    fn horizontally_scrollable(self: &Self) -> bool
    

    Gets a value that indicates whether the control can scroll horizontally (the scroll provider contract).

    Source

    horizontal_scroll_percent

    fn horizontal_scroll_percent(self: &Self) -> f64
    

    Gets the current horizontal scroll position (the scroll provider contract).

    Source

    horizontal_view_size

    fn horizontal_view_size(self: &Self) -> f64
    

    Gets the current horizontal view size (the scroll provider contract).

    Source

    vertically_scrollable

    fn vertically_scrollable(self: &Self) -> bool
    

    Gets a value that indicates whether the control can scroll vertically (the scroll provider contract).

    Source

    vertical_scroll_percent

    fn vertical_scroll_percent(self: &Self) -> f64
    

    Gets the current vertical scroll position (the scroll provider contract).

    Source

    vertical_view_size

    fn vertical_view_size(self: &Self) -> f64
    

    Gets the vertical view size (the scroll provider contract).

    Source

    scroll

    fn scroll(self: &Self, horizontal_amount: ScrollAmount, vertical_amount: ScrollAmount) -> Result<(), AutomationError>
    

    Scrolls the visible region of the content area horizontally and vertically (the scroll provider contract).

    Source

    set_scroll_percent

    fn set_scroll_percent(self: &Self, horizontal_percent: f64, vertical_percent: f64) -> Result<(), AutomationError>
    

    Sets the horizontal and vertical scroll position as a percentage of the total content area within the control (the scroll provider contract).

    Source

    Trait implementations

    Availability

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