Ardour  8.7-14-g57a6773833
aspectframe.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ASPECTFRAME_H
4 #define _GTKMM_ASPECTFRAME_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: aspectframe.hg,v 1.2 2003/03/03 07:49:05 murrayc Exp $ */
11 
12 /* aspectframe.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/frame.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkAspectFrame GtkAspectFrame;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class AspectFrame_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
57 class AspectFrame : public Frame
58 {
59  public:
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61  typedef AspectFrame CppObjectType;
62  typedef AspectFrame_Class CppClassType;
63  typedef GtkAspectFrame BaseObjectType;
64  typedef GtkAspectFrameClass BaseClassType;
65 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
66 
67  virtual ~AspectFrame();
68 
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 
71 private:
72  friend class AspectFrame_Class;
73  static CppClassType aspectframe_class_;
74 
75  // noncopyable
76  AspectFrame(const AspectFrame&);
77  AspectFrame& operator=(const AspectFrame&);
78 
79 protected:
80  explicit AspectFrame(const Glib::ConstructParams& construct_params);
81  explicit AspectFrame(GtkAspectFrame* 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  GtkAspectFrame* gobj() { return reinterpret_cast<GtkAspectFrame*>(gobject_); }
95 
97  const GtkAspectFrame* gobj() const { return reinterpret_cast<GtkAspectFrame*>(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 
112 public:
113 
124  explicit AspectFrame(const Glib::ustring& label = Glib::ustring(), AlignmentEnum xalign = Gtk::ALIGN_CENTER, AlignmentEnum yalign = Gtk::ALIGN_CENTER, float ratio = 1.0, bool obey_child = false);
125 
126 
137  explicit AspectFrame(const Glib::ustring& label, float xalign, float yalign, float ratio = 1.0, bool obey_child = false);
138 
139 
140  //TODO: Is "obey_child = true" a good default?
141 
151  void set(float xalign, float yalign, float ratio, bool obey_child = true);
152 
153 
163  void set(AlignmentEnum xalign, AlignmentEnum yalign, float ratio, bool obey_child = true);
164 
170  Glib::PropertyProxy< float > property_xalign() ;
171 
177  Glib::PropertyProxy_ReadOnly< float > property_xalign() const;
178 
184  Glib::PropertyProxy< float > property_yalign() ;
185 
191  Glib::PropertyProxy_ReadOnly< float > property_yalign() const;
192 
198  Glib::PropertyProxy< float > property_ratio() ;
199 
205  Glib::PropertyProxy_ReadOnly< float > property_ratio() const;
206 
212  Glib::PropertyProxy< bool > property_obey_child() ;
213 
219  Glib::PropertyProxy_ReadOnly< bool > property_obey_child() const;
220 
221 
222 };
223 
224 } /* namespace Gtk */
225 
226 
227 namespace Glib
228 {
237  Gtk::AspectFrame* wrap(GtkAspectFrame* object, bool take_copy = false);
238 } //namespace Glib
239 
240 
241 #endif /* _GTKMM_ASPECTFRAME_H */
242 
const GtkAspectFrame * gobj() const
Provides access to the underlying C GtkObject.
Definition: aspectframe.h:97
GtkAspectFrame * gobj()
Provides access to the underlying C GtkObject.
Definition: aspectframe.h:94
Glib::PropertyProxy_ReadOnly< float > property_xalign() const
Glib::PropertyProxy< bool > property_obey_child()
Glib::PropertyProxy< float > property_xalign()
AspectFrame(const Glib::ustring &label, float xalign, float yalign, float ratio=1.0, bool obey_child=false)
virtual ~AspectFrame()
Glib::PropertyProxy_ReadOnly< bool > property_obey_child() const
Glib::PropertyProxy_ReadOnly< float > property_yalign() const
Gtk::AspectFrame * wrap(GtkAspectFrame *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< float > property_ratio() const
Glib::PropertyProxy< float > property_yalign()
void set(float xalign, float yalign, float ratio, bool obey_child=true)
void set(AlignmentEnum xalign, AlignmentEnum yalign, float ratio, bool obey_child=true)
Glib::PropertyProxy< float > property_ratio()
AspectFrame(const Glib::ustring &label=Glib::ustring(), AlignmentEnum xalign=Gtk::ALIGN_CENTER, AlignmentEnum yalign=Gtk::ALIGN_CENTER, float ratio=1.0, bool obey_child=false)
Definition: ardour_ui.h:188