Gtk.ToolShell


Gtk.ToolShell — Interface for containers containing Gtk.ToolItem widgets

Object Hierarchy:

    GInterface
    ╰── Gtk.ToolShell

See also:

Gtk.Toolbar, Gtk.ToolItem


Functions:

Description:

The Gtk.ToolShell interface allows container widgets to provide additional information when embedding Gtk.ToolItem widgets.


Function Details:

get_ellipsize_mode()

get_ellipsize_mode (self) -> Pango.EllipsizeMode

Retrieves the current ellipsize mode for the tool shell. Tool items must notcall this function directly, but rely on `Gtk.ToolItem:get_ellipsize_mode()`instead.

  • Returns: the current ellipsize mode of shell

  • Since: 2.20


get_icon_size()

get_icon_size (self) -> int

Retrieves the icon size for the tool shell. Tool items must not call thisfunction directly, but rely on `Gtk.ToolItem:get_icon_size()` instead.

  • Returns: the current size for icons of shell.

  • Since: 2.14


get_orientation()

get_orientation (self) -> Gtk.Orientation

Retrieves the current orientation for the tool shell. Tool items must notcall this function directly, but rely on `Gtk.ToolItem:get_orientation()`instead.

  • Returns: the current orientation of shell

  • Since: 2.14


get_relief_style()

get_relief_style (self) -> Gtk.ReliefStyle

Returns the relief style of buttons on shell. Tool items must not call thisfunction directly, but rely on `Gtk.ToolItem:get_relief_style()` instead.

  • Returns: The relief style of buttons on shell.

  • Since: 2.14


get_style()

get_style (self) -> Gtk.ToolbarStyle

Retrieves whether the tool shell has text, icons, or both. Tool items mustnot call this function directly, but rely on `Gtk.ToolItem:get_toolbar_style()`instead.

  • Returns: the current style of shell

  • Since: 2.14


get_text_alignment()

get_text_alignment (self) -> float

Retrieves the current text alignment for the tool shell. Tool items must notcall this function directly, but rely on `Gtk.ToolItem:get_text_alignment()`instead.

  • Returns: the current text alignment of shell

  • Since: 2.20


get_text_orientation()

get_text_orientation (self) -> Gtk.Orientation

Retrieves the current text orientation for the tool shell. Tool items must notcall this function directly, but rely on `Gtk.ToolItem:get_text_orientation()`instead.

  • Returns: the current text orientation of shell

  • Since: 2.20


rebuild_menu()

rebuild_menu (self)

Calling this function signals the tool shell that the overflow menu item fortool items have changed. If there is an overflow menu and if it is visiblewhen this function it called, the menu will be rebuilt. Tool items must not call this function directly, but rely on`Gtk.ToolItem:rebuild_menu()` instead.

  • Since: 2.14

get_text_size_group()

get_text_size_group (self) -> Gtk.SizeGroup

Retrieves the current text size group for the tool shell. Tool items must notcall this function directly, but rely on `Gtk.ToolItem:get_text_size_group()`instead.

  • Returns: the current text size group of shell.

  • Since: 2.20


results matching ""

    No results matching ""