Index

Package: Tool_Item

Description

package Gtk.Tool_Item is

This package defines the base class for all items that can be added into a toolbar (see gtk-toolbar.ads).

See also Gtk.Tool_Button (gtk-tool_button.ads).

See also Gtk.Separator_Tool_Item (gtk-separator_tool_item).

Binding from C File version 2.16.6

Classes

Gtk_Tool_Item_Record

type Gtk_Tool_Item_Record is new Gtk.Bin.Gtk_Bin_Record with null record;

Ancestors:

Immediate Children:

Primitive operations:

Get_Homogeneous
Get_Icon_Size
Get_Is_Important
Get_Orientation
Get_Proxy_Menu_Item
Get_Relief_Style
Get_Toolbar_Style
Get_Use_Drag_Window
Get_Visible_Horizontal
Get_Visible_Vertical
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Bin.Get_Child (Inherited)
Gtk.Container.Add (Inherited)
Gtk.Container.Check_Resize (Inherited)
Gtk.Container.Child_Get_Property (Inherited)
Gtk.Container.Child_Set_Property (Inherited)
Gtk.Container.Child_Type (Inherited)
Gtk.Container.Forall (Inherited)
Gtk.Container.Foreach (Inherited)
Gtk.Container.Get_Border_Width (Inherited)
Gtk.Container.Get_Children (Inherited)
Gtk.Container.Get_Focus_Chain (Inherited)
Gtk.Container.Get_Focus_Child (Inherited)
Gtk.Container.Get_Focus_Hadjustment (Inherited)
Gtk.Container.Get_Focus_Vadjustment (Inherited)
Gtk.Container.Get_Resize_Mode (Inherited)
Gtk.Container.Propagate_Expose (Inherited)
Gtk.Container.Remove (Inherited)
Gtk.Container.Resize_Children (Inherited)
Gtk.Container.Set_Border_Width (Inherited)
Gtk.Container.Set_Focus_Chain (Inherited)
Gtk.Container.Set_Focus_Child (Inherited)
Gtk.Container.Set_Focus_Hadjustment (Inherited)
Gtk.Container.Set_Focus_Vadjustment (Inherited)
Gtk.Container.Set_Reallocate_Redraws (Inherited)
Gtk.Container.Set_Resize_Mode (Inherited)
Gtk.Container.Unset_Focus_Chain (Inherited)
Gtk.Widget.Activate (Inherited)
Gtk.Widget.Add_Accelerator (Inherited)
Gtk.Widget.Add_Events (Inherited)
Gtk.Widget.Add_Mnemonic_Label (Inherited)
Gtk.Widget.Can_Activate_Accel (Inherited)
Gtk.Widget.Child_Notify (Inherited)
Gtk.Widget.Class_Path (Inherited)
Gtk.Widget.Class_Path_Reversed (Inherited)
Gtk.Widget.Create_Pango_Context (Inherited)
Gtk.Widget.Create_Pango_Layout (Inherited)
Gtk.Widget.Destroy (Inherited)
Gtk.Widget.Draw (Inherited)
Gtk.Widget.Ensure_Style (Inherited)
Gtk.Widget.Error_Bell (Inherited)
Gtk.Widget.Flag_Is_Set (Inherited)
Gtk.Widget.Flags (Inherited)
Gtk.Widget.Freeze_Child_Notify (Inherited)
Gtk.Widget.Get_Allocation_Height (Inherited)
Gtk.Widget.Get_Allocation_Width (Inherited)
Gtk.Widget.Get_Allocation_X (Inherited)
Gtk.Widget.Get_Allocation_Y (Inherited)
Gtk.Widget.Get_Ancestor (Inherited)
Gtk.Widget.Get_Child_Requisition (Inherited)
Gtk.Widget.Get_Child_Visible (Inherited)
Gtk.Widget.Get_Colormap (Inherited)
Gtk.Widget.Get_Composite_Name (Inherited)
Gtk.Widget.Get_Direction (Inherited)
Gtk.Widget.Get_Events (Inherited)
Gtk.Widget.Get_Extension_Events (Inherited)
Gtk.Widget.Get_Has_Tooltip (Inherited)
Gtk.Widget.Get_Name (Inherited)
Gtk.Widget.Get_No_Show_All (Inherited)
Gtk.Widget.Get_Pango_Context (Inherited)
Gtk.Widget.Get_Parent (Inherited)
Gtk.Widget.Get_Parent_Window (Inherited)
Gtk.Widget.Get_Pointer (Inherited)
Gtk.Widget.Get_Root_Window (Inherited)
Gtk.Widget.Get_Size_Request (Inherited)
Gtk.Widget.Get_Snapshot (Inherited)
Gtk.Widget.Get_State (Inherited)
Gtk.Widget.Get_Style (Inherited)
Gtk.Widget.Get_Tooltip_Markup (Inherited)
Gtk.Widget.Get_Tooltip_Text (Inherited)
Gtk.Widget.Get_Tooltip_Window (Inherited)
Gtk.Widget.Get_Toplevel (Inherited)
Gtk.Widget.Get_Visual (Inherited)
Gtk.Widget.Get_Window (Inherited)
Gtk.Widget.Grab_Default (Inherited)
Gtk.Widget.Grab_Focus (Inherited)
Gtk.Widget.Has_Screen (Inherited)
Gtk.Widget.Hide (Inherited)
Gtk.Widget.Hide_All (Inherited)
Gtk.Widget.Input_Shape_Combine_Mask (Inherited)
Gtk.Widget.Intersect (Inherited)
Gtk.Widget.Is_Ancestor (Inherited)
Gtk.Widget.Is_Composited (Inherited)
Gtk.Widget.Is_Focus (Inherited)
Gtk.Widget.Keynav_Failed (Inherited)
Gtk.Widget.List_Mnemonic_Labels (Inherited)
Gtk.Widget.Map (Inherited)
Gtk.Widget.Mnemonic_Activate (Inherited)
Gtk.Widget.Modify_Base (Inherited)
Gtk.Widget.Modify_Bg (Inherited)
Gtk.Widget.Modify_Cursor (Inherited)
Gtk.Widget.Modify_Fg (Inherited)
Gtk.Widget.Modify_Font (Inherited)
Gtk.Widget.Modify_Text (Inherited)
Gtk.Widget.Path (Inherited)
Gtk.Widget.Path_Reversed (Inherited)
Gtk.Widget.Queue_Clear (Inherited)
Gtk.Widget.Queue_Clear_Area (Inherited)
Gtk.Widget.Queue_Draw (Inherited)
Gtk.Widget.Queue_Draw_Area (Inherited)
Gtk.Widget.Queue_Resize (Inherited)
Gtk.Widget.Queue_Resize_No_Redraw (Inherited)
Gtk.Widget.Realize (Inherited)
Gtk.Widget.Region_Intersect (Inherited)
Gtk.Widget.Remove_Accelerator (Inherited)
Gtk.Widget.Remove_Mnemonic_Label (Inherited)
Gtk.Widget.Render_Icon (Inherited)
Gtk.Widget.Reparent (Inherited)
Gtk.Widget.Reset_Rc_Styles (Inherited)
Gtk.Widget.Reset_Shapes (Inherited)
Gtk.Widget.Restore_Default_Style (Inherited)
Gtk.Widget.Send_Expose (Inherited)
Gtk.Widget.Set_Accel_Path (Inherited)
Gtk.Widget.Set_App_Paintable (Inherited)
Gtk.Widget.Set_Child_Visible (Inherited)
Gtk.Widget.Set_Colormap (Inherited)
Gtk.Widget.Set_Composite_Name (Inherited)
Gtk.Widget.Set_Direction (Inherited)
Gtk.Widget.Set_Double_Buffered (Inherited)
Gtk.Widget.Set_Events (Inherited)
Gtk.Widget.Set_Extension_Events (Inherited)
Gtk.Widget.Set_Flags (Inherited)
Gtk.Widget.Set_Has_Tooltip (Inherited)
Gtk.Widget.Set_Name (Inherited)
Gtk.Widget.Set_No_Show_All (Inherited)
Gtk.Widget.Set_Parent (Inherited)
Gtk.Widget.Set_Parent_Window (Inherited)
Gtk.Widget.Set_Redraw_On_Allocate (Inherited)
Gtk.Widget.Set_Scroll_Adjustments (Inherited)
Gtk.Widget.Set_Sensitive (Inherited)
Gtk.Widget.Set_Size_Request (Inherited)
Gtk.Widget.Set_State (Inherited)
Gtk.Widget.Set_Style (Inherited)
Gtk.Widget.Set_Tooltip_Window (Inherited)
Gtk.Widget.Set_UPosition (Inherited)
Gtk.Widget.Set_USize (Inherited)
Gtk.Widget.Set_Window (Inherited)
Gtk.Widget.Shape_Combine_Mask (Inherited)
Gtk.Widget.Show (Inherited)
Gtk.Widget.Show_All (Inherited)
Gtk.Widget.Show_Now (Inherited)
Gtk.Widget.Size_Allocate (Inherited)
Gtk.Widget.Size_Request (Inherited)
Gtk.Widget.Style_Get_Property (Inherited)
Gtk.Widget.Thaw_Child_Notify (Inherited)
Gtk.Widget.Trigger_Tooltip_Query (Inherited)
Gtk.Widget.Unmap (Inherited)
Gtk.Widget.Unrealize (Inherited)
Gtk.Widget.Unset_Flags (Inherited)
Rebuild_Menu
Retrieve_Proxy_Menu_Item
Set_Homogeneous
Set_Is_Important
Set_Proxy_Menu_Item
Set_Tooltip_Markup (overriding Gtk.Widget.Set_Tooltip_Markup)
Set_Tooltip_Text (overriding Gtk.Widget.Set_Tooltip_Text)
Set_Use_Drag_Window
Set_Visible_Horizontal
Set_Visible_Vertical
Toolbar_Reconfigured

Types

Gtk_Tool_Item

type Gtk_Tool_Item is access all Gtk_Tool_Item_Record'Class;

Constants & Global variables

Visible_Horizontal_Property (Glib.Properties.Property_Boolean)

Visible_Horizontal_Property : constant Glib.Properties.Property_Boolean;

Visible_Vertical_Property (Glib.Properties.Property_Boolean)

Visible_Vertical_Property   : constant Glib.Properties.Property_Boolean;

Is_Important_Property (Glib.Properties.Property_Boolean)

Is_Important_Property       : constant Glib.Properties.Property_Boolean;

Signal_Create_Menu_Proxy (Glib.Signal_Name)

Signal_Create_Menu_Proxy    : constant Glib.Signal_Name :=
                                   "create_menu_proxy";

Signal_Toolbar_Reconfigured (Glib.Signal_Name)

Signal_Toolbar_Reconfigured : constant Glib.Signal_Name :=
                                   "toolbar_reconfigured";

Signal_Set_Tooltip (Glib.Signal_Name)

Signal_Set_Tooltip          : constant Glib.Signal_Name :=
                                   "set_tooltip";

Subprograms & Entries

Gtk_New

procedure Gtk_New    
(Item: out Gtk_Tool_Item);

Initialize

procedure Initialize 
(Item: access Gtk_Tool_Item_Record'Class);
Create a new tool item, which contains a single child.

Get_Type

function Get_Type return GType;
Return the internal value associated with a Gtk_Button.

Set_Expand

procedure Set_Expand 
(Tool_Item: access Gtk_Tool_Item_Record;
Expand: Boolean);

Get_Expand

function Get_Expand 
(Tool_Item: access Gtk_Tool_Item_Record) return Boolean;
Sets whether Tool_Item is allocated extra space when there is more room on the toolbar than needed for the items. The effect is that the item gets bigger when the toolbar gets bigger.

Set_Homogeneous

procedure Set_Homogeneous 
(Tool_Item: access Gtk_Tool_Item_Record;
Homogeneous: Boolean);

Get_Homogeneous

function Get_Homogeneous 
(Tool_Item: access Gtk_Tool_Item_Record) return Boolean;
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.

Get_Icon_Size

function Get_Icon_Size 
(Tool_Item: access Gtk_Tool_Item_Record) return Gtk.Enums.Gtk_Icon_Size;
Returns the icon size used for Tool_Item. Custom subclasses of Gtk_Tool_Item_Record should call this function to find out what size icons they should use. This settings depends on the toolbar that contains the item

Set_Is_Important

procedure Set_Is_Important 
(Tool_Item: access Gtk_Tool_Item_Record;
Is_Important: Boolean);

Get_Is_Important

function Get_Is_Important 
(Tool_Item: access Gtk_Tool_Item_Record) return Boolean;
Sets whether Tool_Item should be considered important. The Gtk_Tool_Button class uses this property to determine whether to show or hide its label when the toolbar style is Toolbar_Both_Horiz. The result is that only tool buttons with the "is_important" property set have labels, an effect known as "priority text".

Get_Orientation

function Get_Orientation 
(Tool_Item: access Gtk_Tool_Item_Record) return Gtk.Enums.Gtk_Orientation;
Returns the orientation used for Tool_Item.

Set_Proxy_Menu_Item

procedure Set_Proxy_Menu_Item 
(Tool_Item: access Gtk_Tool_Item_Record;
Menu_Item_Id: String;
Menu_Item: Gtk.Menu_Item.Gtk_Menu_Item);

Get_Proxy_Menu_Item

function Get_Proxy_Menu_Item 
(Tool_Item: access Gtk_Tool_Item_Record;
Menu_Item_Id: String) return Gtk.Menu_Item.Gtk_Menu_Item;
Sets the menu item used in the toolbar overflow menu. Menu_Item_Id is used to identify the caller of this function and should also be used with Get_Proxy_Menu_Item. Custom subclasses of Gtk_Tool_Item_Record should use this function to update their menu item when the tool item changes. See also Gtk.Toolbar.Set_Show_Arrow.

Retrieve_Proxy_Menu_Item

function Retrieve_Proxy_Menu_Item 
(Tool_Item: access Gtk_Tool_Item_Record) return Gtk.Menu_Item.Gtk_Menu_Item;
Returns the menu item that was last set by Set_Proxy_Menu_Item, ie the menu item that will appear in the overflow menu. This might be different from the one set through Set_Proxy_Menu_Item, if someone else has overriden the menu afterward.

Rebuild_Menu

procedure Rebuild_Menu 
(Tool_Item: access Gtk_Tool_Item_Record);
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.

Set_Tooltip

procedure Set_Tooltip 
(Tool_Item: access Gtk_Tool_Item_Record;
Tooltips: access Gtk.Tooltips.Gtk_Tooltips_Record'Class;
Tip_Text: String;
Tip_Private: String := "");
Sets the tooltips object to be used for Tool item, the text to be displayed as tooltip on the item and the private text to be used

Set_Tooltip_Markup

procedure Set_Tooltip_Markup 
(Tool_Item: access Gtk_Tool_Item_Record;
Markup: UTF8_String);
Sets the markup text to be displayed as tooltip on the item. See Gtk.Widget.Set_Tooltip_Markup.

Set_Tooltip_Text

procedure Set_Tooltip_Text 
(Tool_Item: access Gtk_Tool_Item_Record;
Text: UTF8_String);
Sets the text to be displayed as tooltip on the item. See Gtk.Widget.Set_Tooltip_Text.

Set_Visible_Vertical

procedure Set_Visible_Vertical 
(Toolitem: access Gtk_Tool_Item_Record;
Visible_Vertical: Boolean);

Get_Visible_Vertical

function Get_Visible_Vertical 
(Toolitem: access Gtk_Tool_Item_Record) return Boolean;
Sets whether Toolitem 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 Toolitem will not appear on toolbars that are docked vertically.

Set_Visible_Horizontal

procedure Set_Visible_Horizontal 
(Toolitem: access Gtk_Tool_Item_Record;
Visible_Horizontal: Boolean);

Get_Visible_Horizontal

function Get_Visible_Horizontal 
(Toolitem: access Gtk_Tool_Item_Record) return Boolean;
Same as Set_Visible_Vertical, but for a horizontal orientation

Set_Use_Drag_Window

procedure Set_Use_Drag_Window 
(Toolitem: access Gtk_Tool_Item_Record;
Use_Drag_Window: Boolean);

Get_Use_Drag_Window

function Get_Use_Drag_Window 
(Toolitem: access Gtk_Tool_Item_Record) return Boolean;
Sets whether Toolitem has a drag window. When True the toolitem can be used as a drag source through gtk_drag_source_set(). When Toolitem has a drag window it will intercept all events, even those that would otherwise be sent to a child of Toolitem.

Get_Relief_Style

function Get_Relief_Style 
(Tool_Item: access Gtk_Tool_Item_Record) return Gtk.Enums.Gtk_Relief_Style;
Get the relief style of the item

Get_Toolbar_Style

function Get_Toolbar_Style 
(Tool_Item: access Gtk_Tool_Item_Record) return Gtk.Enums.Gtk_Toolbar_Style;
Get the style of the toolbar that contains the item

Toolbar_Reconfigured

procedure Toolbar_Reconfigured 
(Tool_Item: access Gtk_Tool_Item_Record);
Emits the signal #GtkToolItem::toolbar_reconfigured on Tool_Item. Gtk_Toolbar and other Gtk_Tool_Shell implementations use this function to notify children when some aspect of their configuration changes.