Trait ToolbarExt

Source
pub trait ToolbarExt: 'static {
Show 29 methods // Required methods fn get_drop_index(&self, x: i32, y: i32) -> i32; fn get_item_index<P: IsA<ToolItem>>(&self, item: &P) -> i32; fn get_n_items(&self) -> i32; fn get_nth_item(&self, n: i32) -> Option<ToolItem>; fn get_show_arrow(&self) -> bool; fn insert<P: IsA<ToolItem>>(&self, item: &P, pos: i32); fn set_drop_highlight_item<P: IsA<ToolItem>>( &self, tool_item: Option<&P>, index_: i32, ); fn set_icon_size(&self, icon_size: IconSize); fn set_show_arrow(&self, show_arrow: bool); fn set_style(&self, style: ToolbarStyle); fn unset_icon_size(&self); fn unset_style(&self); fn get_property_icon_size_set(&self) -> bool; fn set_property_icon_size_set(&self, icon_size_set: bool); fn get_property_toolbar_style(&self) -> ToolbarStyle; fn set_property_toolbar_style(&self, toolbar_style: ToolbarStyle); fn get_item_expand<T: IsA<Widget>>(&self, item: &T) -> bool; fn set_item_expand<T: IsA<Widget>>(&self, item: &T, expand: bool); fn get_item_homogeneous<T: IsA<Widget>>(&self, item: &T) -> bool; fn set_item_homogeneous<T: IsA<Widget>>(&self, item: &T, homogeneous: bool); fn connect_focus_home_or_end<F: Fn(&Self, bool) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_focus_home_or_end(&self, focus_home: bool) -> bool; fn connect_orientation_changed<F: Fn(&Self, Orientation) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_popup_context_menu<F: Fn(&Self, i32, i32, i32) -> Inhibit + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_style_changed<F: Fn(&Self, ToolbarStyle) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_icon_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_icon_size_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_show_arrow_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_toolbar_style_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_drop_index(&self, x: i32, y: i32) -> i32

Source

fn get_item_index<P: IsA<ToolItem>>(&self, item: &P) -> i32

Source

fn get_n_items(&self) -> i32

Source

fn get_nth_item(&self, n: i32) -> Option<ToolItem>

Source

fn get_show_arrow(&self) -> bool

Source

fn insert<P: IsA<ToolItem>>(&self, item: &P, pos: i32)

Source

fn set_drop_highlight_item<P: IsA<ToolItem>>( &self, tool_item: Option<&P>, index_: i32, )

Source

fn set_icon_size(&self, icon_size: IconSize)

Source

fn set_show_arrow(&self, show_arrow: bool)

Source

fn set_style(&self, style: ToolbarStyle)

Source

fn unset_icon_size(&self)

Source

fn unset_style(&self)

Source

fn get_property_icon_size_set(&self) -> bool

Source

fn set_property_icon_size_set(&self, icon_size_set: bool)

Source

fn get_property_toolbar_style(&self) -> ToolbarStyle

Source

fn set_property_toolbar_style(&self, toolbar_style: ToolbarStyle)

Source

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

Source

fn set_item_expand<T: IsA<Widget>>(&self, item: &T, expand: bool)

Source

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

Source

fn set_item_homogeneous<T: IsA<Widget>>(&self, item: &T, homogeneous: bool)

Source

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

Source

fn emit_focus_home_or_end(&self, focus_home: bool) -> bool

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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