pub trait ToolShellExt: 'static {
    fn ellipsize_mode(&self) -> EllipsizeMode;
    fn icon_size(&self) -> IconSize;
    fn orientation(&self) -> Orientation;
    fn relief_style(&self) -> ReliefStyle;
    fn style(&self) -> ToolbarStyle;
    fn text_alignment(&self) -> f32;
    fn text_orientation(&self) -> Orientation;
    fn text_size_group(&self) -> Option<SizeGroup>;
    fn rebuild_menu(&self);
}
Expand description

Trait containing all ToolShell methods.

Implementors

ToolItemGroup, ToolShell, Toolbar

Required Methods

Retrieves the current ellipsize mode for the tool shell. Tool items must not call this function directly, but rely on ToolItemExt::ellipsize_mode() instead.

Returns

the current ellipsize mode of self

Retrieves the icon size for the tool shell. Tool items must not call this function directly, but rely on ToolItemExt::icon_size() instead.

Returns

the current size (IconSize) for icons of self

Retrieves the current orientation for the tool shell. Tool items must not call this function directly, but rely on ToolItemExt::orientation() instead.

Returns

the current orientation of self

Returns the relief style of buttons on self. Tool items must not call this function directly, but rely on ToolItemExt::relief_style() instead.

Returns

The relief style of buttons on self.

Retrieves whether the tool shell has text, icons, or both. Tool items must not call this function directly, but rely on ToolItemExt::toolbar_style() instead.

Returns

the current style of self

Retrieves the current text alignment for the tool shell. Tool items must not call this function directly, but rely on ToolItemExt::text_alignment() instead.

Returns

the current text alignment of self

Retrieves the current text orientation for the tool shell. Tool items must not call this function directly, but rely on ToolItemExt::text_orientation() instead.

Returns

the current text orientation of self

Retrieves the current text size group for the tool shell. Tool items must not call this function directly, but rely on ToolItemExt::text_size_group() instead.

Returns

the current text size group of self

Calling this function signals the tool shell that the overflow menu item for tool items have changed. If there is an overflow menu and if it is visible when this function it called, the menu will be rebuilt.

Tool items must not call this function directly, but rely on ToolItemExt::rebuild_menu() instead.

Implementors