LayoutManagerImpl

Trait LayoutManagerImpl 

Source
pub trait LayoutManagerImpl: ObjectImpl + ObjectSubclass
where Self::Type: IsA<LayoutManager>,
{ // Provided methods fn allocate(&self, widget: &Widget, width: i32, height: i32, baseline: i32) { ... } fn create_layout_child( &self, widget: &Widget, for_child: &Widget, ) -> LayoutChild { ... } fn layout_child_type() -> Option<Type> { ... } fn request_mode(&self, widget: &Widget) -> SizeRequestMode { ... } fn measure( &self, widget: &Widget, orientation: Orientation, for_size: i32, ) -> (i32, i32, i32, i32) { ... } fn root(&self) { ... } fn unroot(&self) { ... } }

Provided Methods§

Source

fn allocate(&self, widget: &Widget, width: i32, height: i32, baseline: i32)

Source

fn create_layout_child( &self, widget: &Widget, for_child: &Widget, ) -> LayoutChild

Source

fn layout_child_type() -> Option<Type>

Only set if the child implemented LayoutChildImpl

Source

fn request_mode(&self, widget: &Widget) -> SizeRequestMode

Source

fn measure( &self, widget: &Widget, orientation: Orientation, for_size: i32, ) -> (i32, i32, i32, i32)

Source

fn root(&self)

Source

fn unroot(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§