FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LayoutContextHost

    trait · ferroui-controls-repeater · v0.5.0

    trait LayoutContextHost
    

    The Rust host bridge for the overridable WinUI layout-context contract.

    Implementations must release their interior borrows before creating, measuring, recycling or invoking other application callbacks.

    View source

    Members

    item_count

    fn item_count(self: &Self) -> i32
    

    Source

    get_item_at

    fn get_item_at(self: &Self, index: i32) -> Option<BoxedValue>
    

    Source

    get_or_create_element_at

    fn get_or_create_element_at(self: &Self, index: i32, options: ElementRealizationOptions) -> Ref<Control>
    

    Source

    recycle_element

    fn recycle_element(self: &Self, element: &Ref<Control>)
    

    Source

    layout_state

    fn layout_state(self: &Self) -> Option<BoxedValue>
    

    Source

    set_layout_state

    fn set_layout_state(self: &Self, value: Option<BoxedValue>)
    

    Source

    realization_rect

    fn realization_rect(self: &Self) -> Rect
    

    Source

    visible_rect

    fn visible_rect(self: &Self) -> Rect
    

    Source

    fn recommended_anchor_index(self: &Self) -> i32
    

    Source

    layout_origin

    fn layout_origin(self: &Self) -> Point
    

    Source

    set_layout_origin

    fn set_layout_origin(self: &Self, value: Point)
    

    Source

    children

    fn children(self: &Self) -> Vec<Ref<Control>>
    

    Source

    is_virtualizing

    fn is_virtualizing(self: &Self) -> bool
    

    Source

    Availability

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