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.
Members
item_countget_item_atget_or_create_element_atrecycle_elementlayout_stateset_layout_staterealization_rectvisible_rectrecommended_anchor_indexlayout_originset_layout_originchildrenis_virtualizing
item_count
fn item_count(self: &Self) -> i32
get_item_at
fn get_item_at(self: &Self, index: i32) -> Option<BoxedValue>
get_or_create_element_at
fn get_or_create_element_at(self: &Self, index: i32, options: ElementRealizationOptions) -> Ref<Control>
recycle_element
fn recycle_element(self: &Self, element: &Ref<Control>)
layout_state
fn layout_state(self: &Self) -> Option<BoxedValue>
set_layout_state
fn set_layout_state(self: &Self, value: Option<BoxedValue>)
realization_rect
fn realization_rect(self: &Self) -> Rect
visible_rect
fn visible_rect(self: &Self) -> Rect
recommended_anchor_index
fn recommended_anchor_index(self: &Self) -> i32
layout_origin
fn layout_origin(self: &Self) -> Point
set_layout_origin
fn set_layout_origin(self: &Self, value: Point)
children
fn children(self: &Self) -> Vec<Ref<Control>>
is_virtualizing
fn is_virtualizing(self: &Self) -> bool
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.