Ardour  9.0-pre0-384-ga76afae0e9
misc.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_MISC_H
4 #define _GTKMM_MISC_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: misc.hg,v 1.1 2003/01/21 13:40:31 murrayc Exp $ */
11 
12 /* misc.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/widget.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkMisc GtkMisc;
36 typedef struct _GtkMiscClass GtkMiscClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class Misc_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
56 class Misc : public Widget
57 {
58  public:
59 #ifndef DOXYGEN_SHOULD_SKIP_THIS
60  typedef Misc CppObjectType;
61  typedef Misc_Class CppClassType;
62  typedef GtkMisc BaseObjectType;
63  typedef GtkMiscClass BaseClassType;
64 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
65 
66  virtual ~Misc();
67 
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
69 
70 private:
71  friend class Misc_Class;
72  static CppClassType misc_class_;
73 
74  // noncopyable
75  Misc(const Misc&);
76  Misc& operator=(const Misc&);
77 
78 protected:
79  explicit Misc(const Glib::ConstructParams& construct_params);
80  explicit Misc(GtkMisc* 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 
93  GtkMisc* gobj() { return reinterpret_cast<GtkMisc*>(gobject_); }
94 
96  const GtkMisc* gobj() const { return reinterpret_cast<GtkMisc*>(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 
107 
108 private:
109 
110 protected:
111  Misc();
112 public:
113 
114 
115  void set_alignment(float xalign = 0.0, float yalign = 0.5);
116 
118 
119 
126  void get_alignment(float& xalign, float& yalign) const;
127 
128 
129  void set_padding(int xpad, int ypad);
130 
137  void get_padding(int& xpad, int& ypad) const;
138 
144  Glib::PropertyProxy< float > property_xalign() ;
145 
151  Glib::PropertyProxy_ReadOnly< float > property_xalign() const;
152 
158  Glib::PropertyProxy< float > property_yalign() ;
159 
165  Glib::PropertyProxy_ReadOnly< float > property_yalign() const;
166 
172  Glib::PropertyProxy< int > property_xpad() ;
173 
179  Glib::PropertyProxy_ReadOnly< int > property_xpad() const;
180 
186  Glib::PropertyProxy< int > property_ypad() ;
187 
193  Glib::PropertyProxy_ReadOnly< int > property_ypad() const;
194 
195 
196 };
197 
198 } /* namespace Gtk */
199 
200 
201 namespace Glib
202 {
211  Gtk::Misc* wrap(GtkMisc* object, bool take_copy = false);
212 } //namespace Glib
213 
214 
215 #endif /* _GTKMM_MISC_H */
216 
Definition: misc.h:57
Glib::PropertyProxy_ReadOnly< float > property_xalign() const
virtual ~Misc()
Glib::PropertyProxy< int > property_xpad()
Glib::PropertyProxy_ReadOnly< int > property_ypad() const
void set_alignment(float xalign=0.0, float yalign=0.5)
GtkMisc * gobj()
Provides access to the underlying C GtkObject.
Definition: misc.h:93
Glib::PropertyProxy_ReadOnly< int > property_xpad() const
Gtk::Misc * wrap(GtkMisc *object, bool take_copy=false)
void get_alignment(float &xalign, float &yalign) const
void set_alignment(AlignmentEnum xalign=Gtk::ALIGN_START, AlignmentEnum yalign=Gtk::ALIGN_CENTER)
Glib::PropertyProxy_ReadOnly< float > property_yalign() const
Glib::PropertyProxy< float > property_yalign()
void get_padding(int &xpad, int &ypad) const
Glib::PropertyProxy< float > property_xalign()
void set_padding(int xpad, int ypad)
Glib::PropertyProxy< int > property_ypad()
const GtkMisc * gobj() const
Provides access to the underlying C GtkObject.
Definition: misc.h:96
Definition: ardour_ui.h:187