Class: Gtk::Expander

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#expandedTrueClass

Queries a Gtk::Expander and returns its current state. Returns true if the child widget is revealed.

See gtk_expander_set_expanded().

Returns:

  • (TrueClass)

    the current state of the expander

#expanded=(expanded) ⇒ TrueClass

Parameters:

  • expanded (TrueClass)

Returns:

  • (TrueClass)

    expanded

  • (TrueClass)

    expanded

#expanded?TrueClass

Returns expanded.

Returns:

  • (TrueClass)

    expanded

#labelString

Returns label.

Returns:

  • (String)

    label

#label=(label) ⇒ String

Parameters:

  • label (String)

Returns:

  • (String)

    label

  • (String)

    label

#label_fillTrueClass

Returns whether the label widget will fill all available horizontal space allocated to expander.

Returns:

  • (TrueClass)

    true if the label widget will fill all available horizontal space

#label_fill=(label_fill) ⇒ TrueClass

Parameters:

  • label_fill (TrueClass)

Returns:

  • (TrueClass)

    label-fill

  • (TrueClass)

    label-fill

#label_fill?TrueClass

Returns label-fill.

Returns:

  • (TrueClass)

    label-fill

#label_widgetGtk::Widget

Returns label-widget.

Returns:

#label_widget=(label_widget) ⇒ Gtk::Widget

Parameters:

Returns:

#new(label) ⇒ Gtk::Widget

Creates a new expander using label as the text of the label.

Parameters:

  • label (String)

    the text of the label

Returns:

#new_with_mnemonic(label) ⇒ Gtk::Widget

Creates 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.

Parameters:

  • label (String)

    the text of the label with an underscore in front of the mnemonic character

Returns:

#resize_toplevelTrueClass

Returns whether the expander will resize the toplevel widget containing the expander upon resizing and collpasing.

Returns:

  • (TrueClass)

    the “resize toplevel” setting.

#resize_toplevel=(resize_toplevel) ⇒ TrueClass

When this property is true, the expander will resize the toplevel widget containing the expander upon expanding and collapsing.

Parameters:

  • resize_toplevel (TrueClass)

Returns:

  • (TrueClass)

    resize-toplevel

  • (TrueClass)

    resize-toplevel

#resize_toplevel?TrueClass

When this property is true, the expander will resize the toplevel widget containing the expander upon expanding and collapsing.

Returns:

  • (TrueClass)

    resize-toplevel

#spacingInteger

Space to put between the label and the child when the expander is expanded.

Returns:

  • (Integer)

    spacing

#spacing=(spacing) ⇒ Integer

Space to put between the label and the child when the expander is expanded.

Parameters:

  • spacing (Integer)

Returns:

  • (Integer)

    spacing

  • (Integer)

    spacing

#use_markupTrueClass

Returns whether the label’s text is interpreted as marked up with the [Pango text markup language]. See gtk_expander_set_use_markup().

Returns:

  • (TrueClass)

    true if the label’s text will be parsed for markup

#use_markup=(use_markup) ⇒ TrueClass

Parameters:

  • use_markup (TrueClass)

Returns:

  • (TrueClass)

    use-markup

  • (TrueClass)

    use-markup

#use_markup?TrueClass

Returns use-markup.

Returns:

  • (TrueClass)

    use-markup

#use_underlineTrueClass

Returns whether an embedded underline in the expander label indicates a mnemonic. See gtk_expander_set_use_underline().

Returns:

  • (TrueClass)

    true if an embedded underline in the expander label indicates the mnemonic accelerator keys

#use_underline=(use_underline) ⇒ TrueClass

Parameters:

  • use_underline (TrueClass)

Returns:

  • (TrueClass)

    use-underline

  • (TrueClass)

    use-underline

#use_underline?TrueClass

Returns use-underline.

Returns:

  • (TrueClass)

    use-underline