GtkExpander
A container that can hide its child.
Object Hierarchy
Description
GtkExpander creates a container that can hide or display details on request. This is achieved by using a small triangle (similar to the one used in GtkTreeView) to control whether the details are shown or not. If the triangle is pointing to the right, details are hidden. On clicking the object, the triangle points downward which indicates that the details are now visible.
You can use GtkExpander as any other descendant of GtkBin by first creating the child widget and then using add() to add it to the expander. When the expander is toggled, it automatically takes care of showing and hiding the details.
Constructors
GtkExpander (string label);-- Creates an expander object.GtkExpander::new_with_mnemonic (string label);-- Creates a GtkExpander instance with a mnemonic label.
Methods
get_expanded() Return the current state of the expander get_label() Fetches the text from the expander's label get_label_widget() Retrieves the label widget get_spacing() Returns the value set by set_spacing() get_use_markup() Determines if the child label's text is interpreted as Pango text markup language. get_use_underline() Determines whether an embedded underline in the expander label indicates a mnemonic. set_expanded() Sets the state of the child to 'visible'. set_label() Sets the text of the label of the expander. set_label_widget() Sets the label widget for the expander. set_spacing() Sets the distance between the GtkExpander and its child. set_use_markup() Sets if the child label's text is to be interpreted as Pango text markup language. set_use_underline() Sets whether an underscore preceding a character in the label means that the character is the mnemonic accelerator for the expander.
Signals
"activate" Emitted when the expander is activated.