Trait StackExt

Source
pub trait StackExt: 'static {
Show 42 methods // Required methods fn add_named<P: IsA<Widget>>(&self, child: &P, name: &str); fn add_titled<P: IsA<Widget>>(&self, child: &P, name: &str, title: &str); fn get_child_by_name(&self, name: &str) -> Option<Widget>; fn get_hhomogeneous(&self) -> bool; fn get_homogeneous(&self) -> bool; fn get_interpolate_size(&self) -> bool; fn get_transition_duration(&self) -> u32; fn get_transition_running(&self) -> bool; fn get_transition_type(&self) -> StackTransitionType; fn get_vhomogeneous(&self) -> bool; fn get_visible_child(&self) -> Option<Widget>; fn get_visible_child_name(&self) -> Option<GString>; fn set_hhomogeneous(&self, hhomogeneous: bool); fn set_homogeneous(&self, homogeneous: bool); fn set_interpolate_size(&self, interpolate_size: bool); fn set_transition_duration(&self, duration: u32); fn set_transition_type(&self, transition: StackTransitionType); fn set_vhomogeneous(&self, vhomogeneous: bool); fn set_visible_child<P: IsA<Widget>>(&self, child: &P); fn set_visible_child_full( &self, name: &str, transition: StackTransitionType, ); fn set_visible_child_name(&self, name: &str); fn get_property_interpolate_size(&self) -> bool; fn set_property_interpolate_size(&self, interpolate_size: bool); fn get_child_icon_name<T: IsA<Widget>>(&self, item: &T) -> Option<GString>; fn set_child_icon_name<T: IsA<Widget>>( &self, item: &T, icon_name: Option<&str>, ); fn get_child_name<T: IsA<Widget>>(&self, item: &T) -> Option<GString>; fn set_child_name<T: IsA<Widget>>(&self, item: &T, name: Option<&str>); fn get_child_needs_attention<T: IsA<Widget>>(&self, item: &T) -> bool; fn set_child_needs_attention<T: IsA<Widget>>( &self, item: &T, needs_attention: bool, ); fn get_child_position<T: IsA<Widget>>(&self, item: &T) -> i32; fn set_child_position<T: IsA<Widget>>(&self, item: &T, position: i32); fn get_child_title<T: IsA<Widget>>(&self, item: &T) -> Option<GString>; fn set_child_title<T: IsA<Widget>>(&self, item: &T, title: Option<&str>); fn connect_property_hhomogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_homogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_interpolate_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_transition_duration_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_transition_running_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_transition_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_vhomogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_visible_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_visible_child_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn add_named<P: IsA<Widget>>(&self, child: &P, name: &str)

Source

fn add_titled<P: IsA<Widget>>(&self, child: &P, name: &str, title: &str)

Source

fn get_child_by_name(&self, name: &str) -> Option<Widget>

Source

fn get_hhomogeneous(&self) -> bool

Source

fn get_homogeneous(&self) -> bool

Source

fn get_interpolate_size(&self) -> bool

Source

fn get_transition_duration(&self) -> u32

Source

fn get_transition_running(&self) -> bool

Source

fn get_transition_type(&self) -> StackTransitionType

Source

fn get_vhomogeneous(&self) -> bool

Source

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

Source

fn get_visible_child_name(&self) -> Option<GString>

Source

fn set_hhomogeneous(&self, hhomogeneous: bool)

Source

fn set_homogeneous(&self, homogeneous: bool)

Source

fn set_interpolate_size(&self, interpolate_size: bool)

Source

fn set_transition_duration(&self, duration: u32)

Source

fn set_transition_type(&self, transition: StackTransitionType)

Source

fn set_vhomogeneous(&self, vhomogeneous: bool)

Source

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

Source

fn set_visible_child_full(&self, name: &str, transition: StackTransitionType)

Source

fn set_visible_child_name(&self, name: &str)

Source

fn get_property_interpolate_size(&self) -> bool

Source

fn set_property_interpolate_size(&self, interpolate_size: bool)

Source

fn get_child_icon_name<T: IsA<Widget>>(&self, item: &T) -> Option<GString>

Source

fn set_child_icon_name<T: IsA<Widget>>(&self, item: &T, icon_name: Option<&str>)

Source

fn get_child_name<T: IsA<Widget>>(&self, item: &T) -> Option<GString>

Source

fn set_child_name<T: IsA<Widget>>(&self, item: &T, name: Option<&str>)

Source

fn get_child_needs_attention<T: IsA<Widget>>(&self, item: &T) -> bool

Source

fn set_child_needs_attention<T: IsA<Widget>>( &self, item: &T, needs_attention: bool, )

Source

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

Source

fn set_child_position<T: IsA<Widget>>(&self, item: &T, position: i32)

Source

fn get_child_title<T: IsA<Widget>>(&self, item: &T) -> Option<GString>

Source

fn set_child_title<T: IsA<Widget>>(&self, item: &T, title: Option<&str>)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_property_visible_child_name_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<Stack>> StackExt for O