Toc Gallery Index Tree Gtk.Expander

Screenshot

No screeshot

Hierarchy

Description

A container which can hide its child.

Types

  • type Gtk_Expander is access all Gtk_Expander_Record'Class;
  • type Gtk_Expander_Record is new Gtk.Bin.Gtk_Bin_Record with null record;

Subprograms

  • procedure Gtk_New (Expander : out Gtk_Expander; Label : String);
    procedure Initialize (Expander : access Gtk_Expander_Record'Class; Label : String);
    Creates or initializes a new expander, using Label as the text of the label.
  • procedure Gtk_New_With_Mnemonic (Expander : out Gtk_Expander; Label : String);
    procedure Initialize_With_Mnemonic (Expander : access Gtk_Expander_Record'Class; Label : String);
    Creates or initializes a new expander, using Label as the text of the label. If characters in Label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic. Pressing Alt and that key activates the button.
  • function Get_Type return Glib.GType;
    Returns the internal value used for an expander
  • procedure Set_Expanded (Expander : access Gtk_Expander_Record; Expanded : Boolean);
    function Get_Expanded (Expander : access Gtk_Expander_Record) return Boolean;
    Sets the state of the expander. Set to True, if you want the child widget to be revealed, and False if you want the child widget to be hidden.
  • procedure Set_Label (Expander : access Gtk_Expander_Record; Label : String);
    function Get_Label (Expander : access Gtk_Expander_Record) return String;
    Sets the text of the label of the expander to Label.
  • procedure Set_Label_Widget (Expander : access Gtk_Expander_Record; Label_Widget : access Gtk.Widget.Gtk_Widget_Record'Class);
    function Get_Label_Widget (Expander : access Gtk_Expander_Record) return Gtk.Widget.Gtk_Widget;
    Set the label widget for the expander. This is the widget that will appear embedded alongside the expander arrow.
  • procedure Set_Spacing (Expander : access Gtk_Expander_Record; Spacing : Gint);
    function Get_Spacing (Expander : access Gtk_Expander_Record) return Gint;
    Sets the spacing field of Expander, which is the number of pixels to place between expander and the child.
  • procedure Set_Use_Markup (Expander : access Gtk_Expander_Record; Use_Markup : Boolean);
    function Get_Use_Markup (Expander : access Gtk_Expander_Record) return Boolean;
    Sets whether the text of the label contains markup in Pango's text markup language. See Gtk.Label.Set_Markup.
  • procedure Set_Use_Underline (Expander : access Gtk_Expander_Record; Use_Underline : Boolean);
    function Get_Use_Underline (Expander : access Gtk_Expander_Record) return Boolean;
    If true, an underline in the text of the expander label indicates the next character should be used for the mnemonic accelerator key.

Signals

  • activate
    procedure Handler (Expander : access Gtk_Expander_Record'Class);
    Send this signal if you want to toggle the state of the expander, as if the user had clicked on it. This is mostly useful when associated with a keybinding

Properties

  • Expanded_Property
    Boolean
    Whether the expander has been opened to reveal the child widget
  • Label_Property
    String
    Text of the expander's label
  • Label_Widget_Property
    Object
    A widget to display in place of the usual expander label
  • Spacing_Property
    Int
    Space to put between the label and the child
  • Use_Markup_Property
    Boolean
    The text of the label includes XML markup. See pango_parse_markup
  • Use_Underline_Property
    Boolean
    If set, an underline in the text indicates the next character

Style Properties

  • Expander_Size_Property
    Int
    Size of the expander arrow
  • Expander_Spacing_Property
    Int
    Spacing around expander arrow

Alphabetical Index