~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to include/gtkmm-2.4/gtkmm/handlebox.h

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GTKMM_HANDLEBOX_H
 
4
#define _GTKMM_HANDLEBOX_H
 
5
 
 
6
 
 
7
#include <glibmm.h>
 
8
 
 
9
 /* $Id: handlebox.hg,v 1.1 2003/01/21 13:40:26 murrayc Exp $ */
 
10
 
 
11
/* handlebox.h
 
12
 *
 
13
 * Copyright (C) 1998-2002 The gtkmm Development Team
 
14
 *
 
15
 * This library is free software; you can redistribute it and/or
 
16
 * modify it under the terms of the GNU Lesser General Public
 
17
 * License as published by the Free Software Foundation; either
 
18
 * version 2.1 of the License, or (at your option) any later version.
 
19
 *
 
20
 * This library is distributed in the hope that it will be useful,
 
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
23
 * Lesser General Public License for more details.
 
24
 *
 
25
 * You should have received a copy of the GNU Lesser General Public
 
26
 * License along with this library; if not, write to the Free
 
27
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
28
 */
 
29
 
 
30
#include <gtkmm/eventbox.h>
 
31
 
 
32
 
 
33
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
34
typedef struct _GtkHandleBox GtkHandleBox;
 
35
typedef struct _GtkHandleBoxClass GtkHandleBoxClass;
 
36
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
37
 
 
38
 
 
39
namespace Gtk
 
40
{ class HandleBox_Class; } // namespace Gtk
 
41
namespace Gtk
 
42
{
 
43
 
 
44
/** A widget for detachable window portions.
 
45
 *
 
46
 * The Gtk::HandleBox widget allows a portion of a window to be "torn off".
 
47
 * It displays its child and a handle that the user can drag to tear off a separate window (the float window) containing the child widget. A thin ghost is drawn in the original location of the handlebox. By dragging the separate window back to its original location, it can be reattached.
 
48
 * When reattaching, the ghost and float window must be aligned along one of the edges, the snap edge. This can be specified by the application programmer explicitely, or GTK+ will pick a reasonable default based on the handle position.
 
49
 * To make detaching and reattaching the handlebox as minimally confusing as possible to the user, it is important to set the snap edge so that the snap edge does not move when the handlebox is deattached.
 
50
 * For instance, if the handlebox is packed at the bottom of a VBox, then when the handlebox is detached, the bottom edge of the handlebox's allocation will remain fixed as the height of the handlebox shrinks, so the snap edge should be set to GTK_POS_BOTTOM.
 
51
 *
 
52
 * @ingroup Widgets
 
53
 * @ingroup Containers
 
54
 */
 
55
 
 
56
class HandleBox : public Bin
 
57
{
 
58
  public:
 
59
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
60
  typedef HandleBox CppObjectType;
 
61
  typedef HandleBox_Class CppClassType;
 
62
  typedef GtkHandleBox BaseObjectType;
 
63
  typedef GtkHandleBoxClass BaseClassType;
 
64
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
65
 
 
66
  virtual ~HandleBox();
 
67
 
 
68
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
69
 
 
70
private:
 
71
  friend class HandleBox_Class;
 
72
  static CppClassType handlebox_class_;
 
73
 
 
74
  // noncopyable
 
75
  HandleBox(const HandleBox&);
 
76
  HandleBox& operator=(const HandleBox&);
 
77
 
 
78
protected:
 
79
  explicit HandleBox(const Glib::ConstructParams& construct_params);
 
80
  explicit HandleBox(GtkHandleBox* castitem);
 
81
 
 
82
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
83
 
 
84
public:
 
85
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
86
  static GType get_type()      G_GNUC_CONST;
 
87
 
 
88
 
 
89
  static GType get_base_type() G_GNUC_CONST;
 
90
#endif
 
91
 
 
92
  ///Provides access to the underlying C GtkObject.
 
93
  GtkHandleBox*       gobj()       { return reinterpret_cast<GtkHandleBox*>(gobject_); }
 
94
 
 
95
  ///Provides access to the underlying C GtkObject.
 
96
  const GtkHandleBox* gobj() const { return reinterpret_cast<GtkHandleBox*>(gobject_); }
 
97
 
 
98
 
 
99
public:
 
100
  //C++ methods used to invoke GTK+ virtual functions:
 
101
 
 
102
protected:
 
103
  //GTK+ Virtual Functions (override these to change behaviour):
 
104
 
 
105
  //Default Signal Handlers::
 
106
  virtual void on_child_attached(Widget* child);
 
107
  virtual void on_child_detached(Widget* child);
 
108
 
 
109
 
 
110
private:
 
111
 
 
112
public:
 
113
  HandleBox();
 
114
 
 
115
 
 
116
  void set_shadow_type(ShadowType type);
 
117
  
 
118
  /** Gets the type of shadow drawn around the handle box. See
 
119
   * set_shadow_type().
 
120
   * @return The type of shadow currently drawn around the handle box.
 
121
   */
 
122
  ShadowType get_shadow_type() const;
 
123
  
 
124
  void set_handle_position(PositionType position);
 
125
  
 
126
  /** Gets the handle position of the handle box. See
 
127
   * set_handle_position().
 
128
   * @return The current handle position.
 
129
   */
 
130
  PositionType get_handle_position() const;
 
131
  
 
132
  void set_snap_edge(PositionType edge);
 
133
  
 
134
  /** Gets the edge used for determining reattachment of the handle box. See
 
135
   * set_snap_edge().
 
136
   * @return The edge used for determining reattachment, or (GtkPositionType)-1 if this
 
137
   * is determined (as per default) from the handle position.
 
138
   */
 
139
  PositionType get_snap_edge() const;
 
140
 
 
141
  
 
142
  /** Whether the handlebox's child is currently detached.
 
143
   * 
 
144
   * @newin{2,14}
 
145
   * @return <tt>true</tt> if the child is currently detached, otherwise <tt>false</tt>.
 
146
   */
 
147
  bool is_child_detached() const;
 
148
 
 
149
  
 
150
  /**
 
151
   * @par Prototype:
 
152
   * <tt>void on_my_%child_attached(Widget* child)</tt>
 
153
   */
 
154
 
 
155
  Glib::SignalProxy1< void,Widget* > signal_child_attached();
 
156
 
 
157
  
 
158
  /**
 
159
   * @par Prototype:
 
160
   * <tt>void on_my_%child_detached(Widget* child)</tt>
 
161
   */
 
162
 
 
163
  Glib::SignalProxy1< void,Widget* > signal_child_detached();
 
164
 
 
165
 
 
166
#ifndef GTKMM_DISABLE_DEPRECATED
 
167
 
 
168
  /** @deprecated You should not need to call this method.
 
169
   */
 
170
   Glib::RefPtr<Gdk::Window> get_bin_window();
 
171
  Glib::RefPtr<const Gdk::Window> get_bin_window() const;
 
172
 
 
173
  /** @deprecated You should not need to call this method.
 
174
   */
 
175
   Glib::RefPtr<Gdk::Window> get_float_window();
 
176
  Glib::RefPtr<const Gdk::Window> get_float_window() const;
 
177
 
 
178
  /** @deprecated This method does not seem to be useful and will be removed from a future version of gtkmm, due to changes in GTK+.
 
179
   */
 
180
  bool is_float_window_mapped() const;
 
181
 
 
182
  /** @deprecated This method does not seem to be useful and will be removed from a future version of gtkmm, due to changes in GTK+.
 
183
   */
 
184
  bool is_in_drag() const;
 
185
 
 
186
  /** @deprecated This method does not seem to be useful and will be removed from a future version of gtkmm, due to changes in GTK+.
 
187
   */
 
188
  bool shrinks_on_detach() const;
 
189
#endif // GTKMM_DISABLE_DEPRECATED
 
190
 
 
191
 
 
192
  //_WRAP_PROPERTY("shadow", ShadowType); //deprecated.
 
193
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
194
/** Appearance of the shadow that surrounds the container.
 
195
   *
 
196
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
197
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
198
   * the value of the property changes.
 
199
   */
 
200
  Glib::PropertyProxy<ShadowType> property_shadow_type() ;
 
201
#endif //#GLIBMM_PROPERTIES_ENABLED
 
202
 
 
203
#ifdef GLIBMM_PROPERTIES_ENABLED
 
204
/** Appearance of the shadow that surrounds the container.
 
205
   *
 
206
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
207
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
208
   * the value of the property changes.
 
209
   */
 
210
  Glib::PropertyProxy_ReadOnly<ShadowType> property_shadow_type() const;
 
211
#endif //#GLIBMM_PROPERTIES_ENABLED
 
212
 
 
213
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
214
/** Position of the handle relative to the child widget.
 
215
   *
 
216
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
217
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
218
   * the value of the property changes.
 
219
   */
 
220
  Glib::PropertyProxy<PositionType> property_handle_position() ;
 
221
#endif //#GLIBMM_PROPERTIES_ENABLED
 
222
 
 
223
#ifdef GLIBMM_PROPERTIES_ENABLED
 
224
/** Position of the handle relative to the child widget.
 
225
   *
 
226
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
227
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
228
   * the value of the property changes.
 
229
   */
 
230
  Glib::PropertyProxy_ReadOnly<PositionType> property_handle_position() const;
 
231
#endif //#GLIBMM_PROPERTIES_ENABLED
 
232
 
 
233
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
234
/** Side of the handlebox that's lined up with the docking point to dock the handlebox.
 
235
   *
 
236
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
237
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
238
   * the value of the property changes.
 
239
   */
 
240
  Glib::PropertyProxy<PositionType> property_snap_edge() ;
 
241
#endif //#GLIBMM_PROPERTIES_ENABLED
 
242
 
 
243
#ifdef GLIBMM_PROPERTIES_ENABLED
 
244
/** Side of the handlebox that's lined up with the docking point to dock the handlebox.
 
245
   *
 
246
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
247
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
248
   * the value of the property changes.
 
249
   */
 
250
  Glib::PropertyProxy_ReadOnly<PositionType> property_snap_edge() const;
 
251
#endif //#GLIBMM_PROPERTIES_ENABLED
 
252
 
 
253
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
254
/** Whether to use the value from the snap_edge property or a value derived from handle_position.
 
255
   *
 
256
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
257
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
258
   * the value of the property changes.
 
259
   */
 
260
  Glib::PropertyProxy<bool> property_snap_edge_set() ;
 
261
#endif //#GLIBMM_PROPERTIES_ENABLED
 
262
 
 
263
#ifdef GLIBMM_PROPERTIES_ENABLED
 
264
/** Whether to use the value from the snap_edge property or a value derived from handle_position.
 
265
   *
 
266
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
267
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
268
   * the value of the property changes.
 
269
   */
 
270
  Glib::PropertyProxy_ReadOnly<bool> property_snap_edge_set() const;
 
271
#endif //#GLIBMM_PROPERTIES_ENABLED
 
272
 
 
273
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
274
/** A boolean value indicating whether the handlebox's child is attached or detached.
 
275
   *
 
276
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
277
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
278
   * the value of the property changes.
 
279
   */
 
280
  Glib::PropertyProxy_ReadOnly<bool> property_child_detached() const;
 
281
#endif //#GLIBMM_PROPERTIES_ENABLED
 
282
 
 
283
 
 
284
};
 
285
 
 
286
} /* namespace Gtk */
 
287
 
 
288
 
 
289
namespace Glib
 
290
{
 
291
  /** A Glib::wrap() method for this object.
 
292
   * 
 
293
   * @param object The C instance.
 
294
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
 
295
   * @result A C++ instance that wraps this C instance.
 
296
   *
 
297
   * @relates Gtk::HandleBox
 
298
   */
 
299
  Gtk::HandleBox* wrap(GtkHandleBox* object, bool take_copy = false);
 
300
} //namespace Glib
 
301
 
 
302
 
 
303
#endif /* _GTKMM_HANDLEBOX_H */
 
304