gtk.SizeGroup.SizeGroup Class Reference

Inheritance diagram for gtk.SizeGroup.SizeGroup:

gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkSizeGroupgetSizeGroupStruct ()
 this (GtkSizeGroup *gtkSizeGroup)
 Sets our main struct and passes it to the parent class.
 this (GtkSizeGroupMode mode)
 Create a new GtkSizeGroup.
void setMode (GtkSizeGroupMode mode)
 Sets the GtkSizeGroupMode of the size group.
GtkSizeGroupMode getMode ()
 Gets the current mode of the size group.
void setIgnoreHidden (int ignoreHidden)
 Sets whether unmapped widgets should be ignored when calculating the size.
int getIgnoreHidden ()
 Returns if invisible widgets are ignored when calculating the size.
void addWidget (Widget widget)
 Adds a widget to a GtkSizeGroup.
void removeWidget (Widget widget)
 Removes a widget from a GtkSizeGroup.
GSListgetWidgets ()
 Returns the list of widgets associated with size_group.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkSizeGroupgtkSizeGroup
 the main Gtk struct

Constructor & Destructor Documentation

gtk.SizeGroup.SizeGroup.this ( GtkSizeGroup gtkSizeGroup  ) 

Sets our main struct and passes it to the parent class.

gtk.SizeGroup.SizeGroup.this ( GtkSizeGroupMode  mode  ) 

Create a new GtkSizeGroup.

mode: the mode for the new size group. Returns: a newly created GtkSizeGroup


Member Function Documentation

void gtk.SizeGroup.SizeGroup.addWidget ( Widget  widget  ) 

Adds a widget to a GtkSizeGroup.

In the future, the requisition of the widget will be determined as the maximum of its requisition and the requisition of the other widgets in the size group. Whether this applies horizontally, vertically, or in both directions depends on the mode of the size group. See gtk_size_group_set_mode(). size_group: a GtkSizeGroup widget: the GtkWidget to add

int gtk.SizeGroup.SizeGroup.getIgnoreHidden (  ) 

Returns if invisible widgets are ignored when calculating the size.

size_group: a GtkSizeGroup Returns: TRUE if invisible widgets are ignored. Since 2.8

GtkSizeGroupMode gtk.SizeGroup.SizeGroup.getMode (  ) 

Gets the current mode of the size group.

See gtk_size_group_set_mode(). size_group: a GtkSizeGroup Returns: the current mode of the size group.

GtkSizeGroup* gtk.SizeGroup.SizeGroup.getSizeGroupStruct (  ) 

void* gtk.SizeGroup.SizeGroup.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gobject.ObjectG.ObjectG.

GSList* gtk.SizeGroup.SizeGroup.getWidgets (  ) 

Returns the list of widgets associated with size_group.

size_group: a GtkSizeGrup Returns: a GSList of widgets. The list is owned by GTK+ and should not be modified. Since 2.10 Property Details The "ignore-hidden" property "ignore-hidden" gboolean : Read / Write If TRUE, unmapped widgets are ignored when determining the size of the group. Default value: FALSE Since 2.8

void gtk.SizeGroup.SizeGroup.removeWidget ( Widget  widget  ) 

Removes a widget from a GtkSizeGroup.

size_group: a GtkSizeGrup widget: the GtkWidget to remove

void gtk.SizeGroup.SizeGroup.setIgnoreHidden ( int  ignoreHidden  ) 

Sets whether unmapped widgets should be ignored when calculating the size.

size_group: a GtkSizeGroup ignore_hidden: whether unmapped widgets should be ignored when calculating the size Since 2.8

void gtk.SizeGroup.SizeGroup.setMode ( GtkSizeGroupMode  mode  ) 

Sets the GtkSizeGroupMode of the size group.

The mode of the size group determines whether the widgets in the size group should all have the same horizontal requisition (GTK_SIZE_GROUP_MODE_HORIZONTAL) all have the same vertical requisition (GTK_SIZE_GROUP_MODE_VERTICAL), or should all have the same requisition in both directions (GTK_SIZE_GROUP_MODE_BOTH). size_group: a GtkSizeGroup mode: the mode to set for the size group.


Member Data Documentation

GtkSizeGroup* gtk.SizeGroup.SizeGroup.gtkSizeGroup [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo