1 // Generated by gmmproc 2.40.0 -- DO NOT MODIFY!
2 
3 #define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
4 
5 #ifndef CLUTTERMM_DISABLE_DEPRECATED
6 
7 
8 #include <glibmm.h>
9 
10 #include <cluttermm/behaviour-rotate.h>
11 #include <cluttermm/private/behaviour-rotate_p.h>
12 
13 
14 /* Copyright (C) 2007 The cluttermm 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 <clutter/clutter.h>
32 
33 namespace Clutter
34 {
35 
36 } //namespace Clutter
37 
38 
39 namespace
40 {
41 } // anonymous namespace
42 
43 
44 namespace Glib
45 {
46 
wrap(ClutterBehaviourRotate * object,bool take_copy)47 Glib::RefPtr<Clutter::BehaviourRotate> wrap(ClutterBehaviourRotate* object, bool take_copy)
48 {
49   return Glib::RefPtr<Clutter::BehaviourRotate>( dynamic_cast<Clutter::BehaviourRotate*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
50   //We use dynamic_cast<> in case of multiple inheritance.
51 }
52 
53 } /* namespace Glib */
54 
55 
56 namespace Clutter
57 {
58 
59 
60 /* The *_Class implementation: */
61 
init()62 const Glib::Class& BehaviourRotate_Class::init()
63 {
64   if(!gtype_) // create the GType if necessary
65   {
66     // Glib::Class has to know the class init function to clone custom types.
67     class_init_func_ = &BehaviourRotate_Class::class_init_function;
68 
69     // This is actually just optimized away, apparently with no harm.
70     // Make sure that the parent type has been created.
71     //CppClassParent::CppObjectType::get_type();
72 
73     // Create the wrapper type, with the same class/instance size as the base type.
74     register_derived_type(clutter_behaviour_rotate_get_type());
75 
76     // Add derived versions of interfaces, if the C type implements any interfaces:
77 
78   }
79 
80   return *this;
81 }
82 
83 
class_init_function(void * g_class,void * class_data)84 void BehaviourRotate_Class::class_init_function(void* g_class, void* class_data)
85 {
86   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
87   CppClassParent::class_init_function(klass, class_data);
88 
89 
90 }
91 
92 
wrap_new(GObject * object)93 Glib::ObjectBase* BehaviourRotate_Class::wrap_new(GObject* object)
94 {
95   return new BehaviourRotate((ClutterBehaviourRotate*)object);
96 }
97 
98 
99 /* The implementation: */
100 
gobj_copy()101 ClutterBehaviourRotate* BehaviourRotate::gobj_copy()
102 {
103   reference();
104   return gobj();
105 }
106 
BehaviourRotate(const Glib::ConstructParams & construct_params)107 BehaviourRotate::BehaviourRotate(const Glib::ConstructParams& construct_params)
108 :
109   Behaviour(construct_params)
110 {
111 
112 }
113 
BehaviourRotate(ClutterBehaviourRotate * castitem)114 BehaviourRotate::BehaviourRotate(ClutterBehaviourRotate* castitem)
115 :
116   Behaviour((ClutterBehaviour*)(castitem))
117 {}
118 
119 
~BehaviourRotate()120 BehaviourRotate::~BehaviourRotate()
121 {}
122 
123 
124 BehaviourRotate::CppClassType BehaviourRotate::behaviourrotate_class_; // initialize static member
125 
get_type()126 GType BehaviourRotate::get_type()
127 {
128   return behaviourrotate_class_.init().get_type();
129 }
130 
131 
get_base_type()132 GType BehaviourRotate::get_base_type()
133 {
134   return clutter_behaviour_rotate_get_type();
135 }
136 
137 
BehaviourRotate(const Glib::RefPtr<Alpha> & alpha,RotateAxis axis,RotateDirection direction,double angle_begin,double angle_end)138 BehaviourRotate::BehaviourRotate(const Glib::RefPtr<Alpha>& alpha, RotateAxis axis, RotateDirection direction, double angle_begin, double angle_end)
139 :
140   // Mark this class as non-derived to allow C++ vfuncs to be skipped.
141   Glib::ObjectBase(0),
142   Behaviour(Glib::ConstructParams(behaviourrotate_class_.init(), "alpha", Glib::unwrap(alpha), "axis", ((ClutterRotateAxis)(axis)), "direction", ((ClutterRotateDirection)(direction)), "angle_begin", angle_begin, "angle_end", angle_end, static_cast<char*>(0)))
143 {
144 
145 
146 }
147 
create(const Glib::RefPtr<Alpha> & alpha,RotateAxis axis,RotateDirection direction,double angle_begin,double angle_end)148 Glib::RefPtr<BehaviourRotate> BehaviourRotate::create(const Glib::RefPtr<Alpha>& alpha, RotateAxis axis, RotateDirection direction, double angle_begin, double angle_end)
149 {
150   return Glib::RefPtr<BehaviourRotate>( new BehaviourRotate(alpha, axis, direction, angle_begin, angle_end) );
151 }
152 
set_axis(RotateAxis axis)153 void BehaviourRotate::set_axis(RotateAxis axis)
154 {
155   clutter_behaviour_rotate_set_axis(gobj(), ((ClutterRotateAxis)(axis)));
156 }
157 
get_axis() const158 RotateAxis BehaviourRotate::get_axis() const
159 {
160   return ((RotateAxis)(clutter_behaviour_rotate_get_axis(const_cast<ClutterBehaviourRotate*>(gobj()))));
161 }
162 
set_direction(RotateDirection direction)163 void BehaviourRotate::set_direction(RotateDirection direction)
164 {
165   clutter_behaviour_rotate_set_direction(gobj(), ((ClutterRotateDirection)(direction)));
166 }
167 
get_direction() const168 RotateDirection BehaviourRotate::get_direction() const
169 {
170   return ((RotateDirection)(clutter_behaviour_rotate_get_direction(const_cast<ClutterBehaviourRotate*>(gobj()))));
171 }
172 
set_center(int x,int y,int z)173 void BehaviourRotate::set_center(int x, int y, int z)
174 {
175   clutter_behaviour_rotate_set_center(gobj(), x, y, z);
176 }
177 
get_center(int & x,int & y,int & z) const178 void BehaviourRotate::get_center(int& x, int& y, int& z) const
179 {
180   clutter_behaviour_rotate_get_center(const_cast<ClutterBehaviourRotate*>(gobj()), &(x), &(y), &(z));
181 }
182 
set_bounds(double angle_begin,double angle_end)183 void BehaviourRotate::set_bounds(double angle_begin, double angle_end)
184 {
185   clutter_behaviour_rotate_set_bounds(gobj(), angle_begin, angle_end);
186 }
187 
get_bounds(double & angle_begin,double & angle_end) const188 void BehaviourRotate::get_bounds(double& angle_begin, double& angle_end) const
189 {
190   clutter_behaviour_rotate_get_bounds(const_cast<ClutterBehaviourRotate*>(gobj()), &(angle_begin), &(angle_end));
191 }
192 
193 
194 #ifdef GLIBMM_PROPERTIES_ENABLED
property_angle_end()195 Glib::PropertyProxy< double > BehaviourRotate::property_angle_end()
196 {
197   return Glib::PropertyProxy< double >(this, "angle-end");
198 }
199 #endif //GLIBMM_PROPERTIES_ENABLED
200 
201 #ifdef GLIBMM_PROPERTIES_ENABLED
property_angle_end() const202 Glib::PropertyProxy_ReadOnly< double > BehaviourRotate::property_angle_end() const
203 {
204   return Glib::PropertyProxy_ReadOnly< double >(this, "angle-end");
205 }
206 #endif //GLIBMM_PROPERTIES_ENABLED
207 
208 #ifdef GLIBMM_PROPERTIES_ENABLED
property_angle_start()209 Glib::PropertyProxy< double > BehaviourRotate::property_angle_start()
210 {
211   return Glib::PropertyProxy< double >(this, "angle-start");
212 }
213 #endif //GLIBMM_PROPERTIES_ENABLED
214 
215 #ifdef GLIBMM_PROPERTIES_ENABLED
property_angle_start() const216 Glib::PropertyProxy_ReadOnly< double > BehaviourRotate::property_angle_start() const
217 {
218   return Glib::PropertyProxy_ReadOnly< double >(this, "angle-start");
219 }
220 #endif //GLIBMM_PROPERTIES_ENABLED
221 
222 #ifdef GLIBMM_PROPERTIES_ENABLED
property_axis()223 Glib::PropertyProxy< RotateAxis > BehaviourRotate::property_axis()
224 {
225   return Glib::PropertyProxy< RotateAxis >(this, "axis");
226 }
227 #endif //GLIBMM_PROPERTIES_ENABLED
228 
229 #ifdef GLIBMM_PROPERTIES_ENABLED
property_axis() const230 Glib::PropertyProxy_ReadOnly< RotateAxis > BehaviourRotate::property_axis() const
231 {
232   return Glib::PropertyProxy_ReadOnly< RotateAxis >(this, "axis");
233 }
234 #endif //GLIBMM_PROPERTIES_ENABLED
235 
236 #ifdef GLIBMM_PROPERTIES_ENABLED
property_center_x()237 Glib::PropertyProxy< int > BehaviourRotate::property_center_x()
238 {
239   return Glib::PropertyProxy< int >(this, "center-x");
240 }
241 #endif //GLIBMM_PROPERTIES_ENABLED
242 
243 #ifdef GLIBMM_PROPERTIES_ENABLED
property_center_x() const244 Glib::PropertyProxy_ReadOnly< int > BehaviourRotate::property_center_x() const
245 {
246   return Glib::PropertyProxy_ReadOnly< int >(this, "center-x");
247 }
248 #endif //GLIBMM_PROPERTIES_ENABLED
249 
250 #ifdef GLIBMM_PROPERTIES_ENABLED
property_center_y()251 Glib::PropertyProxy< int > BehaviourRotate::property_center_y()
252 {
253   return Glib::PropertyProxy< int >(this, "center-y");
254 }
255 #endif //GLIBMM_PROPERTIES_ENABLED
256 
257 #ifdef GLIBMM_PROPERTIES_ENABLED
property_center_y() const258 Glib::PropertyProxy_ReadOnly< int > BehaviourRotate::property_center_y() const
259 {
260   return Glib::PropertyProxy_ReadOnly< int >(this, "center-y");
261 }
262 #endif //GLIBMM_PROPERTIES_ENABLED
263 
264 #ifdef GLIBMM_PROPERTIES_ENABLED
property_center_z()265 Glib::PropertyProxy< int > BehaviourRotate::property_center_z()
266 {
267   return Glib::PropertyProxy< int >(this, "center-z");
268 }
269 #endif //GLIBMM_PROPERTIES_ENABLED
270 
271 #ifdef GLIBMM_PROPERTIES_ENABLED
property_center_z() const272 Glib::PropertyProxy_ReadOnly< int > BehaviourRotate::property_center_z() const
273 {
274   return Glib::PropertyProxy_ReadOnly< int >(this, "center-z");
275 }
276 #endif //GLIBMM_PROPERTIES_ENABLED
277 
278 #ifdef GLIBMM_PROPERTIES_ENABLED
property_direction()279 Glib::PropertyProxy< RotateDirection > BehaviourRotate::property_direction()
280 {
281   return Glib::PropertyProxy< RotateDirection >(this, "direction");
282 }
283 #endif //GLIBMM_PROPERTIES_ENABLED
284 
285 #ifdef GLIBMM_PROPERTIES_ENABLED
property_direction() const286 Glib::PropertyProxy_ReadOnly< RotateDirection > BehaviourRotate::property_direction() const
287 {
288   return Glib::PropertyProxy_ReadOnly< RotateDirection >(this, "direction");
289 }
290 #endif //GLIBMM_PROPERTIES_ENABLED
291 
292 
293 } // namespace Clutter
294 
295 #endif // CLUTTERMM_DISABLE_DEPRECATED
296 
297 
298