// Generated by gtkmmproc -- DO NOT MODIFY!


#include <cluttermm/behaviour-rotate.h>
#include <cluttermm/private/behaviour-rotate_p.h>

/* Copyright (C) 2007 The cluttermm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <clutter/clutter.h>

namespace Clutter
{

} //namespace Clutter


namespace
{
} // anonymous namespace


namespace Glib
{

Glib::RefPtr<Clutter::BehaviourRotate> wrap(ClutterBehaviourRotate* object, bool take_copy)
{
  return Glib::RefPtr<Clutter::BehaviourRotate>( dynamic_cast<Clutter::BehaviourRotate*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
  //We use dynamic_cast<> in case of multiple inheritance.
}

} /* namespace Glib */


namespace Clutter
{


/* The *_Class implementation: */

const Glib::Class& BehaviourRotate_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Class has to know the class init function to clone custom types.
    class_init_func_ = &BehaviourRotate_Class::class_init_function;

    // This is actually just optimized away, apparently with no harm.
    // Make sure that the parent type has been created.
    //CppClassParent::CppObjectType::get_type();

    // Create the wrapper type, with the same class/instance size as the base type.
    register_derived_type(clutter_behaviour_rotate_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:

  }

  return *this;
}


void BehaviourRotate_Class::class_init_function(void* g_class, void* class_data)
{
  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
  CppClassParent::class_init_function(klass, class_data);


}


Glib::ObjectBase* BehaviourRotate_Class::wrap_new(GObject* object)
{
  return new BehaviourRotate((ClutterBehaviourRotate*)object);
}


/* The implementation: */

ClutterBehaviourRotate* BehaviourRotate::gobj_copy()
{
  reference();
  return gobj();
}

BehaviourRotate::BehaviourRotate(const Glib::ConstructParams& construct_params)
:
  Behaviour(construct_params)
{

}

BehaviourRotate::BehaviourRotate(ClutterBehaviourRotate* castitem)
:
  Behaviour((ClutterBehaviour*)(castitem))
{}


BehaviourRotate::~BehaviourRotate()
{}


BehaviourRotate::CppClassType BehaviourRotate::behaviourrotate_class_; // initialize static member

GType BehaviourRotate::get_type()
{
  return behaviourrotate_class_.init().get_type();
}


GType BehaviourRotate::get_base_type()
{
  return clutter_behaviour_rotate_get_type();
}


BehaviourRotate::BehaviourRotate(const Glib::RefPtr<Alpha>& alpha, RotateAxis axis, RotateDirection direction, double angle_begin, double angle_end)
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  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)))
{
  

}

Glib::RefPtr<BehaviourRotate> BehaviourRotate::create(const Glib::RefPtr<Alpha>& alpha, RotateAxis axis, RotateDirection direction, double angle_begin, double angle_end)
{
  return Glib::RefPtr<BehaviourRotate>( new BehaviourRotate(alpha, axis, direction, angle_begin, angle_end) );
}
void BehaviourRotate::set_axis(RotateAxis axis)
{
clutter_behaviour_rotate_set_axis(gobj(), ((ClutterRotateAxis)(axis))); 
}

RotateAxis BehaviourRotate::get_axis() const
{
  return ((RotateAxis)(clutter_behaviour_rotate_get_axis(const_cast<ClutterBehaviourRotate*>(gobj()))));
}

void BehaviourRotate::set_direction(RotateDirection direction)
{
clutter_behaviour_rotate_set_direction(gobj(), ((ClutterRotateDirection)(direction))); 
}

RotateDirection BehaviourRotate::get_direction() const
{
  return ((RotateDirection)(clutter_behaviour_rotate_get_direction(const_cast<ClutterBehaviourRotate*>(gobj()))));
}

void BehaviourRotate::set_center(int x, int y, int z)
{
clutter_behaviour_rotate_set_center(gobj(), x, y, z); 
}

void BehaviourRotate::get_center(int& x, int& y, int& z) const
{
clutter_behaviour_rotate_get_center(const_cast<ClutterBehaviourRotate*>(gobj()), &x, &y, &z); 
}

void BehaviourRotate::set_bounds(double angle_begin, double angle_end)
{
clutter_behaviour_rotate_set_bounds(gobj(), angle_begin, angle_end); 
}

void BehaviourRotate::get_bounds(double& angle_begin, double& angle_end) const
{
clutter_behaviour_rotate_get_bounds(const_cast<ClutterBehaviourRotate*>(gobj()), &(angle_begin), &(angle_end)); 
}


#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<double> BehaviourRotate::property_angle_end() 
{
  return Glib::PropertyProxy<double>(this, "angle-end");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<double> BehaviourRotate::property_angle_end() const
{
  return Glib::PropertyProxy_ReadOnly<double>(this, "angle-end");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<double> BehaviourRotate::property_angle_start() 
{
  return Glib::PropertyProxy<double>(this, "angle-start");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<double> BehaviourRotate::property_angle_start() const
{
  return Glib::PropertyProxy_ReadOnly<double>(this, "angle-start");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<RotateAxis> BehaviourRotate::property_axis() 
{
  return Glib::PropertyProxy<RotateAxis>(this, "axis");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<RotateAxis> BehaviourRotate::property_axis() const
{
  return Glib::PropertyProxy_ReadOnly<RotateAxis>(this, "axis");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> BehaviourRotate::property_center_x() 
{
  return Glib::PropertyProxy<int>(this, "center-x");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> BehaviourRotate::property_center_x() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "center-x");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> BehaviourRotate::property_center_y() 
{
  return Glib::PropertyProxy<int>(this, "center-y");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> BehaviourRotate::property_center_y() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "center-y");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> BehaviourRotate::property_center_z() 
{
  return Glib::PropertyProxy<int>(this, "center-z");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> BehaviourRotate::property_center_z() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "center-z");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<RotateDirection> BehaviourRotate::property_direction() 
{
  return Glib::PropertyProxy<RotateDirection>(this, "direction");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<RotateDirection> BehaviourRotate::property_direction() const
{
  return Glib::PropertyProxy_ReadOnly<RotateDirection>(this, "direction");
}
#endif //GLIBMM_PROPERTIES_ENABLED


} // namespace Clutter


