FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ILayoutManager

    trait · ferroui-base · v0.5.0

    trait ILayoutManager
    

    Manages measuring and arranging of controls.

    View source

    Members

    add_layout_updated

    fn add_layout_updated(self: &Self, handler: Rc<dyn Fn() -> ()>) -> u64
    

    Subscribes to the event raised when the layout manager completes a layout pass. Returns a token for remove_layout_updated.

    Source

    remove_layout_updated

    fn remove_layout_updated(self: &Self, token: u64)
    

    Unsubscribes a layout updated handler.

    Source

    invalidate_measure

    fn invalidate_measure(self: &Self, control: &Layoutable)
    

    Notifies the layout manager that a control requires a measure.

    Source

    invalidate_arrange

    fn invalidate_arrange(self: &Self, control: &Layoutable)
    

    Notifies the layout manager that a control requires an arrange.

    Source

    execute_layout_pass

    fn execute_layout_pass(self: &Self)
    

    Executes a layout pass.

    You should not usually need to call this method explicitly: the layout manager schedules layout passes itself.

    Source

    execute_initial_layout_pass

    fn execute_initial_layout_pass(self: &Self)
    

    Executes the initial layout pass on a layout root.

    You should not usually need to call this method explicitly: it is called by the layout root when it is first shown.

    Source

    register_effective_viewport_listener

    fn register_effective_viewport_listener(self: &Self, control: &Layoutable)
    

    Registers a control as wanting to receive effective viewport notifications.

    Source

    unregister_effective_viewport_listener

    fn unregister_effective_viewport_listener(self: &Self, control: &Layoutable)
    

    Unregisters a control from receiving effective viewport notifications.

    Source

    dispose

    fn dispose(self: &Self)
    

    Releases the layout manager.

    Source

    as_bring_into_view_layout_manager

    fn as_bring_into_view_layout_manager(self: &Self) -> Option<&dyn IBringIntoViewLayoutManager>
    

    The layout manager viewed as one that handles bring-into-view requests, if it does.

    Source

    Trait implementations

    Availability

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