gtk.tool_shell_mixin

Module for [ToolShell] interface mixin

Templates 2

tmplToolShellT()

The #GtkToolShell interface allows container widgets to provide additional information when embedding #GtkToolItem widgets.

Functions
pango.types.EllipsizeMode getEllipsizeMode()

Retrieves the current ellipsize mode for the tool shell. Tool items must not call this function directly, but rely on [gtk.tool_item.ToolItem.getEllipsizeMode] instead.

Returns

the current ellipsize mode of shell
gtk.types.IconSize getIconSize()

Retrieves the icon size for the tool shell. Tool items must not call this function directly, but rely on [gtk.tool_item.ToolItem.getIconSize] instead.

Returns

the current size (#GtkIconSize) for icons of shell
gtk.types.Orientation toolShellGetOrientation()

Retrieves the current orientation for the tool shell. Tool items must not call this function directly, but rely on [gtk.tool_item.ToolItem.getOrientation] instead.

Returns

the current orientation of shell
gtk.types.ReliefStyle getReliefStyle()

Returns the relief style of buttons on shell. Tool items must not call this function directly, but rely on [gtk.tool_item.ToolItem.getReliefStyle] instead.

Returns

The relief style of buttons on shell.

Retrieves whether the tool shell has text, icons, or both. Tool items must not call this function directly, but rely on [gtk.tool_item.ToolItem.getToolbarStyle] instead.

Returns

the current style of shell
float getTextAlignment()

Retrieves the current text alignment for the tool shell. Tool items must not call this function directly, but rely on [gtk.tool_item.ToolItem.getTextAlignment] instead.

Returns

the current text alignment of shell
gtk.types.Orientation getTextOrientation()

Retrieves the current text orientation for the tool shell. Tool items must not call this function directly, but rely on [gtk.tool_item.ToolItem.getTextOrientation] instead.

Returns

the current text orientation of shell
gtk.size_group.SizeGroup getTextSizeGroup()

Retrieves the current text size group for the tool shell. Tool items must not call this function directly, but rely on [gtk.tool_item.ToolItem.getTextSizeGroup] instead.

Returns

the current text size group of shell
void rebuildMenu()

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 [gtk.tool_item.ToolItem.rebuildMenu] instead.

tmplToolShellGidBuilderT()