Ardour  8.7-15-gadf511264b
tk/ytkmm/ytkmm/gtkmm/frame.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_FRAME_H
4 #define _GTKMM_FRAME_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: frame.hg,v 1.6 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* frame.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 
32 #include <gtkmm/bin.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkFrame GtkFrame;
37 typedef struct _GtkFrameClass GtkFrameClass;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class Frame_Class; } // namespace Gtk
43 namespace Gtk
44 {
45 
57 class Frame : public Bin
58 {
59  public:
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61  typedef Frame CppObjectType;
62  typedef Frame_Class CppClassType;
63  typedef GtkFrame BaseObjectType;
64  typedef GtkFrameClass BaseClassType;
65 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
66 
67  virtual ~Frame();
68 
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 
71 private:
72  friend class Frame_Class;
73  static CppClassType frame_class_;
74 
75  // noncopyable
76  Frame(const Frame&);
77  Frame& operator=(const Frame&);
78 
79 protected:
80  explicit Frame(const Glib::ConstructParams& construct_params);
81  explicit Frame(GtkFrame* castitem);
82 
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
84 
85 public:
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87  static GType get_type() G_GNUC_CONST;
88 
89 
90  static GType get_base_type() G_GNUC_CONST;
91 #endif
92 
94  GtkFrame* gobj() { return reinterpret_cast<GtkFrame*>(gobject_); }
95 
97  const GtkFrame* gobj() const { return reinterpret_cast<GtkFrame*>(gobject_); }
98 
99 
100 public:
101  //C++ methods used to invoke GTK+ virtual functions:
102 
103 protected:
104  //GTK+ Virtual Functions (override these to change behaviour):
105 
106  //Default Signal Handlers::
107 
108 
109 private:
110 
111 public:
112 
113  Frame();
114  explicit Frame(const Glib::ustring& label);
115 
116 
117  //TODO: Add a bool use_markup arg to set_label() as a convenience - it would have to use set_label_widget().
118 
119 
123  void set_label(const Glib::ustring& label);
124  void unset_label();
125 
136  Glib::ustring get_label() const;
137 
138 
145  void set_label_widget(Widget& label_widget);
146 
153 
159  const Widget* get_label_widget() const;
160 
161 
168  void set_label_align(float xalign = 0.0, float yalign = 0.5);
169 
182 
183 
190  void get_label_align(float& xalign, float& yalign) const;
191 
192 
196 
203 
209  Glib::PropertyProxy< Glib::ustring > property_label() ;
210 
216  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label() const;
217 
223  Glib::PropertyProxy< double > property_label_xalign() ;
224 
230  Glib::PropertyProxy_ReadOnly< double > property_label_xalign() const;
231 
237  Glib::PropertyProxy< double > property_label_yalign() ;
238 
244  Glib::PropertyProxy_ReadOnly< double > property_label_yalign() const;
245 
246  //deprecated: _WRAP_PROPERTY("shadow", ShadowType)
252  Glib::PropertyProxy< ShadowType > property_shadow_type() ;
253 
259  Glib::PropertyProxy_ReadOnly< ShadowType > property_shadow_type() const;
260 
266  Glib::PropertyProxy< Widget* > property_label_widget() ;
267 
273  Glib::PropertyProxy_ReadOnly< Widget* > property_label_widget() const;
274 
275 
276 protected:
277  virtual void compute_child_allocation_vfunc(Allocation& allocation);
278 
279 
280 };
281 
282 } // namespace Gtk
283 
284 
285 namespace Glib
286 {
295  Gtk::Frame* wrap(GtkFrame* object, bool take_copy = false);
296 } //namespace Glib
297 
298 
299 #endif /* _GTKMM_FRAME_H */
300 
Definition: bin.h:55
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label() const
Glib::PropertyProxy< double > property_label_yalign()
void set_label_align(AlignmentEnum xalign, AlignmentEnum yalign=Gtk::ALIGN_CENTER)
Glib::PropertyProxy< double > property_label_xalign()
Glib::PropertyProxy< ShadowType > property_shadow_type()
Glib::ustring get_label() const
Glib::PropertyProxy< Widget * > property_label_widget()
ShadowType get_shadow_type() const
Glib::PropertyProxy_ReadOnly< double > property_label_xalign() const
void set_label(const Glib::ustring &label)
Frame(const Glib::ustring &label)
virtual void compute_child_allocation_vfunc(Allocation &allocation)
Glib::PropertyProxy_ReadOnly< Widget * > property_label_widget() const
const GtkFrame * gobj() const
Provides access to the underlying C GtkObject.
void set_label_widget(Widget &label_widget)
GtkFrame * gobj()
Provides access to the underlying C GtkObject.
Glib::PropertyProxy_ReadOnly< double > property_label_yalign() const
Gtk::Frame * wrap(GtkFrame *object, bool take_copy=false)
void set_shadow_type(ShadowType type)
void get_label_align(float &xalign, float &yalign) const
const Widget * get_label_widget() const
virtual ~Frame()
Glib::PropertyProxy_ReadOnly< ShadowType > property_shadow_type() const
Widget * get_label_widget()
void unset_label()
void set_label_align(float xalign=0.0, float yalign=0.5)
Glib::PropertyProxy< Glib::ustring > property_label()
Definition: ardour_ui.h:188