Guitarix
paintbox.cc
Go to the documentation of this file.
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2 
3 
4 #include <glibmm.h>
5 
6 #include <gxwmm/paintbox.h>
7 #include <gxwmm/private/paintbox_p.h>
8 
9 
10 /*
11  * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26  */
27 
28 #include <gxw/GxPaintBox.h>
29 
30 namespace
31 {
32 } // anonymous namespace
33 
34 
35 namespace Glib
36 {
37 
38 Gxw::PaintBox* wrap(GxPaintBox* object, bool take_copy)
39 {
40  return dynamic_cast<Gxw::PaintBox *> (Glib::wrap_auto ((GObject*)(object), take_copy));
41 }
42 
43 } /* namespace Glib */
44 
45 namespace Gxw
46 {
47 
48 
49 /* The *_Class implementation: */
50 
51 const Glib::Class& PaintBox_Class::init()
52 {
53  if(!gtype_) // create the GType if necessary
54  {
55  // Glib::Class has to know the class init function to clone custom types.
56  class_init_func_ = &PaintBox_Class::class_init_function;
57 
58  // This is actually just optimized away, apparently with no harm.
59  // Make sure that the parent type has been created.
60  //CppClassParent::CppObjectType::get_type();
61 
62  // Create the wrapper type, with the same class/instance size as the base type.
63  register_derived_type(gx_paint_box_get_type());
64 
65  // Add derived versions of interfaces, if the C type implements any interfaces:
66 
67  }
68 
69  return *this;
70 }
71 
72 
73 void PaintBox_Class::class_init_function(void* g_class, void* class_data)
74 {
75  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
76  CppClassParent::class_init_function(klass, class_data);
77 
78 
79 }
80 
81 
82 Glib::ObjectBase* PaintBox_Class::wrap_new(GObject* o)
83 {
84  return manage(new PaintBox((GxPaintBox*)(o)));
85 
86 }
87 
88 
89 /* The implementation: */
90 
91 PaintBox::PaintBox(const Glib::ConstructParams& construct_params)
92 :
93  Gtk::Box(construct_params)
94 {
95  }
96 
97 PaintBox::PaintBox(GxPaintBox* castitem)
98 :
99  Gtk::Box((GtkBox*)(castitem))
100 {
101  }
102 
104 {
105  destroy_();
106 }
107 
108 PaintBox::CppClassType PaintBox::paintbox_class_; // initialize static member
109 
111 {
112  return paintbox_class_.init().get_type();
113 }
114 
115 
117 {
118  return gx_paint_box_get_type();
119 }
120 
121 
122 PaintBox::PaintBox(Gtk::Orientation orientation, bool homogeneous, int spacing)
123 :
124  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
125  Glib::ObjectBase(0),
126  Gtk::Box(Glib::ConstructParams(paintbox_class_.init(), "orientation", ((GtkOrientation)(orientation)), "homogeneous", static_cast<int>(homogeneous), "spacing", spacing, static_cast<char*>(0)))
127 {
128 
129 
130 }
131 
132 void PaintBox::call_paint_func(GdkEventExpose * event)
133 {
134  gx_paint_box_call_paint_func(gobj(), event);
135 }
136 
137 
138 #ifdef GLIBMM_PROPERTIES_ENABLED
139 Glib::PropertyProxy< Glib::ustring > PaintBox::property_paint_func()
140 {
141  return Glib::PropertyProxy< Glib::ustring >(this, "paint-func");
142 }
143 #endif //GLIBMM_PROPERTIES_ENABLED
144 
145 #ifdef GLIBMM_PROPERTIES_ENABLED
146 Glib::PropertyProxy_ReadOnly< Glib::ustring > PaintBox::property_paint_func() const
147 {
148  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "paint-func");
149 }
150 #endif //GLIBMM_PROPERTIES_ENABLED
151 
152 #ifdef GLIBMM_PROPERTIES_ENABLED
153 Glib::PropertyProxy< guint > PaintBox::property_icon_set()
154 {
155  return Glib::PropertyProxy< guint >(this, "icon-set");
156 }
157 #endif //GLIBMM_PROPERTIES_ENABLED
158 
159 #ifdef GLIBMM_PROPERTIES_ENABLED
160 Glib::PropertyProxy_ReadOnly< guint > PaintBox::property_icon_set() const
161 {
162  return Glib::PropertyProxy_ReadOnly< guint >(this, "icon-set");
163 }
164 #endif //GLIBMM_PROPERTIES_ENABLED
165 
166 #ifdef GLIBMM_PROPERTIES_ENABLED
167 Glib::PropertyProxy< guint > PaintBox::property_force_reload()
168 {
169  return Glib::PropertyProxy< guint >(this, "force-reload");
170 }
171 #endif //GLIBMM_PROPERTIES_ENABLED
172 
173 #ifdef GLIBMM_PROPERTIES_ENABLED
174 Glib::PropertyProxy_ReadOnly< guint > PaintBox::property_force_reload() const
175 {
176  return Glib::PropertyProxy_ReadOnly< guint >(this, "force-reload");
177 }
178 #endif //GLIBMM_PROPERTIES_ENABLED
179 
180 } // namespace Gxw
181 
182 
void init(int samplingFreq)
virtual ~PaintBox()
Definition: paintbox.cc:103
static GType get_base_type() G_GNUC_CONST
Definition: paintbox.cc:116
static GType get_type() G_GNUC_CONST
Definition: paintbox.cc:110
void call_paint_func(GdkEventExpose *event)
Definition: paintbox.cc:132
Definition: bigknob.cc:51
GType gx_paint_box_get_type(void)
GxPaintBox * gobj()
Provides access to the underlying C GtkObject.
Definition: paintbox.h:78
struct _GxPaintBox GxPaintBox
Definition: paintbox.h:32
Gxw::BigKnob * wrap(GxBigKnob *object, bool take_copy)
Definition: bigknob.cc:44
Definition: bigknob.cc:41