type Gtk_Toolbar_Record is new Gtk.Container.Gtk_Container_Record with private;
type Gtk_Toolbar is access all Gtk_Toolbar_Record'Class;
Orientation_Property : constant Gtk.Enums.Property_Gtk_Orientation;
Toolbar_Style_Property : constant Gtk.Enums.Property_Gtk_Toolbar_Style;
Show_Arrow_Property : constant Glib.Properties.Property_Boolean;
Tooltips_Property : constant Glib.Properties.Property_Boolean;
Expand_Property : constant Glib.Properties.Property_Boolean;
Homogeneous_Property : constant Glib.Properties.Property_Boolean;
Button_Relief_Property : constant Gtk.Enums.Property_Gtk_Relief_Style;
Internal_Padding_Property : constant Glib.Properties.Property_Int;
Shadow_Type_Property : constant Gtk.Enums.Property_Gtk_Shadow_Type;
Space_Size_Property : constant Glib.Properties.Property_Int;
Space_Style_Property : constant Gtk.Enums.Property_Toolbar_Space_Style;
Icon_Size_Property : constant Gtk.Enums.Property_Gtk_Icon_Size;
Signal_Orientation_Changed : constant Glib.Signal_Name := "orientation-changed";
Signal_Style_Changed : constant Glib.Signal_Name := "style-changed";
Signal_Popup_Context_Menu : constant Glib.Signal_Name := "popup_context_menu";
Signal_Focus_Home_Or_End : constant Glib.Signal_Name := "focus_home_or_end";
Signal_Move_Focus : constant Glib.Signal_Name := "move_focus";
procedure Gtk_New
( | Widget | : out Gtk_Toolbar); |
procedure Initialize
( | Widget | : access Gtk_Toolbar_Record'Class); |
function Get_Type return Glib.GType;
procedure Insert
( | Toolbar | : access Gtk_Toolbar_Record; |
Item | : access Gtk.Tool_Item.Gtk_Tool_Item_Record'Class; | |
Pos | : Gint := -1); |
function Get_Item_Index
( | Toolbar | : access Gtk_Toolbar_Record; |
Item | : access Gtk.Tool_Item.Gtk_Tool_Item_Record'Class) return Gint; |
function Get_N_Items
( | Toolbar | : access Gtk_Toolbar_Record) return Gint; |
function Get_Nth_Item
( | Toolbar | : access Gtk_Toolbar_Record; |
N | : Gint) return Gtk.Tool_Item.Gtk_Tool_Item; |
procedure Set_Drop_Highlight_Item
( | Toolbar | : access Gtk_Toolbar_Record; |
Tool_Item | : access Gtk.Tool_Item.Gtk_Tool_Item_Record'Class; | |
Index | : Gint); |
procedure Set_Orientation
( | Toolbar | : access Gtk_Toolbar_Record; |
Orientation | : Gtk_Orientation); |
function Get_Orientation
( | Toolbar | : access Gtk_Toolbar_Record) return Gtk_Orientation; |
procedure Set_Style
( | Toolbar | : access Gtk_Toolbar_Record; |
Style | : Gtk_Toolbar_Style); |
function Get_Style
( | Toolbar | : access Gtk_Toolbar_Record) return Gtk_Toolbar_Style; |
procedure Unset_Style
( | Toolbar | : access Gtk_Toolbar_Record); |
procedure Set_Tooltips
( | Toolbar | : access Gtk_Toolbar_Record; |
Enable | : Boolean); |
function Get_Tooltips
( | Toolbar | : access Gtk_Toolbar_Record) return Boolean; |
function Get_Relief_Style
( | Toolbar | : access Gtk_Toolbar_Record) return Gtk_Relief_Style; |
procedure Set_Show_Arrow
( | Toolbar | : access Gtk_Toolbar_Record; |
Show_Arrow | : Boolean := True); |
function Get_Show_Arrow
( | Toolbar | : access Gtk_Toolbar_Record) return Boolean; |
function Get_Icon_Size
( | Toolbar | : access Gtk_Toolbar_Record) return Gtk_Icon_Size; |
function Get_Drop_Index
( | Toolbar | : access Gtk_Toolbar_Record; |
X | : Gint; | |
Y | : Gint) return Gint; |
procedure Gtk_New
( | Widget | : out Gtk_Toolbar; |
Orientation | : Gtk_Orientation; | |
Style | : Gtk_Toolbar_Style); |
procedure Initialize
( | Widget | : access Gtk_Toolbar_Record'Class; |
Orientation | : Gtk_Orientation; | |
Style | : Gtk_Toolbar_Style); |
function Append_Element
( | Toolbar | : access Gtk_Toolbar_Record; |
The_Type | : Gtk_Toolbar_Child_Type; | |
Widget | : Gtk.Widget.Gtk_Widget := null; | |
Text | : UTF8_String := ""; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""; | |
Icon | : Gtk.Widget.Gtk_Widget := null) return Gtk.Widget.Gtk_Widget; |
function Prepend_Element
( | Toolbar | : access Gtk_Toolbar_Record; |
The_Type | : Gtk_Toolbar_Child_Type; | |
Widget | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Text | : UTF8_String := ""; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""; | |
Icon | : Gtk.Widget.Gtk_Widget := null) return Gtk.Widget.Gtk_Widget; |
function Insert_Element
( | Toolbar | : access Gtk_Toolbar_Record; |
The_Type | : Gtk_Toolbar_Child_Type; | |
Widget | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Text | : UTF8_String := ""; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""; | |
Icon | : Gtk.Widget.Gtk_Widget := null; | |
Position | : Gint) return Gtk.Widget.Gtk_Widget; |
function Append_Item
( | Toolbar | : access Gtk_Toolbar_Record; |
Text | : UTF8_String := ""; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""; | |
Icon | : Gtk.Widget.Gtk_Widget := null) return Gtk.Button.Gtk_Button; |
function Prepend_Item
( | Toolbar | : access Gtk_Toolbar_Record; |
Text | : UTF8_String := ""; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""; | |
Icon | : Gtk.Widget.Gtk_Widget := null) return Gtk.Button.Gtk_Button; |
function Insert_Item
( | Toolbar | : access Gtk_Toolbar_Record; |
Text | : UTF8_String := ""; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""; | |
Icon | : Gtk.Widget.Gtk_Widget := null; | |
Position | : Gint) return Gtk.Button.Gtk_Button; |
function Insert_Stock
( | Toolbar | : access Gtk_Toolbar_Record; |
Stock_Id | : UTF8_String; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""; | |
Position | : Gint := -1) return Gtk.Button.Gtk_Button; |
procedure Append_Space
( | Toolbar | : access Gtk_Toolbar_Record); |
procedure Prepend_Space
( | Toolbar | : access Gtk_Toolbar_Record); |
procedure Insert_Space
( | Toolbar | : access Gtk_Toolbar_Record; |
Position | : Gint); |
procedure Remove_Space
( | Toolbar | : access Gtk_Toolbar_Record; |
Position | : Gint); |
procedure Append_Widget
( | Toolbar | : access Gtk_Toolbar_Record; |
Widget | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""); |
procedure Prepend_Widget
( | Toolbar | : access Gtk_Toolbar_Record; |
Widget | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""); |
procedure Insert_Widget
( | Toolbar | : access Gtk_Toolbar_Record; |
Widget | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Tooltip_Text | : UTF8_String := ""; | |
Tooltip_Private_Text | : UTF8_String := ""; | |
Position | : Gint); |
procedure Set_Icon_Size
( | Toolbar | : access Gtk_Toolbar_Record; |
Icon_Size | : Gtk_Icon_Size); |
procedure Unset_Icon_Size
( | Toolbar | : access Gtk_Toolbar_Record); |
A toolbar groups a number of items (buttons, combo boxes,...), generally at the top of the application window, just below the menu bar. It provides quick access to the most commonly used features of your application.
It is common for an application to have multiple toolbars.
Binding from C File version 2.8.17
<testgtk>create_toolbar.adb</testgtk>