Toc Gallery Index Tree Gtk.Menu_Tool_Button

Hierarchy

Description

This package defines a special kind of menu, that can be inserted in a toolbar. This is not something used very often, as in general a toolbar provides a quick access to features that are already accessible in the menu bar itself. In practice, it is used internally by gtk+ itself to implement the overflow menu in the toolbar.

Types

Subprograms

  • procedure Gtk_New (Menu : out Gtk_Menu_Tool_Button; Icon_Widget : Gtk.Widget.Gtk_Widget := null; Label : String := "");
    procedure Initialize (Menu : access Gtk_Menu_Tool_Button_Record'Class; Icon_Widget : Gtk.Widget.Gtk_Widget := null; Label : String := "");
    Create a new menu by specifying explicitly the text that should appear on its button. When the button is clicked on, the menu is displayed.
  • procedure Gtk_New_From_Stock (Menu : out Gtk_Menu_Tool_Button; Stock_Id : String);
    procedure Initialize_From_Stock (Menu : access Gtk_Menu_Tool_Button_Record'Class; Stock_Id : String);
    Create a new menu. The label and icon of its button are read from stock items (see gtk-stock.ads)
  • function Get_Type return GType;
    Return the internal type used for this class of widgets
  • procedure Set_Menu (Button : access Gtk_Menu_Tool_Button_Record; Menu : access Gtk.Menu.Gtk_Menu_Record'Class);
    function Get_Menu (Button : access Gtk_Menu_Tool_Button_Record) return Gtk.Menu.Gtk_Menu;
    Set or Get the menu that it displayed when the button is clicked on
  • procedure Set_Arrow_Tooltip (Button : access Gtk_Menu_Tool_Button_Record; Tooltips : access Gtk.Tooltips.Gtk_Tooltips_Record'Class; Tip_Text : String; Tip_Private : String := "");
    Set the tooltip set on the arrow button that will display the menu when clicked on.

Signals

Properties

  • Menu_Property
    Object

Alphabetical Index