FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Layout

    struct · ferroui-controls-repeater · v0.5.0

    struct Layout
    

    Host-independent layout object. A single instance can keep independent per-host state through each context's LayoutState.

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

    Returns a strong reference to this object.

    Source

    create_default_item_transition_provider

    fn create_default_item_transition_provider(self: &Self) -> Option<Ref<ItemCollectionTransitionProvider>>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    initialize_for_context

    fn initialize_for_context(self: &Self, context: &Ref<LayoutContext>)
    

    Source

    uninitialize_for_context

    fn uninitialize_for_context(self: &Self, context: &Ref<LayoutContext>)
    

    Source

    measure

    fn measure(self: &Self, context: &Ref<LayoutContext>, available_size: Size) -> Size
    

    Source

    arrange

    fn arrange(self: &Self, context: &Ref<LayoutContext>, final_size: Size) -> Size
    

    Source

    on_items_changed

    fn on_items_changed(self: &Self, context: &Ref<LayoutContext>, args: &ItemsChangedEventArgs<'_>)
    

    Source

    measure_invalidated

    fn measure_invalidated(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    arrange_invalidated

    fn arrange_invalidated(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    invalidate_measure

    fn invalidate_measure(self: &Self)
    

    Source

    invalidate_arrange

    fn invalidate_arrange(self: &Self)
    

    Source

    index_based_layout_orientation

    fn index_based_layout_orientation(self: &Self) -> IndexBasedLayoutOrientation
    

    Source

    set_index_based_layout_orientation

    fn set_index_based_layout_orientation(self: &Self, value: IndexBasedLayoutOrientation)
    

    Source

    layout_id

    fn layout_id(self: &Self) -> String
    

    Source

    set_layout_id

    fn set_layout_id(self: &Self, value: String)
    

    Source

    Trait implementations

    Availability

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