ILayoutManager
trait · ferroui-base · v0.5.0
trait ILayoutManager
Manages measuring and arranging of controls.
Members
add_layout_updatedremove_layout_updatedinvalidate_measureinvalidate_arrangeexecute_layout_passexecute_initial_layout_passregister_effective_viewport_listenerunregister_effective_viewport_listenerdisposeas_bring_into_view_layout_manager
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.
remove_layout_updated
fn remove_layout_updated(self: &Self, token: u64)
Unsubscribes a layout updated handler.
invalidate_measure
fn invalidate_measure(self: &Self, control: &Layoutable)
Notifies the layout manager that a control requires a measure.
invalidate_arrange
fn invalidate_arrange(self: &Self, control: &Layoutable)
Notifies the layout manager that a control requires an arrange.
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.
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.
register_effective_viewport_listener
fn register_effective_viewport_listener(self: &Self, control: &Layoutable)
Registers a control as wanting to receive effective viewport notifications.
unregister_effective_viewport_listener
fn unregister_effective_viewport_listener(self: &Self, control: &Layoutable)
Unregisters a control from receiving effective viewport notifications.
dispose
fn dispose(self: &Self)
Releases the layout manager.
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.