pub trait LayoutManagerExt: 'static {
    // Required 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);
}

Required 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)

Implementors§