2
// Generated by gtkmmproc -- DO NOT MODIFY!
9
/* $Id: paned.hg,v 1.6 2006/04/12 11:11:25 murrayc Exp $ */
14
* Copyright (C) 1998-2002 The gtkmm Development Team
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.
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.
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.
31
#include <gtkmm/container.h>
32
#include <gtkmm/orientable.h>
33
#include <gtkmm/enums.h>
36
#ifndef DOXYGEN_SHOULD_SKIP_THIS
37
typedef struct _GtkPaned GtkPaned;
38
typedef struct _GtkPanedClass GtkPanedClass;
39
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
43
{ class Paned_Class; } // namespace Gtk
44
#ifndef DOXYGEN_SHOULD_SKIP_THIS
45
typedef struct _GtkHPaned GtkHPaned;
46
typedef struct _GtkHPanedClass GtkHPanedClass;
47
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
51
{ class HPaned_Class; } // namespace Gtk
52
#ifndef DOXYGEN_SHOULD_SKIP_THIS
53
typedef struct _GtkVPaned GtkVPaned;
54
typedef struct _GtkVPanedClass GtkVPanedClass;
55
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
59
{ class VPaned_Class; } // namespace Gtk
63
/** This is the base class for widgets with two panes, arranged either
64
* horizontally (Gtk::HPaned) or vertically (Gtk::VPaned).
66
* Child widgets are added to the panes of the widget with pack1() and pack2().
67
* The division beween the two children is set by default from the size
68
* requests of the children, but it can be adjusted by the user.
70
* A paned widget draws a separator between the two child widgets and a small
71
* handle that the user can drag to adjust the division. It does not draw any
72
* relief around the children or around the separator. Often, it is useful to
73
* put each child inside a Gtk::Frame with the shadow type set to Gtk::SHADOW_IN
74
* so that the gutter appears as a ridge.
76
* Each child has two options that can be set - resize and shrink. If resize is
77
* true, then when the GtkPaned is resized, that child will expand or shrink
78
* along with the paned widget. If shrink is true, then when that child can be
79
* made smaller than it's requisition. Setting shrink to false allows the
80
* application to set a minimum size. If resize is false for both children,
81
* then this is treated as if resize is true for both children.
83
* The application can set the position of the slider as if it were set by the
84
* user, by calling set_position().
95
#ifndef DOXYGEN_SHOULD_SKIP_THIS
96
typedef Paned CppObjectType;
97
typedef Paned_Class CppClassType;
98
typedef GtkPaned BaseObjectType;
99
typedef GtkPanedClass BaseClassType;
100
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
104
#ifndef DOXYGEN_SHOULD_SKIP_THIS
107
friend class Paned_Class;
108
static CppClassType paned_class_;
112
Paned& operator=(const Paned&);
115
explicit Paned(const Glib::ConstructParams& construct_params);
116
explicit Paned(GtkPaned* castitem);
118
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
121
#ifndef DOXYGEN_SHOULD_SKIP_THIS
122
static GType get_type() G_GNUC_CONST;
125
static GType get_base_type() G_GNUC_CONST;
128
///Provides access to the underlying C GtkObject.
129
GtkPaned* gobj() { return reinterpret_cast<GtkPaned*>(gobject_); }
131
///Provides access to the underlying C GtkObject.
132
const GtkPaned* gobj() const { return reinterpret_cast<GtkPaned*>(gobject_); }
136
//C++ methods used to invoke GTK+ virtual functions:
139
//GTK+ Virtual Functions (override these to change behaviour):
141
//Default Signal Handlers::
149
//Note that we try to use the same defaul parameter value as the default property value.
150
explicit Paned(Orientation orientation = ORIENTATION_HORIZONTAL);
153
void add1(Widget& child);
155
void add2(Widget& child);
158
void pack1(Widget& child, bool resize, bool shrink);
159
void pack1(Widget& child, AttachOptions options = Gtk::EXPAND);
162
void pack2(Widget& child, bool resize, bool shrink);
163
void pack2(Widget& child, AttachOptions options = Gtk::EXPAND);
166
/** Obtains the position of the divider between the two panes.
167
* @return Position of the divider.
169
int get_position() const;
171
/** Sets the position of the divider between the two panes.
172
* @param position Pixel position of divider, a negative value means that the position
175
void set_position(int position);
178
/** Obtains the first child of the paned widget.
181
* @return First child, or <tt>0</tt> if it is not set.
183
Widget* get_child1();
185
/** Obtains the first child of the paned widget.
188
* @return First child, or <tt>0</tt> if it is not set.
190
const Widget* get_child1() const;
193
/** Obtains the second child of the paned widget.
196
* @return Second child, or <tt>0</tt> if it is not set.
198
Widget* get_child2();
200
/** Obtains the second child of the paned widget.
203
* @return Second child, or <tt>0</tt> if it is not set.
205
const Widget* get_child2() const;
208
/** Returns the Gdk::Window of the handle. This function is
209
* useful when handling button or motion events because it
210
* enables the callback to distinguish between the window
211
* of the paned, a child and the handle.
214
* @return The paned's handle window.
216
Glib::RefPtr<Gdk::Window> get_handle_window();
218
/** Returns the Gdk::Window of the handle. This function is
219
* useful when handling button or motion events because it
220
* enables the callback to distinguish between the window
221
* of the paned, a child and the handle.
224
* @return The paned's handle window.
226
Glib::RefPtr<const Gdk::Window> get_handle_window() const;
228
//Keybinding signals:
231
#ifdef GLIBMM_PROPERTIES_ENABLED
232
/** Position of paned separator in pixels (0 means all the way to the left/top).
234
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
235
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
236
* the value of the property changes.
238
Glib::PropertyProxy<int> property_position() ;
239
#endif //#GLIBMM_PROPERTIES_ENABLED
241
#ifdef GLIBMM_PROPERTIES_ENABLED
242
/** Position of paned separator in pixels (0 means all the way to the left/top).
244
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
245
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
246
* the value of the property changes.
248
Glib::PropertyProxy_ReadOnly<int> property_position() const;
249
#endif //#GLIBMM_PROPERTIES_ENABLED
251
#ifdef GLIBMM_PROPERTIES_ENABLED
252
/** TRUE if the Position property should be used.
254
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
255
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
256
* the value of the property changes.
258
Glib::PropertyProxy<bool> property_position_set() ;
259
#endif //#GLIBMM_PROPERTIES_ENABLED
261
#ifdef GLIBMM_PROPERTIES_ENABLED
262
/** TRUE if the Position property should be used.
264
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
265
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
266
* the value of the property changes.
268
Glib::PropertyProxy_ReadOnly<bool> property_position_set() const;
269
#endif //#GLIBMM_PROPERTIES_ENABLED
271
#ifdef GLIBMM_PROPERTIES_ENABLED
272
/** Smallest possible value for the 'position' property.
274
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
275
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
276
* the value of the property changes.
278
Glib::PropertyProxy_ReadOnly<int> property_min_position() const;
279
#endif //#GLIBMM_PROPERTIES_ENABLED
282
#ifdef GLIBMM_PROPERTIES_ENABLED
283
/** Largest possible value for the 'position' property.
285
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
286
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
287
* the value of the property changes.
289
Glib::PropertyProxy_ReadOnly<int> property_max_position() const;
290
#endif //#GLIBMM_PROPERTIES_ENABLED
296
* The Gtk::HPaned widget is a container widget with two children arranged
297
* horizontally. The division between the two panes is adjustable by the
298
* user by dragging a handle. See Gtk::Paned for details.
303
class HPaned : public Paned
306
#ifndef DOXYGEN_SHOULD_SKIP_THIS
307
typedef HPaned CppObjectType;
308
typedef HPaned_Class CppClassType;
309
typedef GtkHPaned BaseObjectType;
310
typedef GtkHPanedClass BaseClassType;
311
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
315
#ifndef DOXYGEN_SHOULD_SKIP_THIS
318
friend class HPaned_Class;
319
static CppClassType hpaned_class_;
322
HPaned(const HPaned&);
323
HPaned& operator=(const HPaned&);
326
explicit HPaned(const Glib::ConstructParams& construct_params);
327
explicit HPaned(GtkHPaned* castitem);
329
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
332
#ifndef DOXYGEN_SHOULD_SKIP_THIS
333
static GType get_type() G_GNUC_CONST;
336
static GType get_base_type() G_GNUC_CONST;
339
///Provides access to the underlying C GtkObject.
340
GtkHPaned* gobj() { return reinterpret_cast<GtkHPaned*>(gobject_); }
342
///Provides access to the underlying C GtkObject.
343
const GtkHPaned* gobj() const { return reinterpret_cast<GtkHPaned*>(gobject_); }
347
//C++ methods used to invoke GTK+ virtual functions:
350
//GTK+ Virtual Functions (override these to change behaviour):
352
//Default Signal Handlers::
364
* The Gtk::VPaned widget is a container widget with two children arranged
365
* vertically. The division between the two panes is adjustable by the
366
* user by dragging a handle. See Gtk::Paned for details.
371
class VPaned : public Paned
374
#ifndef DOXYGEN_SHOULD_SKIP_THIS
375
typedef VPaned CppObjectType;
376
typedef VPaned_Class CppClassType;
377
typedef GtkVPaned BaseObjectType;
378
typedef GtkVPanedClass BaseClassType;
379
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
383
#ifndef DOXYGEN_SHOULD_SKIP_THIS
386
friend class VPaned_Class;
387
static CppClassType vpaned_class_;
390
VPaned(const VPaned&);
391
VPaned& operator=(const VPaned&);
394
explicit VPaned(const Glib::ConstructParams& construct_params);
395
explicit VPaned(GtkVPaned* castitem);
397
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
400
#ifndef DOXYGEN_SHOULD_SKIP_THIS
401
static GType get_type() G_GNUC_CONST;
404
static GType get_base_type() G_GNUC_CONST;
407
///Provides access to the underlying C GtkObject.
408
GtkVPaned* gobj() { return reinterpret_cast<GtkVPaned*>(gobject_); }
410
///Provides access to the underlying C GtkObject.
411
const GtkVPaned* gobj() const { return reinterpret_cast<GtkVPaned*>(gobject_); }
415
//C++ methods used to invoke GTK+ virtual functions:
418
//GTK+ Virtual Functions (override these to change behaviour):
420
//Default Signal Handlers::
436
/** A Glib::wrap() method for this object.
438
* @param object The C instance.
439
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
440
* @result A C++ instance that wraps this C instance.
442
* @relates Gtk::Paned
444
Gtk::Paned* wrap(GtkPaned* object, bool take_copy = false);
450
/** A Glib::wrap() method for this object.
452
* @param object The C instance.
453
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
454
* @result A C++ instance that wraps this C instance.
456
* @relates Gtk::HPaned
458
Gtk::HPaned* wrap(GtkHPaned* object, bool take_copy = false);
464
/** A Glib::wrap() method for this object.
466
* @param object The C instance.
467
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
468
* @result A C++ instance that wraps this C instance.
470
* @relates Gtk::VPaned
472
Gtk::VPaned* wrap(GtkVPaned* object, bool take_copy = false);
476
#endif /* _GTKMM_PANED_H */