Trait LayoutExt

Source
pub trait LayoutExt: 'static {
Show 15 methods // Required methods fn get_bin_window(&self) -> Option<Window>; fn get_size(&self) -> (u32, u32); fn move_<P: IsA<Widget>>(&self, child_widget: &P, x: i32, y: i32); fn put<P: IsA<Widget>>(&self, child_widget: &P, x: i32, y: i32); fn set_size(&self, width: u32, height: u32); fn get_property_height(&self) -> u32; fn set_property_height(&self, height: u32); fn get_property_width(&self) -> u32; fn set_property_width(&self, width: u32); fn get_child_x<T: IsA<Widget>>(&self, item: &T) -> i32; fn set_child_x<T: IsA<Widget>>(&self, item: &T, x: i32); fn get_child_y<T: IsA<Widget>>(&self, item: &T) -> i32; fn set_child_y<T: IsA<Widget>>(&self, item: &T, y: i32); fn connect_property_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_bin_window(&self) -> Option<Window>

Source

fn get_size(&self) -> (u32, u32)

Source

fn move_<P: IsA<Widget>>(&self, child_widget: &P, x: i32, y: i32)

Source

fn put<P: IsA<Widget>>(&self, child_widget: &P, x: i32, y: i32)

Source

fn set_size(&self, width: u32, height: u32)

Source

fn get_property_height(&self) -> u32

Source

fn set_property_height(&self, height: u32)

Source

fn get_property_width(&self) -> u32

Source

fn set_property_width(&self, width: u32)

Source

fn get_child_x<T: IsA<Widget>>(&self, item: &T) -> i32

Source

fn set_child_x<T: IsA<Widget>>(&self, item: &T, x: i32)

Source

fn get_child_y<T: IsA<Widget>>(&self, item: &T) -> i32

Source

fn set_child_y<T: IsA<Widget>>(&self, item: &T, y: i32)

Source

fn connect_property_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

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§

Source§

impl<O: IsA<Layout>> LayoutExt for O