[go: up one dir, main page]

LayoutManagerExt

Trait LayoutManagerExt 

Source
pub trait LayoutManagerExt: IsA<LayoutManager> + 'static {
    // Provided methods
    fn allocate(
        &self,
        widget: &impl IsA<Widget>,
        width: i32,
        height: i32,
        baseline: i32,
    ) { ... }
    fn layout_child(&self, child: &impl IsA<Widget>) -> LayoutChild { ... }
    fn request_mode(&self) -> SizeRequestMode { ... }
    fn widget(&self) -> Option<Widget> { ... }
    fn layout_changed(&self) { ... }
    fn measure(
        &self,
        widget: &impl IsA<Widget>,
        orientation: Orientation,
        for_size: i32,
    ) -> (i32, i32, i32, i32) { ... }
}

Provided Methods§

Source

fn allocate( &self, widget: &impl IsA<Widget>, width: i32, height: i32, baseline: i32, )

Source

fn layout_child(&self, child: &impl IsA<Widget>) -> LayoutChild

Source

fn request_mode(&self) -> SizeRequestMode

Source

fn widget(&self) -> Option<Widget>

Source

fn layout_changed(&self)

Source

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

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§