Trait ContainerExt

Source
pub trait ContainerExt: 'static {
Show 30 methods // Required methods fn add<P: IsA<Widget>>(&self, widget: &P); fn check_resize(&self); fn child_notify<P: IsA<Widget>>(&self, child: &P, child_property: &str); fn child_type(&self) -> Type; fn forall<P: FnMut(&Widget)>(&self, callback: P); fn foreach<P: FnMut(&Widget)>(&self, callback: P); fn get_border_width(&self) -> u32; fn get_children(&self) -> Vec<Widget>; fn get_focus_child(&self) -> Option<Widget>; fn get_focus_hadjustment(&self) -> Option<Adjustment>; fn get_focus_vadjustment(&self) -> Option<Adjustment>; fn get_path_for_child<P: IsA<Widget>>( &self, child: &P, ) -> Option<WidgetPath>; fn propagate_draw<P: IsA<Widget>>(&self, child: &P, cr: &Context); fn remove<P: IsA<Widget>>(&self, widget: &P); fn set_border_width(&self, border_width: u32); fn set_focus_chain(&self, focusable_widgets: &[Widget]); fn set_focus_child<P: IsA<Widget>>(&self, child: Option<&P>); fn set_focus_hadjustment<P: IsA<Adjustment>>(&self, adjustment: &P); fn set_focus_vadjustment<P: IsA<Adjustment>>(&self, adjustment: &P); fn unset_focus_chain(&self); fn set_property_child(&self, child: Option<&Widget>); fn get_property_resize_mode(&self) -> ResizeMode; fn set_property_resize_mode(&self, resize_mode: ResizeMode); fn connect_add<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_check_resize<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_remove<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_set_focus_child<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_border_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_resize_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn add<P: IsA<Widget>>(&self, widget: &P)

Source

fn check_resize(&self)

Source

fn child_notify<P: IsA<Widget>>(&self, child: &P, child_property: &str)

Source

fn child_type(&self) -> Type

Source

fn forall<P: FnMut(&Widget)>(&self, callback: P)

Source

fn foreach<P: FnMut(&Widget)>(&self, callback: P)

Source

fn get_border_width(&self) -> u32

Source

fn get_children(&self) -> Vec<Widget>

Source

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

Source

fn get_focus_hadjustment(&self) -> Option<Adjustment>

Source

fn get_focus_vadjustment(&self) -> Option<Adjustment>

Source

fn get_path_for_child<P: IsA<Widget>>(&self, child: &P) -> Option<WidgetPath>

Source

fn propagate_draw<P: IsA<Widget>>(&self, child: &P, cr: &Context)

Source

fn remove<P: IsA<Widget>>(&self, widget: &P)

Source

fn set_border_width(&self, border_width: u32)

Source

fn set_focus_chain(&self, focusable_widgets: &[Widget])

Source

fn set_focus_child<P: IsA<Widget>>(&self, child: Option<&P>)

Source

fn set_focus_hadjustment<P: IsA<Adjustment>>(&self, adjustment: &P)

Source

fn set_focus_vadjustment<P: IsA<Adjustment>>(&self, adjustment: &P)

Source

fn unset_focus_chain(&self)

Source

fn set_property_child(&self, child: Option<&Widget>)

Source

fn get_property_resize_mode(&self) -> ResizeMode

Source

fn set_property_resize_mode(&self, resize_mode: ResizeMode)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_property_resize_mode_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§