PHP-GTK
Tuesday, October 21, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkEventBox::set_visible_window
GtkExpander Constructornext

Last updated: Sun, 12 May 2013
view this page in English

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.

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


User Contributed Notes
gtk.gtkexpander.php
add a note about notes
There are no user contributed notes for this page.


previousGtkEventBox::set_visible_window
GtkExpander Constructornext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:57 2013 CEST