// Generated by gtkmmproc -- DO NOT MODIFY!


#include <cluttermm/behaviour-ellipse.h>
#include <cluttermm/private/behaviour-ellipse_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
{

BehaviourEllipse::BehaviourEllipse(const Glib::RefPtr<Alpha>& alpha, int x, int y, int width, int height, RotateDirection direction, double angle_start, double angle_end)
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  Behaviour(Glib::ConstructParams(behaviourellipse_class_.init(), "alpha", Glib::unwrap(alpha), /* "center", ClutterKnot(x, y), */ "width", width, "height", height, "direction", ((ClutterRotateDirection)(direction)), "angle-start", angle_start, "angle-end", angle_end, static_cast<char*>(0)))
{
  //Hopefully it's OK to set this later:
  Knot knot(x, y);
  property_center() = knot;
}

} //namespace Clutter

namespace
{
} // anonymous namespace


namespace Glib
{

Glib::RefPtr<Clutter::BehaviourEllipse> wrap(ClutterBehaviourEllipse* object, bool take_copy)
{
  return Glib::RefPtr<Clutter::BehaviourEllipse>( dynamic_cast<Clutter::BehaviourEllipse*> (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& BehaviourEllipse_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_ = &BehaviourEllipse_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_ellipse_get_type());

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

  }

  return *this;
}


void BehaviourEllipse_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* BehaviourEllipse_Class::wrap_new(GObject* object)
{
  return new BehaviourEllipse((ClutterBehaviourEllipse*)object);
}


/* The implementation: */

ClutterBehaviourEllipse* BehaviourEllipse::gobj_copy()
{
  reference();
  return gobj();
}

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

}

BehaviourEllipse::BehaviourEllipse(ClutterBehaviourEllipse* castitem)
:
  Behaviour((ClutterBehaviour*)(castitem))
{}


BehaviourEllipse::~BehaviourEllipse()
{}


BehaviourEllipse::CppClassType BehaviourEllipse::behaviourellipse_class_; // initialize static member

GType BehaviourEllipse::get_type()
{
  return behaviourellipse_class_.init().get_type();
}


GType BehaviourEllipse::get_base_type()
{
  return clutter_behaviour_ellipse_get_type();
}


Glib::RefPtr<BehaviourEllipse> BehaviourEllipse::create(const Glib::RefPtr<Alpha>& alpha, int x, int y, int width, int height, RotateDirection direction, double begin, double end)
{
  return Glib::RefPtr<BehaviourEllipse>( new BehaviourEllipse(alpha, x, y, width, height, direction, begin, end) );
}
void BehaviourEllipse::set_center(int x, int y)
{
clutter_behaviour_ellipse_set_center(gobj(), x, y); 
}

void BehaviourEllipse::get_center(int& x, int& y) const
{
clutter_behaviour_ellipse_get_center(const_cast<ClutterBehaviourEllipse*>(gobj()), &x, &y); 
}

void BehaviourEllipse::set_height(int height)
{
clutter_behaviour_ellipse_set_height(gobj(), height); 
}

int BehaviourEllipse::get_height() const
{
  return clutter_behaviour_ellipse_get_height(const_cast<ClutterBehaviourEllipse*>(gobj()));
}

void BehaviourEllipse::set_width(int width)
{
clutter_behaviour_ellipse_set_width(gobj(), width); 
}

int BehaviourEllipse::get_width() const
{
  return clutter_behaviour_ellipse_get_width(const_cast<ClutterBehaviourEllipse*>(gobj()));
}

void BehaviourEllipse::set_angle_start(double angle_start)
{
clutter_behaviour_ellipse_set_angle_start(gobj(), angle_start); 
}

double BehaviourEllipse::get_angle_start() const
{
  return clutter_behaviour_ellipse_get_angle_start(const_cast<ClutterBehaviourEllipse*>(gobj()));
}

void BehaviourEllipse::set_angle_end(double angle_end)
{
clutter_behaviour_ellipse_set_angle_end(gobj(), angle_end); 
}

double BehaviourEllipse::get_angle_end() const
{
  return clutter_behaviour_ellipse_get_angle_end(const_cast<ClutterBehaviourEllipse*>(gobj()));
}

void BehaviourEllipse::set_angle_tilt(RotateAxis axis, double angle_tilt)
{
clutter_behaviour_ellipse_set_angle_tilt(gobj(), ((ClutterRotateAxis)(axis)), angle_tilt); 
}

double BehaviourEllipse::get_angle_tilt(RotateAxis axis) const
{
  return clutter_behaviour_ellipse_get_angle_tilt(const_cast<ClutterBehaviourEllipse*>(gobj()), ((ClutterRotateAxis)(axis)));
}

void BehaviourEllipse::set_tilt(double angle_tilt_x, double angle_tilt_y, double angle_tilt_z)
{
clutter_behaviour_ellipse_set_tilt(gobj(), angle_tilt_x, angle_tilt_y, angle_tilt_z); 
}

void BehaviourEllipse::get_tilt(double& angle_tilt_x, double& angle_tilt_y, double& angle_tilt_z) const
{
clutter_behaviour_ellipse_get_tilt(const_cast<ClutterBehaviourEllipse*>(gobj()), &(angle_tilt_x), &(angle_tilt_y), &(angle_tilt_z)); 
}

void BehaviourEllipse::set_direction(RotateDirection direction)
{
clutter_behaviour_ellipse_set_direction(gobj(), ((ClutterRotateDirection)(direction))); 
}

RotateDirection BehaviourEllipse::get_direction() const
{
  return ((RotateDirection)(clutter_behaviour_ellipse_get_direction(const_cast<ClutterBehaviourEllipse*>(gobj()))));
}


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

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

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

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

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<double> BehaviourEllipse::property_angle_tilt_x() 
{
  return Glib::PropertyProxy<double>(this, "angle-tilt-x");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<double> BehaviourEllipse::property_angle_tilt_x() const
{
  return Glib::PropertyProxy_ReadOnly<double>(this, "angle-tilt-x");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<double> BehaviourEllipse::property_angle_tilt_y() 
{
  return Glib::PropertyProxy<double>(this, "angle-tilt-y");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<double> BehaviourEllipse::property_angle_tilt_y() const
{
  return Glib::PropertyProxy_ReadOnly<double>(this, "angle-tilt-y");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<double> BehaviourEllipse::property_angle_tilt_z() 
{
  return Glib::PropertyProxy<double>(this, "angle-tilt-z");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<double> BehaviourEllipse::property_angle_tilt_z() const
{
  return Glib::PropertyProxy_ReadOnly<double>(this, "angle-tilt-z");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Knot> BehaviourEllipse::property_center() 
{
  return Glib::PropertyProxy<Knot>(this, "center");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Knot> BehaviourEllipse::property_center() const
{
  return Glib::PropertyProxy_ReadOnly<Knot>(this, "center");
}
#endif //GLIBMM_PROPERTIES_ENABLED

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

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

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> BehaviourEllipse::property_height() 
{
  return Glib::PropertyProxy<int>(this, "height");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> BehaviourEllipse::property_height() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "height");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> BehaviourEllipse::property_width() 
{
  return Glib::PropertyProxy<int>(this, "width");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> BehaviourEllipse::property_width() const
{
  return Glib::PropertyProxy_ReadOnly<int>(this, "width");
}
#endif //GLIBMM_PROPERTIES_ENABLED


} // namespace Clutter


