Functions
gtk_tool_item_set_homogeneous ()
void
gtk_tool_item_set_homogeneous (GtkToolItem *tool_item,
gboolean homogeneous);
Sets whether tool_item
is to be allocated the same size as other
homogeneous items. The effect is that all homogeneous items will have
the same width as the widest of the items.
Since: 2.4
gtk_tool_item_get_homogeneous ()
gboolean
gtk_tool_item_get_homogeneous (GtkToolItem *tool_item);
Returns whether tool_item
is the same size as other homogeneous
items. See gtk_tool_item_set_homogeneous().
Returns
TRUE if the item is the same size as other homogeneous
items.
Since: 2.4
gtk_tool_item_set_expand ()
void
gtk_tool_item_set_expand (GtkToolItem *tool_item,
gboolean expand);
Sets whether tool_item
is allocated extra space when there
is more room on the toolbar then needed for the items. The
effect is that the item gets bigger when the toolbar gets bigger
and smaller when the toolbar gets smaller.
Since: 2.4
gtk_tool_item_set_use_drag_window ()
void
gtk_tool_item_set_use_drag_window (GtkToolItem *tool_item,
gboolean use_drag_window);
Sets whether tool_item
has a drag window. When TRUE the
toolitem can be used as a drag source through gtk_drag_source_set().
When tool_item
has a drag window it will intercept all events,
even those that would otherwise be sent to a child of tool_item
.
Since: 2.4
gtk_tool_item_set_visible_horizontal ()
void
gtk_tool_item_set_visible_horizontal (GtkToolItem *tool_item,
gboolean visible_horizontal);
Sets whether tool_item
is visible when the toolbar is docked horizontally.
Since: 2.4
gtk_tool_item_get_visible_horizontal ()
gboolean
gtk_tool_item_get_visible_horizontal (GtkToolItem *tool_item);
Returns whether the tool_item
is visible on toolbars that are
docked horizontally.
Returns
TRUE if tool_item
is visible on toolbars that are
docked horizontally.
Since: 2.4
gtk_tool_item_set_visible_vertical ()
void
gtk_tool_item_set_visible_vertical (GtkToolItem *tool_item,
gboolean visible_vertical);
Sets whether tool_item
is visible when the toolbar is docked
vertically. Some tool items, such as text entries, are too wide to be
useful on a vertically docked toolbar. If visible_vertical
is FALSE
tool_item
will not appear on toolbars that are docked vertically.
Since: 2.4
gtk_tool_item_get_visible_vertical ()
gboolean
gtk_tool_item_get_visible_vertical (GtkToolItem *tool_item);
Returns whether tool_item
is visible when the toolbar is docked vertically.
See gtk_tool_item_set_visible_vertical().
Returns
Whether tool_item
is visible when the toolbar is docked vertically
Since: 2.4
gtk_tool_item_set_is_important ()
void
gtk_tool_item_set_is_important (GtkToolItem *tool_item,
gboolean is_important);
Sets whether tool_item
should be considered important. The GtkToolButton
class uses this property to determine whether to show or hide its label
when the toolbar style is GTK_TOOLBAR_BOTH_HORIZ. The result is that
only tool buttons with the “is_important” property set have labels, an
effect known as “priority text”
Since: 2.4
gtk_tool_item_get_ellipsize_mode ()
PangoEllipsizeMode
gtk_tool_item_get_ellipsize_mode (GtkToolItem *tool_item);
Returns the ellipsize mode used for tool_item
. Custom subclasses of
GtkToolItem should call this function to find out how text should
be ellipsized.
Since: 2.20
gtk_tool_item_get_icon_size ()
GtkIconSize
gtk_tool_item_get_icon_size (GtkToolItem *tool_item);
Returns the icon size used for tool_item
. Custom subclasses of
GtkToolItem should call this function to find out what size icons
they should use.
Returns
a GtkIconSize indicating the icon size
used for tool_item
.
[type int]
Since: 2.4
gtk_tool_item_get_orientation ()
GtkOrientation
gtk_tool_item_get_orientation (GtkToolItem *tool_item);
Returns the orientation used for tool_item
. Custom subclasses of
GtkToolItem should call this function to find out what size icons
they should use.
Returns
a GtkOrientation indicating the orientation
used for tool_item
Since: 2.4
gtk_tool_item_get_toolbar_style ()
GtkToolbarStyle
gtk_tool_item_get_toolbar_style (GtkToolItem *tool_item);
Returns the toolbar style used for tool_item
. Custom subclasses of
GtkToolItem should call this function in the handler of the
GtkToolItem::toolbar_reconfigured signal to find out in what style
the toolbar is displayed and change themselves accordingly
Possibilities are:
Returns
A GtkToolbarStyle indicating the toolbar style used
for tool_item
.
Since: 2.4
gtk_tool_item_get_text_alignment ()
gfloat
gtk_tool_item_get_text_alignment (GtkToolItem *tool_item);
Returns the text alignment used for tool_item
. Custom subclasses of
GtkToolItem should call this function to find out how text should
be aligned.
Returns
a gfloat indicating the horizontal text alignment
used for tool_item
Since: 2.20
gtk_tool_item_get_text_orientation ()
GtkOrientation
gtk_tool_item_get_text_orientation (GtkToolItem *tool_item);
Returns the text orientation used for tool_item
. Custom subclasses of
GtkToolItem should call this function to find out how text should
be orientated.
Returns
a GtkOrientation indicating the text orientation
used for tool_item
Since: 2.20
gtk_tool_item_rebuild_menu ()
void
gtk_tool_item_rebuild_menu (GtkToolItem *tool_item);
Calling this function signals to the toolbar that the
overflow menu item for tool_item
has changed. If the
overflow menu is visible when this function it called,
the menu will be rebuilt.
The function must be called when the tool item changes what it
will do in response to the “create-menu-proxy” signal.
Since: 2.6
gtk_tool_item_toolbar_reconfigured ()
void
gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item);
Emits the signal “toolbar_reconfigured” on tool_item
.
GtkToolbar and other GtkToolShell implementations use this function
to notify children, when some aspect of their configuration changes.
Since: 2.14
gtk_tool_item_get_text_size_group ()
GtkSizeGroup *
gtk_tool_item_get_text_size_group (GtkToolItem *tool_item);
Returns the size group used for labels in tool_item
.
Custom subclasses of GtkToolItem should call this function
and use the size group for labels.
Since: 2.20