// Generated by gtkmmproc -- DO NOT MODIFY!


#include <cluttermm/stage.h>
#include <cluttermm/private/stage_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
{

Perspective::Perspective(Cogl::Fixed fovy, Cogl::Fixed aspect, Cogl::Fixed z_near, Cogl::Fixed z_far)
{
  gobject_.fovy = fovy;
  gobject_.aspect = aspect;
  gobject_.z_near = z_near;
  gobject_.z_far = z_far;
}

Color Stage::get_color() const
{
  Color color;
  clutter_stage_get_color(const_cast<ClutterStage*>(gobj()), color.gobj());
  return color;
}

void Stage::set_key_focus()
{
  clutter_stage_set_key_focus(gobj(), NULL);
}

} //namespace Clutter


namespace
{


static const Glib::SignalProxyInfo Stage_signal_fullscreen_info =
{
  "fullscreen",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo Stage_signal_unfullscreen_info =
{
  "unfullscreen",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo Stage_signal_activate_info =
{
  "activate",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo Stage_signal_deactivate_info =
{
  "deactivate",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static gboolean Stage_signal_delete_event_callback(ClutterStage* self, ClutterEvent* p0,void* data)
{
  using namespace Clutter;
  typedef sigc::slot< bool,ClutterEvent * > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        return static_cast<int>((*static_cast<SlotType*>(slot))(p0));
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }

  typedef gboolean RType;
  return RType();
}

static gboolean Stage_signal_delete_event_notify_callback(ClutterStage* self, ClutterEvent* p0, void* data)
{
  using namespace Clutter;
  typedef sigc::slot< void,ClutterEvent * > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(p0);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }

  typedef gboolean RType;
  return RType();
}

static const Glib::SignalProxyInfo Stage_signal_delete_event_info =
{
  "delete-event",
  (GCallback) &Stage_signal_delete_event_callback,
  (GCallback) &Stage_signal_delete_event_notify_callback
};


} // anonymous namespace

// static
GType Glib::Value<Clutter::PickMode>::value_type()
{
  return clutter_pick_mode_get_type();
}


namespace Glib
{

Clutter::Perspective& wrap(ClutterPerspective* object)
{
  return *reinterpret_cast<Clutter::Perspective*>(object);
}

const Clutter::Perspective& wrap(const ClutterPerspective* object)
{
  return *reinterpret_cast<const Clutter::Perspective*>(object);
}

} // namespace Glib


namespace Clutter
{


// static
GType Perspective::get_type()
{
  return clutter_perspective_get_type();
}

Perspective::Perspective()
{
  GLIBMM_INITIALIZE_STRUCT(gobject_, ClutterPerspective);
}

Perspective::Perspective(const ClutterPerspective* gobject)
{
  if(gobject)
    gobject_ = *gobject;
  else
    GLIBMM_INITIALIZE_STRUCT(gobject_, ClutterPerspective);
}


 Cogl::Fixed Perspective::get_fovy() const
{
  return (Cogl::Fixed)(gobj()->fovy);
}
 
 void Perspective::set_fovy(const Cogl::Fixed& value)
{
  gobj()->fovy = (CoglFixed)(value);
}
 
 Cogl::Fixed Perspective::get_aspect() const
{
  return (Cogl::Fixed)(gobj()->aspect);
}
 
 void Perspective::set_aspect(const Cogl::Fixed& value)
{
  gobj()->aspect = (CoglFixed)(value);
}
 
 Cogl::Fixed Perspective::get_z_near() const
{
  return (Cogl::Fixed)(gobj()->z_near);
}
 
 void Perspective::set_z_near(const Cogl::Fixed& value)
{
  gobj()->z_near = (CoglFixed)(value);
}
 
 Cogl::Fixed Perspective::get_z_far() const
{
  return (Cogl::Fixed)(gobj()->z_far);
}
 
 void Perspective::set_z_far(const Cogl::Fixed& value)
{
  gobj()->z_far = (CoglFixed)(value);
}
 

} // namespace Clutter


namespace Glib
{

Glib::RefPtr<Clutter::Stage> wrap(ClutterStage* object, bool take_copy)
{
  return Glib::RefPtr<Clutter::Stage>( dynamic_cast<Clutter::Stage*> (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& Stage_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_ = &Stage_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_stage_get_type());

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

  }

  return *this;
}


void Stage_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);


  klass->fullscreen = &fullscreen_callback;
  klass->unfullscreen = &unfullscreen_callback;
  klass->activate = &activate_callback;
  klass->deactivate = &deactivate_callback;
  klass->delete_event = &delete_event_callback;
}


void Stage_Class::fullscreen_callback(ClutterStage* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_fullscreen();
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->fullscreen)
    (*base->fullscreen)(self);
}
void Stage_Class::unfullscreen_callback(ClutterStage* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_unfullscreen();
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->unfullscreen)
    (*base->unfullscreen)(self);
}
void Stage_Class::activate_callback(ClutterStage* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_activate();
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->activate)
    (*base->activate)(self);
}
void Stage_Class::deactivate_callback(ClutterStage* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_deactivate();
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->deactivate)
    (*base->deactivate)(self);
}
gboolean Stage_Class::delete_event_callback(ClutterStage* self, ClutterEvent* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        return static_cast<int>(obj->on_delete_event(p0));
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->delete_event)
    return (*base->delete_event)(self, p0);

  typedef gboolean RType;
  return RType();
}


Glib::ObjectBase* Stage_Class::wrap_new(GObject* object)
{
  return new Stage((ClutterStage*)object);
}


/* The implementation: */

ClutterStage* Stage::gobj_copy()
{
  reference();
  return gobj();
}

Stage::Stage(const Glib::ConstructParams& construct_params)
:
  Group(construct_params)
{

}

Stage::Stage(ClutterStage* castitem)
:
  Group((ClutterGroup*)(castitem))
{}


Stage::~Stage()
{}


Stage::CppClassType Stage::stage_class_; // initialize static member

GType Stage::get_type()
{
  return stage_class_.init().get_type();
}


GType Stage::get_base_type()
{
  return clutter_stage_get_type();
}

Stage::Stage()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  Group(Glib::ConstructParams(stage_class_.init()))
{
  

}

Glib::RefPtr<Stage> Stage::get_default()
{

  Glib::RefPtr<Stage> retvalue = Glib::wrap((ClutterStage*)clutter_stage_get_default());

  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;
}


void Stage::set_color(const Color& color)
{
clutter_stage_set_color(gobj(), (color).gobj()); 
}

void Stage::set_perspective(const Perspective& prespective)
{
clutter_stage_set_perspective(gobj(), const_cast<ClutterPerspective*>((prespective).gobj())); 
}

void Stage::get_perspective(Perspective& prespective)
{
clutter_stage_get_perspective(gobj(), const_cast<ClutterPerspective*>((prespective).gobj())); 
}

void Stage::set_fullscreen(bool fullscreen)
{
clutter_stage_set_fullscreen(gobj(), static_cast<int>(fullscreen)); 
}

bool Stage::get_fullscreen() const
{
  return clutter_stage_get_fullscreen(const_cast<ClutterStage*>(gobj()));
}

void Stage::show_cursor()
{
clutter_stage_show_cursor(gobj()); 
}

void Stage::hide_cursor()
{
clutter_stage_hide_cursor(gobj()); 
}

Glib::ustring Stage::get_title() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(clutter_stage_get_title(const_cast<ClutterStage*>(gobj())));
}

void Stage::set_title(const Glib::ustring& title)
{
clutter_stage_set_title(gobj(), title.c_str()); 
}

void Stage::set_user_resizable(bool value)
{
clutter_stage_set_user_resizable(gobj(), static_cast<int>(value)); 
}

bool Stage::get_user_resizable() const
{
  return clutter_stage_get_user_resizable(const_cast<ClutterStage*>(gobj()));
}

Glib::RefPtr<Actor> Stage::get_actor_at_pos(PickMode pick_mode, int x, int y)
{

  Glib::RefPtr<Actor> retvalue = Glib::wrap(clutter_stage_get_actor_at_pos(gobj(), ((ClutterPickMode)(pick_mode)), x, y));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

}

Glib::RefPtr<const Actor> Stage::get_actor_at_pos(PickMode pick_mode, int x, int y) const
{
  return const_cast<Stage*>(this)->get_actor_at_pos(pick_mode, x, y);
}

Glib::RefPtr<Actor> Stage::get_key_focus()
{

  Glib::RefPtr<Actor> retvalue = Glib::wrap(clutter_stage_get_key_focus(gobj()));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

}

Glib::RefPtr<const Actor> Stage::get_key_focus() const
{
  return const_cast<Stage*>(this)->get_key_focus();
}

void Stage::set_key_focus(const Glib::RefPtr<Actor>& actor)
{
clutter_stage_set_key_focus(gobj(), Glib::unwrap(actor)); 
}

guchar* Stage::read_pixels(int x, int y, int width, int height) const
{
  return clutter_stage_read_pixels(const_cast<ClutterStage*>(gobj()), x, y, width, height);
}

bool Stage::get_use_fog() const
{
  return clutter_stage_get_use_fog(const_cast<ClutterStage*>(gobj()));
}

void Stage::set_use_fog(bool fog)
{
clutter_stage_set_use_fog(gobj(), static_cast<int>(fog)); 
}

void Stage::set_fog(const Fog& fog)
{
clutter_stage_set_fog(gobj(), const_cast<ClutterFog*>(&(fog))); 
}

void Stage::get_fog(Fog& fog) const
{
clutter_stage_get_fog(const_cast<ClutterStage*>(gobj()), &(fog)); 
}

void Stage::stage_event(Event* event)
{
clutter_stage_event(gobj(), event); 
}

bool Stage::is_default() const
{
  return clutter_stage_is_default(const_cast<ClutterStage*>(gobj()));
}

void Stage::ensure_current()
{
clutter_stage_ensure_current(gobj()); 
}

void Stage::ensure_viewport()
{
clutter_stage_ensure_viewport(gobj()); 
}

void Stage::ensure_redraw()
{
clutter_stage_ensure_redraw(gobj()); 
}

void Stage::set_throttle_motion_events(bool throttle)
{
clutter_stage_set_throttle_motion_events(gobj(), static_cast<int>(throttle)); 
}

bool Stage::get_throttle_motion_events() const
{
  return clutter_stage_get_throttle_motion_events(const_cast<ClutterStage*>(gobj()));
}

void Stage::set_use_alpha(bool use_alpha)
{
clutter_stage_set_use_alpha(gobj(), static_cast<int>(use_alpha)); 
}

bool Stage::get_use_alpha() const
{
  return clutter_stage_get_use_alpha(const_cast<ClutterStage*>(gobj()));
}

void Stage::set_minimum_size(guint width, guint height)
{
clutter_stage_set_minimum_size(gobj(), width, height); 
}

void Stage::get_minimum_size(guint& width, guint& height)
{
clutter_stage_get_minimum_size(gobj(), &(width), &(height)); 
}


Glib::SignalProxy0< void > Stage::signal_fullscreen()
{
  return Glib::SignalProxy0< void >(this, &Stage_signal_fullscreen_info);
}


Glib::SignalProxy0< void > Stage::signal_unfullscreen()
{
  return Glib::SignalProxy0< void >(this, &Stage_signal_unfullscreen_info);
}


Glib::SignalProxy0< void > Stage::signal_activate()
{
  return Glib::SignalProxy0< void >(this, &Stage_signal_activate_info);
}


Glib::SignalProxy0< void > Stage::signal_deactivate()
{
  return Glib::SignalProxy0< void >(this, &Stage_signal_deactivate_info);
}


Glib::SignalProxy1< bool,ClutterEvent * > Stage::signal_delete_event()
{
  return Glib::SignalProxy1< bool,ClutterEvent * >(this, &Stage_signal_delete_event_info);
}


#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Color> Stage::property_color() 
{
  return Glib::PropertyProxy<Color>(this, "color");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Color> Stage::property_color() const
{
  return Glib::PropertyProxy_ReadOnly<Color>(this, "color");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Stage::property_cursor_visible() 
{
  return Glib::PropertyProxy<bool>(this, "cursor-visible");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Stage::property_cursor_visible() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "cursor-visible");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Stage::property_fullscreen_set() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "fullscreen-set");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Stage::property_offscreen() 
{
  return Glib::PropertyProxy<bool>(this, "offscreen");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Stage::property_offscreen() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "offscreen");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Perspective> Stage::property_perspective() 
{
  return Glib::PropertyProxy<Perspective>(this, "perspective");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Perspective> Stage::property_perspective() const
{
  return Glib::PropertyProxy_ReadOnly<Perspective>(this, "perspective");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Glib::ustring> Stage::property_title() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "title");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Glib::ustring> Stage::property_title() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "title");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Stage::property_use_fog() 
{
  return Glib::PropertyProxy<bool>(this, "use-fog");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Stage::property_use_fog() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "use-fog");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Stage::property_user_resizable() 
{
  return Glib::PropertyProxy<bool>(this, "user-resizable");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Stage::property_user_resizable() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "user-resizable");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Fog> Stage::property_fog() 
{
  return Glib::PropertyProxy<Fog>(this, "fog");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Fog> Stage::property_fog() const
{
  return Glib::PropertyProxy_ReadOnly<Fog>(this, "fog");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> Stage::property_use_alpha() 
{
  return Glib::PropertyProxy<bool>(this, "use-alpha");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> Stage::property_use_alpha() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "use-alpha");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy< Glib::RefPtr<Actor> > Stage::property_key_focus() 
{
  return Glib::PropertyProxy< Glib::RefPtr<Actor> >(this, "key-focus");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Actor> > Stage::property_key_focus() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Actor> >(this, "key-focus");
}
#endif //GLIBMM_PROPERTIES_ENABLED


void Clutter::Stage::on_fullscreen()
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->fullscreen)
    (*base->fullscreen)(gobj());
}
void Clutter::Stage::on_unfullscreen()
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->unfullscreen)
    (*base->unfullscreen)(gobj());
}
void Clutter::Stage::on_activate()
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->activate)
    (*base->activate)(gobj());
}
void Clutter::Stage::on_deactivate()
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->deactivate)
    (*base->deactivate)(gobj());
}
bool Clutter::Stage::on_delete_event(ClutterEvent * event)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->delete_event)
    return (*base->delete_event)(gobj(),event);

  typedef bool RType;
  return RType();
}


} // namespace Clutter


