Trait gtk::prelude::ToolbarExt

source ·
pub trait ToolbarExt: 'static {
Show 32 methods // Required methods fn drop_index(&self, x: i32, y: i32) -> i32; fn icon_size(&self) -> IconSize; fn item_index(&self, item: &impl IsA<ToolItem>) -> i32; fn n_items(&self) -> i32; fn nth_item(&self, n: i32) -> Option<ToolItem>; fn relief_style(&self) -> ReliefStyle; fn shows_arrow(&self) -> bool; fn style(&self) -> ToolbarStyle; fn insert(&self, item: &impl IsA<ToolItem>, pos: i32); fn set_drop_highlight_item( &self, tool_item: Option<&impl IsA<ToolItem>>, 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 is_icon_size_set(&self) -> bool; fn set_icon_size_set(&self, icon_size_set: bool); fn toolbar_style(&self) -> ToolbarStyle; fn set_toolbar_style(&self, toolbar_style: ToolbarStyle); fn item_expands<T: IsA<Widget>>(&self, item: &T) -> bool; fn set_item_expand<T: IsA<Widget>>(&self, item: &T, expand: bool); fn item_is_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_icon_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_icon_size_set_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_show_arrow_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_toolbar_style_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

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

source

fn icon_size(&self) -> IconSize

source

fn item_index(&self, item: &impl IsA<ToolItem>) -> i32

source

fn n_items(&self) -> i32

source

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

source

fn relief_style(&self) -> ReliefStyle

source

fn shows_arrow(&self) -> bool

source

fn style(&self) -> ToolbarStyle

source

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

source

fn set_drop_highlight_item( &self, tool_item: Option<&impl IsA<ToolItem>>, 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 is_icon_size_set(&self) -> bool

source

fn set_icon_size_set(&self, icon_size_set: bool)

source

fn toolbar_style(&self) -> ToolbarStyle

source

fn set_toolbar_style(&self, toolbar_style: ToolbarStyle)

source

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

source

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

source

fn item_is_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_icon_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

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

source

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

source

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

Implementors§