pub trait ToolItemExt: 'static {
Show 30 methods
// Required methods
fn get_ellipsize_mode(&self) -> EllipsizeMode;
fn get_expand(&self) -> bool;
fn get_homogeneous(&self) -> bool;
fn get_icon_size(&self) -> IconSize;
fn get_is_important(&self) -> bool;
fn get_orientation(&self) -> Orientation;
fn get_proxy_menu_item(&self, menu_item_id: &str) -> Option<Widget>;
fn get_relief_style(&self) -> ReliefStyle;
fn get_text_alignment(&self) -> f32;
fn get_text_orientation(&self) -> Orientation;
fn get_text_size_group(&self) -> Option<SizeGroup>;
fn get_toolbar_style(&self) -> ToolbarStyle;
fn get_use_drag_window(&self) -> bool;
fn get_visible_horizontal(&self) -> bool;
fn get_visible_vertical(&self) -> bool;
fn rebuild_menu(&self);
fn retrieve_proxy_menu_item(&self) -> Option<Widget>;
fn set_expand(&self, expand: bool);
fn set_homogeneous(&self, homogeneous: bool);
fn set_is_important(&self, is_important: bool);
fn set_proxy_menu_item<P: IsA<Widget>>(
&self,
menu_item_id: &str,
menu_item: Option<&P>,
);
fn set_use_drag_window(&self, use_drag_window: bool);
fn set_visible_horizontal(&self, visible_horizontal: bool);
fn set_visible_vertical(&self, visible_vertical: bool);
fn toolbar_reconfigured(&self);
fn connect_create_menu_proxy<F: Fn(&Self) -> Inhibit + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_toolbar_reconfigured<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_is_important_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_visible_horizontal_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_visible_vertical_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Required Methods§
fn get_ellipsize_mode(&self) -> EllipsizeMode
fn get_expand(&self) -> bool
fn get_homogeneous(&self) -> bool
fn get_icon_size(&self) -> IconSize
fn get_is_important(&self) -> bool
fn get_orientation(&self) -> Orientation
fn get_relief_style(&self) -> ReliefStyle
fn get_text_alignment(&self) -> f32
fn get_text_orientation(&self) -> Orientation
fn get_text_size_group(&self) -> Option<SizeGroup>
fn get_toolbar_style(&self) -> ToolbarStyle
fn get_use_drag_window(&self) -> bool
fn get_visible_horizontal(&self) -> bool
fn get_visible_vertical(&self) -> bool
fn set_expand(&self, expand: bool)
fn set_homogeneous(&self, homogeneous: bool)
fn set_is_important(&self, is_important: bool)
fn set_use_drag_window(&self, use_drag_window: bool)
fn set_visible_horizontal(&self, visible_horizontal: bool)
fn set_visible_vertical(&self, visible_vertical: bool)
fn toolbar_reconfigured(&self)
fn connect_toolbar_reconfigured<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_is_important_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_visible_horizontal_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_visible_vertical_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.