Interface

GtkToolShell

Description [src]

interface Gtk.ToolShell : Gtk.Widget

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

Prerequisite

In order to implement ToolShell, your type must inherit fromGtkWidget.

Implementations

Instance methods

gtk_tool_shell_get_ellipsize_mode

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

since: 2.20

gtk_tool_shell_get_icon_size

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

since: 2.14

gtk_tool_shell_get_orientation

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

since: 2.14

gtk_tool_shell_get_relief_style

Returns the relief style of buttons on shell. Tool items must not call this function directly, but rely on gtk_tool_item_get_relief_style() instead.

since: 2.14

gtk_tool_shell_get_style

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

since: 2.14

gtk_tool_shell_get_text_alignment

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

since: 2.20

gtk_tool_shell_get_text_orientation

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

since: 2.20

gtk_tool_shell_get_text_size_group

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

since: 2.20

gtk_tool_shell_rebuild_menu

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.

since: 2.14

Interface structure

struct GtkToolShellIface {
  GtkIconSize (* get_icon_size) (
    GtkToolShell* shell
  );
  GtkOrientation (* get_orientation) (
    GtkToolShell* shell
  );
  GtkToolbarStyle (* get_style) (
    GtkToolShell* shell
  );
  GtkReliefStyle (* get_relief_style) (
    GtkToolShell* shell
  );
  void (* rebuild_menu) (
    GtkToolShell* shell
  );
  GtkOrientation (* get_text_orientation) (
    GtkToolShell* shell
  );
  gfloat (* get_text_alignment) (
    GtkToolShell* shell
  );
  PangoEllipsizeMode (* get_ellipsize_mode) (
    GtkToolShell* shell
  );
  GtkSizeGroup* (* get_text_size_group) (
    GtkToolShell* shell
  );
  
}

Virtual function table for the GtkToolShell interface.

Interface members
get_icon_size
GtkIconSize (* get_icon_size) (
    GtkToolShell* shell
  )
 

Mandatory implementation of gtk_tool_shell_get_icon_size().

get_orientation
GtkOrientation (* get_orientation) (
    GtkToolShell* shell
  )
 

Mandatory implementation of gtk_tool_shell_get_orientation().

get_style
GtkToolbarStyle (* get_style) (
    GtkToolShell* shell
  )
 

Mandatory implementation of gtk_tool_shell_get_style().

get_relief_style
GtkReliefStyle (* get_relief_style) (
    GtkToolShell* shell
  )
 

Optional implementation of gtk_tool_shell_get_relief_style().

rebuild_menu
void (* rebuild_menu) (
    GtkToolShell* shell
  )
 

Optional implementation of gtk_tool_shell_rebuild_menu().

get_text_orientation
GtkOrientation (* get_text_orientation) (
    GtkToolShell* shell
  )
 

Optional implementation of gtk_tool_shell_get_text_orientation().

get_text_alignment
gfloat (* get_text_alignment) (
    GtkToolShell* shell
  )
 

Optional implementation of gtk_tool_shell_get_text_alignment().

get_ellipsize_mode
PangoEllipsizeMode (* get_ellipsize_mode) (
    GtkToolShell* shell
  )
 

Optional implementation of gtk_tool_shell_get_ellipsize_mode().

get_text_size_group
GtkSizeGroup* (* get_text_size_group) (
    GtkToolShell* shell
  )
 

Optional implementation of gtk_tool_shell_get_text_size_group().

Virtual methods

Gtk.ToolShell.get_ellipsize_mode

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

since: 2.20

Gtk.ToolShell.get_icon_size

Mandatory implementation of gtk_tool_shell_get_icon_size().

Gtk.ToolShell.get_orientation

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

since: 2.14

Gtk.ToolShell.get_relief_style

Returns the relief style of buttons on shell. Tool items must not call this function directly, but rely on gtk_tool_item_get_relief_style() instead.

since: 2.14

Gtk.ToolShell.get_style

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

since: 2.14

Gtk.ToolShell.get_text_alignment

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

since: 2.20

Gtk.ToolShell.get_text_orientation

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

since: 2.20

Gtk.ToolShell.get_text_size_group

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

since: 2.20

Gtk.ToolShell.rebuild_menu

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.

since: 2.14