// Generated by gtkmmproc -- DO NOT MODIFY!


#include <cluttermm/layout-manager.h>
#include <cluttermm/private/layout-manager_p.h>

/* Copyright (C) 2011 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 <cluttermm/layout-manager.h>
#include <cluttermm/layoutmeta.h>
#include <cluttermm/container.h>
#include <clutter/clutter.h>
#include <cluttermm/alpha.h>

namespace Clutter
{

void LayoutManager::get_child_property_value(const Glib::RefPtr<Container>& container,
                                             const Glib::RefPtr<const Actor>& child,
                                             const Glib::ustring& property_name,
                                             Glib::ValueBase& value) const
{
    clutter_layout_manager_child_get_property(const_cast<ClutterLayoutManager*>(gobj()),
                                              const_cast<ClutterContainer*>(container->gobj()),
                                              const_cast<ClutterActor*>(child->gobj()),
                                              property_name.c_str(), value.gobj());
}

} // namespace Clutter

namespace
{


static const Glib::SignalProxyInfo LayoutManager_signal_layout_changed_info =
{
  "layout-changed",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


} // anonymous namespace


namespace Glib
{

Glib::RefPtr<Clutter::LayoutManager> wrap(ClutterLayoutManager* object, bool take_copy)
{
  return Glib::RefPtr<Clutter::LayoutManager>( dynamic_cast<Clutter::LayoutManager*> (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& LayoutManager_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_ = &LayoutManager_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_layout_manager_get_type());

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

  }

  return *this;
}


void LayoutManager_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->get_preferred_width = &get_preferred_width_vfunc_callback;
  klass->get_preferred_height = &get_preferred_height_vfunc_callback;
  klass->allocate = &allocate_vfunc_callback;
  klass->set_container = &set_container_vfunc_callback;
  klass->get_child_meta_type = &get_child_meta_type_vfunc_callback;
  klass->create_child_meta = &create_child_meta_vfunc_callback;
  klass->begin_animation = &begin_animation_vfunc_callback;
  klass->get_animation_progress = &get_animation_progress_vfunc_callback;
  klass->end_animation = &end_animation_vfunc_callback;

  klass->layout_changed = &layout_changed_callback;
}

void LayoutManager_Class::get_preferred_width_vfunc_callback(ClutterLayoutManager* self, ClutterContainer* container, float for_height, float* minimum_width_p, float* natural_width_p)
{
  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->get_preferred_width_vfunc(Glib::wrap(container, true)
, for_height, *(minimum_width_p)
, *(natural_width_p)
);
        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->get_preferred_width)
    (*base->get_preferred_width)(self, container, for_height, minimum_width_p, natural_width_p);

}
void LayoutManager_Class::get_preferred_height_vfunc_callback(ClutterLayoutManager* self, ClutterContainer* container, float for_width, float* minimum_height_p, float* natural_height_p)
{
  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->get_preferred_height_vfunc(Glib::wrap(container, true)
, for_width, *(minimum_height_p)
, *(natural_height_p)
);
        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->get_preferred_height)
    (*base->get_preferred_height)(self, container, for_width, minimum_height_p, natural_height_p);

}
void LayoutManager_Class::allocate_vfunc_callback(ClutterLayoutManager* self, ClutterContainer* container, const ClutterActorBox* allocation, ClutterAllocationFlags flags)
{
  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->allocate_vfunc(Glib::wrap(container, true)
, ActorBox(allocation)
, ((AllocationFlags)(flags))
);
        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->allocate)
    (*base->allocate)(self, container, allocation, flags);

}
void LayoutManager_Class::set_container_vfunc_callback(ClutterLayoutManager* self, ClutterContainer* container)
{
  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->set_container_vfunc(Glib::wrap(container, true)
);
        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->set_container)
    (*base->set_container)(self, container);

}
GType LayoutManager_Class::get_child_meta_type_vfunc_callback(ClutterLayoutManager* 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.
        return obj->get_child_meta_type_vfunc();
      #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->get_child_meta_type)
    return (*base->get_child_meta_type)(self);


  typedef GType RType;
  return RType();
}
ClutterLayoutMeta* LayoutManager_Class::create_child_meta_vfunc_callback(ClutterLayoutManager* self, ClutterContainer* container, ClutterActor* actorallocation)
{
  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 Glib::unwrap(obj->create_child_meta_vfunc(Glib::wrap(container, true)
, Glib::wrap(actorallocation, true)
));
      #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->create_child_meta)
    return (*base->create_child_meta)(self, container, actorallocation);


  typedef ClutterLayoutMeta* RType;
  return RType();
}
ClutterAlpha* LayoutManager_Class::begin_animation_vfunc_callback(ClutterLayoutManager* self, guint duration, gulong mode)
{
  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 Glib::unwrap(obj->begin_animation_vfunc(duration, mode));
      #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->begin_animation)
    return (*base->begin_animation)(self, duration, mode);


  typedef ClutterAlpha* RType;
  return RType();
}
double LayoutManager_Class::get_animation_progress_vfunc_callback(ClutterLayoutManager* 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.
        return obj->get_animation_progress_vfunc();
      #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->get_animation_progress)
    return (*base->get_animation_progress)(self);


  typedef double RType;
  return RType();
}
void LayoutManager_Class::end_animation_vfunc_callback(ClutterLayoutManager* 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->end_animation_vfunc();
        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->end_animation)
    (*base->end_animation)(self);

}

void LayoutManager_Class::layout_changed_callback(ClutterLayoutManager* 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_layout_changed();
        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->layout_changed)
    (*base->layout_changed)(self);
}


Glib::ObjectBase* LayoutManager_Class::wrap_new(GObject* object)
{
  return new LayoutManager((ClutterLayoutManager*)object);
}


/* The implementation: */

ClutterLayoutManager* LayoutManager::gobj_copy()
{
  reference();
  return gobj();
}

LayoutManager::LayoutManager(const Glib::ConstructParams& construct_params)
:
  Glib::Object(construct_params)
{
   if(gobject_ && g_object_is_floating (gobject_))
     g_object_ref_sink(gobject_); //Stops it from being floating.

}

LayoutManager::LayoutManager(ClutterLayoutManager* castitem)
:
  Glib::Object((GObject*)(castitem))
{}


LayoutManager::~LayoutManager()
{}


LayoutManager::CppClassType LayoutManager::layoutmanager_class_; // initialize static member

GType LayoutManager::get_type()
{
  return layoutmanager_class_.init().get_type();
}


GType LayoutManager::get_base_type()
{
  return clutter_layout_manager_get_type();
}


LayoutManager::LayoutManager()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  Glib::Object(Glib::ConstructParams(layoutmanager_class_.init()))
{
  
   if(gobject_ && g_object_is_floating (gobject_))
     g_object_ref_sink(gobject_); //Stops it from being floating.

}

void LayoutManager::set_child_property_value(const Glib::RefPtr<Container>& container, const Glib::RefPtr<Actor>& child, const Glib::ustring& property_name, const Glib::ValueBase& value)
{
clutter_layout_manager_child_set_property(gobj(), Glib::unwrap(container), Glib::unwrap(child), property_name.c_str(), (value).gobj()); 
}

void LayoutManager::get_preferred_width(const Glib::RefPtr<Container>& container, float for_height, float& min_width_p, float& natural_width_p) const
{
clutter_layout_manager_get_preferred_width(const_cast<ClutterLayoutManager*>(gobj()), Glib::unwrap(container), for_height, &(min_width_p), &(natural_width_p)); 
}

void LayoutManager::get_preferred_height(const Glib::RefPtr<Container>& container, float for_width, float& min_height_p, float& natural_height_p) const
{
clutter_layout_manager_get_preferred_height(const_cast<ClutterLayoutManager*>(gobj()), Glib::unwrap(container), for_width, &(min_height_p), &(natural_height_p)); 
}

void LayoutManager::allocate(const Glib::RefPtr<Container>& container, const ActorBox& box, AllocationFlags absolute_origin_changed)
{
clutter_layout_manager_allocate(gobj(), Glib::unwrap(container), (box).gobj(), ((ClutterAllocationFlags)(absolute_origin_changed))); 
}

void LayoutManager::set_container(const Glib::RefPtr<Container>& container)
{
clutter_layout_manager_set_container(gobj(), Glib::unwrap(container)); 
}

Glib::RefPtr<Alpha> LayoutManager::begin_animation(guint duration, gulong mode)
{

  Glib::RefPtr<Alpha> retvalue = Glib::wrap(clutter_layout_manager_begin_animation(gobj(), duration, mode));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

}

Glib::RefPtr<const Alpha> LayoutManager::begin_animation(guint duration, gulong mode) const
{
  return const_cast<LayoutManager*>(this)->begin_animation(duration, mode);
}

double LayoutManager::get_animation_progress()
{
  return clutter_layout_manager_get_animation_progress(gobj());
}

void LayoutManager::end_animation()
{
clutter_layout_manager_end_animation(gobj()); 
}


Glib::SignalProxy0< void > LayoutManager::signal_layout_changed()
{
  return Glib::SignalProxy0< void >(this, &LayoutManager_signal_layout_changed_info);
}


void Clutter::LayoutManager::on_layout_changed()
{
  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->layout_changed)
    (*base->layout_changed)(gobj());
}

void Clutter::LayoutManager::get_preferred_width_vfunc(const Glib::RefPtr<Container>& container, float for_height, float& min_width_p, float& natural_width_p) const
{
  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->get_preferred_width)
    (*base->get_preferred_width)(const_cast<ClutterLayoutManager*>(gobj()),Glib::unwrap(container),for_height,&(min_width_p),&(natural_width_p));
}
void Clutter::LayoutManager::get_preferred_height_vfunc(const Glib::RefPtr<Container>& container, float for_width, float& min_height_p, float& natural_height_p) const
{
  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->get_preferred_height)
    (*base->get_preferred_height)(const_cast<ClutterLayoutManager*>(gobj()),Glib::unwrap(container),for_width,&(min_height_p),&(natural_height_p));
}
void Clutter::LayoutManager::allocate_vfunc(const Glib::RefPtr<Container>& container, const ActorBox& box, AllocationFlags absolute_origin_changed) 
{
  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->allocate)
    (*base->allocate)(gobj(),Glib::unwrap(container),(box).gobj(),((ClutterAllocationFlags)(absolute_origin_changed)));
}
void Clutter::LayoutManager::set_container_vfunc(const Glib::RefPtr<Container>& container) 
{
  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->set_container)
    (*base->set_container)(gobj(),Glib::unwrap(container));
}
GType Clutter::LayoutManager::get_child_meta_type_vfunc() const
{
  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->get_child_meta_type)
    return (*base->get_child_meta_type)(const_cast<ClutterLayoutManager*>(gobj()));

  typedef GType RType;
  return RType();
}
Glib::RefPtr<LayoutMeta> Clutter::LayoutManager::create_child_meta_vfunc(const Glib::RefPtr<Container>& container, const Glib::RefPtr<Actor>& actor) 
{
  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->create_child_meta)
    return Glib::wrap((*base->create_child_meta)(gobj(),Glib::unwrap(container),Glib::unwrap(actor)));

  typedef Glib::RefPtr<LayoutMeta> RType;
  return RType();
}
Glib::RefPtr<Alpha> Clutter::LayoutManager::begin_animation_vfunc(guint duration, gulong mode) 
{
  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->begin_animation)
    return Glib::wrap((*base->begin_animation)(gobj(),duration,mode));

  typedef Glib::RefPtr<Alpha> RType;
  return RType();
}
double Clutter::LayoutManager::get_animation_progress_vfunc() 
{
  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->get_animation_progress)
    return (*base->get_animation_progress)(gobj());

  typedef double RType;
  return RType();
}
void Clutter::LayoutManager::end_animation_vfunc() 
{
  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->end_animation)
    (*base->end_animation)(gobj());
}


} // namespace Clutter


