Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

Class Gtk.ToolItem

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkToolItem
Class : ToolItem
Implements: Atk.ImplementorIface, Gtk.Activatable, Gtk.Buildable
Subclasses: Gtk.MenuToolButton, Gtk.RadioToolButton, Gtk.SeparatorToolItem, Gtk.ToggleToolButton, Gtk.ToolButton
Extends: Gtk.Bin
GtkToolItems are widgets that can appear on a toolbar. To
create a toolbar item that contain something else than a button, use
gtk_tool_item_new(). Use gtk_container_add() to add a child
widget to the tool item.
For toolbar items that contain buttons, see the GtkToolButton,
GtkToggleToolButton and GtkRadioToolButton classes.
See the GtkToolbar class for a description of the toolbar widget, and
GtkToolShell for a description of the tool shell interface.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gtk.RadioToolButton
Method
new_from_widget () : Gtk.ToolItem
Creates a new GtkRadioToolButton adding it to the same group as gruup
Gtk.RadioToolButton
Method
new_with_stock_from_widget (String stock_id) : Gtk.ToolItem
Creates a new GtkRadioToolButton adding it to the same group as group.
Gtk.ToolItemGroup
Method
get_drop_item (gint32 x, gint32 y) : Gtk.ToolItem
Gets the tool item at position (x, y).
Gtk.ToolItemGroup
Method
get_item_position (ToolItem item) : gint32
Gets the position of item in group as index.
Gtk.ToolItemGroup
Method
get_nth_item (guint32 index) : Gtk.ToolItem
Gets the tool item at index in group.
Gtk.ToolItemGroup
Method
insert (ToolItem item, gint32 position) : none
Inserts item at position in the list of children of group.
Gtk.ToolItemGroup
Method
set_item_position (ToolItem item, gint32 position) : none
Sets the position of item in the list of children of group.
Gtk.ToolPalette
Method
get_drop_item (gint32 x, gint32 y) : Gtk.ToolItem
Gets the item at position (x, y).
Gtk.Toolbar
Method
get_item_index (ToolItem item) : gint32
Returns the position of item on the toolbar, starting from 0.
Gtk.Toolbar
Method
get_nth_item (gint32 n) : Gtk.ToolItem
Returns the n'th item on toolbar, or NULL if the
toolbar does not contain an n'th item.
Gtk.Toolbar
Method
insert (ToolItem item, gint32 pos) : none
Insert a GtkToolItem into the toolbar at position pos.
Gtk.Toolbar
Method
set_drop_highlight_item (ToolItem tool_item, gint32 index_) : none
Highlights toolbar to give an idea of what it would look like
if item was added to toolbar at the position indicated by index_.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:14:13 GMT+0800 (HKT)