~ubuntu-branches/ubuntu/quantal/gtkmm3.0/quantal

« back to all changes in this revision

Viewing changes to gtk/gtkmm/sizegroup.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-28 09:25:06 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20120928092506-9h63ais5o750a8sk
Tags: 3.5.13-0ubuntu1
* New upstream release
* debian/control:
  - Bump build-depends on libglibmm-2.4-dev, libgtk-3-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include <glibmm/ustring.h>
8
8
#include <sigc++/sigc++.h>
9
9
 
10
 
/* $Id: sizegroup.hg,v 1.5 2006/12/11 18:57:50 murrayc Exp $ */
11
 
 
12
 
/* box.h
13
 
 *
 
10
/*
14
11
 * Copyright 2002 The gtkmm Development Team
15
12
 *
16
13
 * This library is free software; you can redistribute it and/or
81
78
{
82
79
 
83
80
 
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.
86
 
 * 
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 
 
83
 *
 
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.
90
87
 *
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.
95
 
 * 
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  
 
92
 *
 
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.
100
97
 */
101
98
 
282
279
 
283
280
};
284
281
 
285
 
} /* namespace Gtk */
 
282
} //namespace Gtk
286
283
 
287
284
 
288
285
namespace Glib