7
7
#include <glibmm/ustring.h>
8
8
#include <sigc++/sigc++.h>
10
/* $Id: sizegroup.hg,v 1.5 2006/12/11 18:57:50 murrayc Exp $ */
14
11
* Copyright 2002 The gtkmm Development Team
16
13
* This library is free software; you can redistribute it and/or
84
/** Gtk::SizeGroup provides a mechanism for grouping a number of widgets together so they all request the same amount of space.
81
/** Gtk::SizeGroup provides a mechanism for grouping a number of widgets together so they all request the same amount of space.
85
82
* This is typically useful when you want a column of widgets to have the same size, but you can't use a Gtk::Table widget.
87
* In detail, the size requested for each widget in a Gtk::SizeGroup is the maximum of the sizes that would have been
88
* requested for each widget in the size group if they were not in the size group. The mode of the size group (see
84
* In detail, the size requested for each widget in a Gtk::SizeGroup is the maximum of the sizes that would have been
85
* requested for each widget in the size group if they were not in the size group. The mode of the size group (see
89
86
* set_mode()) determines whether this applies to the horizontal size, the vertical size, or both sizes.
91
* Note that size groups only affect the amount of space requested, not the size that the widgets finally receive. If
92
* you want the widgets in a GtkSizeGroup to actually be the same size, you need to pack them in such a way that they
93
* get the size they request and not more. For example, if you are packing your widgets into a table, you would not
88
* Note that size groups only affect the amount of space requested, not the size that the widgets finally receive. If
89
* you want the widgets in a GtkSizeGroup to actually be the same size, you need to pack them in such a way that they
90
* get the size they request and not more. For example, if you are packing your widgets into a table, you would not
94
91
* include the Gtk::FILL flag.
96
* Widgets can be part of multiple size groups; GTK+ will compute the horizontal size of a widget from the horizontal
97
* requisition of all widgets that can be reached from the widget by a chain of size groups of type
98
* Gtk::SIZE_GROUP_HORIZONTAL or Gtk::SIZE_GROUP_BOTH, and the vertical size from the vertical requisition of all widgets
93
* Widgets can be part of multiple size groups; GTK+ will compute the horizontal size of a widget from the horizontal
94
* requisition of all widgets that can be reached from the widget by a chain of size groups of type
95
* Gtk::SIZE_GROUP_HORIZONTAL or Gtk::SIZE_GROUP_BOTH, and the vertical size from the vertical requisition of all widgets
99
96
* that can be reached from the widget by a chain of size groups of type Gtk::SIZE_GROUP_VERTICAL or Gtk::SIZE_GROUP_BOTH.