Ardour  9.0-pre0-582-g084a23a80d
sizegroup.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_SIZEGROUP_H
4 #define _GTKMM_SIZEGROUP_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: sizegroup.hg,v 1.5 2006/12/11 18:57:50 murrayc Exp $ */
11 
12 /* box.h
13  *
14  * Copyright 2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <glibmm/object.h>
32 #include <gtkmm/widget.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkSizeGroup GtkSizeGroup;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 namespace Gtk
43 { class SizeGroup_Class; } // namespace Gtk
44 #endif //DOXYGEN_SHOULD_SKIP_THIS
45 
46 namespace Gtk
47 {
48 
49 
57 {
62 };
63 
64 } // namespace Gtk
65 
66 
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68 namespace Glib
69 {
70 
71 template <>
72 class Value<Gtk::SizeGroupMode> : public Glib::Value_Enum<Gtk::SizeGroupMode>
73 {
74 public:
75  static GType value_type() G_GNUC_CONST;
76 };
77 
78 } // namespace Glib
79 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
80 
81 
82 namespace Gtk
83 {
84 
85 
104 class SizeGroup : public Glib::Object
105 {
106 
107 #ifndef DOXYGEN_SHOULD_SKIP_THIS
108 
109 public:
110  typedef SizeGroup CppObjectType;
111  typedef SizeGroup_Class CppClassType;
112  typedef GtkSizeGroup BaseObjectType;
113  typedef GtkSizeGroupClass BaseClassType;
114 
115 private: friend class SizeGroup_Class;
116  static CppClassType sizegroup_class_;
117 
118 private:
119  // noncopyable
120  SizeGroup(const SizeGroup&);
121  SizeGroup& operator=(const SizeGroup&);
122 
123 protected:
124  explicit SizeGroup(const Glib::ConstructParams& construct_params);
125  explicit SizeGroup(GtkSizeGroup* castitem);
126 
127 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
128 
129 public:
130  virtual ~SizeGroup();
131 
134  static GType get_type() G_GNUC_CONST;
135 
136 #ifndef DOXYGEN_SHOULD_SKIP_THIS
137 
138 
139  static GType get_base_type() G_GNUC_CONST;
140 #endif
141 
143  GtkSizeGroup* gobj() { return reinterpret_cast<GtkSizeGroup*>(gobject_); }
144 
146  const GtkSizeGroup* gobj() const { return reinterpret_cast<GtkSizeGroup*>(gobject_); }
147 
150 
151 private:
152 
153 protected:
154  explicit SizeGroup(SizeGroupMode mode);
155 
156 public:
157 
158 
159  static Glib::RefPtr<SizeGroup> create(SizeGroupMode mode);
160 
161 
172 
178 
179 
186  void set_ignore_hidden(bool ignore_hidden = true);
187 
192  bool get_ignore_hidden() const;
193 
194 
206  void add_widget(Widget& widget);
207 
212  void remove_widget(Widget& widget);
213 
214 
220  Glib::SListHandle<Widget*> get_widgets();
221 
227  Glib::SListHandle<const Widget*> get_widgets() const;
228 
234  Glib::PropertyProxy< SizeGroupMode > property_mode() ;
235 
241  Glib::PropertyProxy_ReadOnly< SizeGroupMode > property_mode() const;
242 
248  Glib::PropertyProxy< bool > property_ignore_hidden() ;
249 
255  Glib::PropertyProxy_ReadOnly< bool > property_ignore_hidden() const;
256 
257 
258 public:
259 
260 public:
261  //C++ methods used to invoke GTK+ virtual functions:
262 
263 protected:
264  //GTK+ Virtual Functions (override these to change behaviour):
265 
266  //Default Signal Handlers::
267 
268 
269 };
270 
271 } /* namespace Gtk */
272 
273 
274 namespace Glib
275 {
284  Glib::RefPtr<Gtk::SizeGroup> wrap(GtkSizeGroup* object, bool take_copy = false);
285 }
286 
287 
288 #endif /* _GTKMM_SIZEGROUP_H */
289 
static Glib::RefPtr< SizeGroup > create(SizeGroupMode mode)
void add_widget(Widget &widget)
void set_ignore_hidden(bool ignore_hidden=true)
GtkSizeGroup * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
static GType get_type() G_GNUC_CONST
Glib::PropertyProxy_ReadOnly< bool > property_ignore_hidden() const
Glib::PropertyProxy_ReadOnly< SizeGroupMode > property_mode() const
void remove_widget(Widget &widget)
SizeGroupMode get_mode() const
const GtkSizeGroup * gobj() const
Provides access to the underlying C GObject.
Definition: sizegroup.h:146
virtual ~SizeGroup()
Glib::SListHandle< const Widget * > get_widgets() const
Glib::RefPtr< Gtk::SizeGroup > wrap(GtkSizeGroup *object, bool take_copy=false)
bool get_ignore_hidden() const
Glib::PropertyProxy< bool > property_ignore_hidden()
SizeGroup(SizeGroupMode mode)
void set_mode(SizeGroupMode mode)
Glib::SListHandle< Widget * > get_widgets()
Glib::PropertyProxy< SizeGroupMode > property_mode()
GtkSizeGroup * gobj()
Provides access to the underlying C GObject.
Definition: sizegroup.h:143
SizeGroupMode
Definition: sizegroup.h:57
@ SIZE_GROUP_NONE
Definition: sizegroup.h:58
@ SIZE_GROUP_BOTH
Definition: sizegroup.h:61
@ SIZE_GROUP_VERTICAL
Definition: sizegroup.h:60
@ SIZE_GROUP_HORIZONTAL
Definition: sizegroup.h:59
Definition: ardour_ui.h:188
Definition: lobject.h:100