Ardour  8.7-14-g57a6773833
buttonbox.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_BUTTONBOX_H
4 #define _GTKMM_BUTTONBOX_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: buttonbox.hg,v 1.3 2003/10/12 09:38:11 murrayc Exp $ */
11 
12 /* buttonbox.h
13  *
14  * Copyright (C) 1998-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 <gtkmm/box.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkButtonBox GtkButtonBox;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class ButtonBox_Class; } // namespace Gtk
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
43 typedef struct _GtkVButtonBox GtkVButtonBox;
45 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
46 
47 
48 namespace Gtk
49 { class VButtonBox_Class; } // namespace Gtk
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 typedef struct _GtkHButtonBox GtkHButtonBox;
53 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
54 
55 
56 namespace Gtk
57 { class HButtonBox_Class; } // namespace Gtk
58 namespace Gtk
59 {
60 
61 // This is a #define in GTK+, and unrelated to the GtkButtonBoxStyle enum.
63 enum { BUTTONBOX_DEFAULT = -1 };
64 
65 
66 //TODO: Inherit/Implement Orientation when we can break ABI.
67 
75 class ButtonBox : public Box
76 {
77  public:
78 #ifndef DOXYGEN_SHOULD_SKIP_THIS
79  typedef ButtonBox CppObjectType;
80  typedef ButtonBox_Class CppClassType;
81  typedef GtkButtonBox BaseObjectType;
82  typedef GtkButtonBoxClass BaseClassType;
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
84 
85  virtual ~ButtonBox();
86 
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS
88 
89 private:
90  friend class ButtonBox_Class;
91  static CppClassType buttonbox_class_;
92 
93  // noncopyable
94  ButtonBox(const ButtonBox&);
95  ButtonBox& operator=(const ButtonBox&);
96 
97 protected:
98  explicit ButtonBox(const Glib::ConstructParams& construct_params);
99  explicit ButtonBox(GtkButtonBox* castitem);
100 
101 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
102 
103 public:
104 #ifndef DOXYGEN_SHOULD_SKIP_THIS
105  static GType get_type() G_GNUC_CONST;
106 
107 
108  static GType get_base_type() G_GNUC_CONST;
109 #endif
110 
112  GtkButtonBox* gobj() { return reinterpret_cast<GtkButtonBox*>(gobject_); }
113 
115  const GtkButtonBox* gobj() const { return reinterpret_cast<GtkButtonBox*>(gobject_); }
116 
117 
118 public:
119  //C++ methods used to invoke GTK+ virtual functions:
120 
121 protected:
122  //GTK+ Virtual Functions (override these to change behaviour):
123 
124  //Default Signal Handlers::
125 
126 
127 private:
128 
129  //gtkmmproc error: gtk_button_box_set_spacing : ignored method defs lookup failed//gtkmmproc error: gtk_button_box_get_spacing : ignored method defs lookup failed
130 public:
131 
133 
134  void set_layout(ButtonBoxStyle layout_style);
135 
136 
154  void set_child_secondary(Widget& child, bool is_secondary = true);
155 
161  bool get_child_secondary(const Gtk::Widget& child) const;
162 
163 //TODO: Replace (and deprecate) with use of properties:
164 
165 
166  int get_child_min_width() const;
167 
168  //Note that the const int& is silly, but was once generated and must be kept for ABI.
169  void set_child_min_width(const int& value);
170 
171  int get_child_min_height() const;
172 
173  //Note that the const int& is silly, but was once generated and must be kept for ABI.
174  void set_child_min_height(const int& value);
175 
176  int get_child_ipadding_x() const;
177 
178  //Note that the const int& is silly, but was once generated and must be kept for ABI.
179  void set_child_ipadding_x(const int& value);
180 
181  int get_child_ipadding_y() const;
182 
183  //Note that the const int& is silly, but was once generated and must be kept for ABI.
184  void set_child_ipadding_y(const int& value);
185 
191  Glib::PropertyProxy< ButtonBoxStyle > property_layout_style() ;
192 
198  Glib::PropertyProxy_ReadOnly< ButtonBoxStyle > property_layout_style() const;
199 
200 
201 };
202 
216 class VButtonBox : public ButtonBox
217 {
218  public:
219 #ifndef DOXYGEN_SHOULD_SKIP_THIS
220  typedef VButtonBox CppObjectType;
221  typedef VButtonBox_Class CppClassType;
222  typedef GtkVButtonBox BaseObjectType;
223  typedef GtkVButtonBoxClass BaseClassType;
224 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
225 
226  virtual ~VButtonBox();
227 
228 #ifndef DOXYGEN_SHOULD_SKIP_THIS
229 
230 private:
231  friend class VButtonBox_Class;
232  static CppClassType vbuttonbox_class_;
233 
234  // noncopyable
235  VButtonBox(const VButtonBox&);
236  VButtonBox& operator=(const VButtonBox&);
237 
238 protected:
239  explicit VButtonBox(const Glib::ConstructParams& construct_params);
240  explicit VButtonBox(GtkVButtonBox* castitem);
241 
242 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
243 
244 public:
245 #ifndef DOXYGEN_SHOULD_SKIP_THIS
246  static GType get_type() G_GNUC_CONST;
247 
248 
249  static GType get_base_type() G_GNUC_CONST;
250 #endif
251 
253  GtkVButtonBox* gobj() { return reinterpret_cast<GtkVButtonBox*>(gobject_); }
254 
256  const GtkVButtonBox* gobj() const { return reinterpret_cast<GtkVButtonBox*>(gobject_); }
257 
258 
259 public:
260  //C++ methods used to invoke GTK+ virtual functions:
261 
262 protected:
263  //GTK+ Virtual Functions (override these to change behaviour):
264 
265  //Default Signal Handlers::
266 
267 
268 private:
269 
270 public:
272 
273 
274 };
275 
289 class HButtonBox : public ButtonBox
290 {
291  public:
292 #ifndef DOXYGEN_SHOULD_SKIP_THIS
293  typedef HButtonBox CppObjectType;
294  typedef HButtonBox_Class CppClassType;
295  typedef GtkHButtonBox BaseObjectType;
296  typedef GtkHButtonBoxClass BaseClassType;
297 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
298 
299  virtual ~HButtonBox();
300 
301 #ifndef DOXYGEN_SHOULD_SKIP_THIS
302 
303 private:
304  friend class HButtonBox_Class;
305  static CppClassType hbuttonbox_class_;
306 
307  // noncopyable
308  HButtonBox(const HButtonBox&);
309  HButtonBox& operator=(const HButtonBox&);
310 
311 protected:
312  explicit HButtonBox(const Glib::ConstructParams& construct_params);
313  explicit HButtonBox(GtkHButtonBox* castitem);
314 
315 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
316 
317 public:
318 #ifndef DOXYGEN_SHOULD_SKIP_THIS
319  static GType get_type() G_GNUC_CONST;
320 
321 
322  static GType get_base_type() G_GNUC_CONST;
323 #endif
324 
326  GtkHButtonBox* gobj() { return reinterpret_cast<GtkHButtonBox*>(gobject_); }
327 
329  const GtkHButtonBox* gobj() const { return reinterpret_cast<GtkHButtonBox*>(gobject_); }
330 
331 
332 public:
333  //C++ methods used to invoke GTK+ virtual functions:
334 
335 protected:
336  //GTK+ Virtual Functions (override these to change behaviour):
337 
338  //Default Signal Handlers::
339 
340 
341 private:
342 
343 public:
345 
346 
347 };
348 
349 } // namespace Gtk
350 
351 
352 namespace Glib
353 {
362  Gtk::ButtonBox* wrap(GtkButtonBox* object, bool take_copy = false);
363 } //namespace Glib
364 
365 
366 namespace Glib
367 {
376  Gtk::VButtonBox* wrap(GtkVButtonBox* object, bool take_copy = false);
377 } //namespace Glib
378 
379 
380 namespace Glib
381 {
390  Gtk::HButtonBox* wrap(GtkHButtonBox* object, bool take_copy = false);
391 } //namespace Glib
392 
393 
394 #endif /* _GTKMM_BUTTONBOX_H */
395 
void set_child_secondary(Widget &child, bool is_secondary=true)
void set_layout(ButtonBoxStyle layout_style)
int get_child_ipadding_y() const
virtual ~ButtonBox()
Glib::PropertyProxy< ButtonBoxStyle > property_layout_style()
void set_child_min_width(const int &value)
Gtk::ButtonBox * wrap(GtkButtonBox *object, bool take_copy=false)
ButtonBoxStyle get_layout() const
int get_child_min_width() const
int get_child_min_height() const
void set_child_min_height(const int &value)
void set_child_ipadding_x(const int &value)
int get_child_ipadding_x() const
const GtkButtonBox * gobj() const
Provides access to the underlying C GtkObject.
Definition: buttonbox.h:115
Glib::PropertyProxy_ReadOnly< ButtonBoxStyle > property_layout_style() const
GtkButtonBox * gobj()
Provides access to the underlying C GtkObject.
Definition: buttonbox.h:112
void set_child_ipadding_y(const int &value)
bool get_child_secondary(const Gtk::Widget &child) const
HButtonBox(ButtonBoxStyle layout=BUTTONBOX_DEFAULT_STYLE, int spacing=BUTTONBOX_DEFAULT)
Gtk::HButtonBox * wrap(GtkHButtonBox *object, bool take_copy=false)
GtkHButtonBox * gobj()
Provides access to the underlying C GtkObject.
Definition: buttonbox.h:326
virtual ~HButtonBox()
const GtkHButtonBox * gobj() const
Provides access to the underlying C GtkObject.
Definition: buttonbox.h:329
VButtonBox(ButtonBoxStyle layout=BUTTONBOX_DEFAULT_STYLE, int spacing=BUTTONBOX_DEFAULT)
Gtk::VButtonBox * wrap(GtkVButtonBox *object, bool take_copy=false)
virtual ~VButtonBox()
const GtkVButtonBox * gobj() const
Provides access to the underlying C GtkObject.
Definition: buttonbox.h:256
GtkVButtonBox * gobj()
Provides access to the underlying C GtkObject.
Definition: buttonbox.h:253
@ BUTTONBOX_DEFAULT
Definition: buttonbox.h:63
Definition: ardour_ui.h:188