// Generated by gtkmmproc -- DO NOT MODIFY!


#include <cluttermm/flow-layout.h>
#include <cluttermm/private/flow-layout_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 <clutter/clutter.h>

namespace Clutter
{

} //namespace Clutter


namespace
{
} // anonymous namespace

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


namespace Glib
{

Glib::RefPtr<Clutter::FlowLayout> wrap(ClutterFlowLayout* object, bool take_copy)
{
  return Glib::RefPtr<Clutter::FlowLayout>( dynamic_cast<Clutter::FlowLayout*> (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& FlowLayout_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_ = &FlowLayout_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_flow_layout_get_type());

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

  }

  return *this;
}


void FlowLayout_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* FlowLayout_Class::wrap_new(GObject* object)
{
  return new FlowLayout((ClutterFlowLayout*)object);
}


/* The implementation: */

ClutterFlowLayout* FlowLayout::gobj_copy()
{
  reference();
  return gobj();
}

FlowLayout::FlowLayout(const Glib::ConstructParams& construct_params)
:
  LayoutManager(construct_params)
{

}

FlowLayout::FlowLayout(ClutterFlowLayout* castitem)
:
  LayoutManager((ClutterLayoutManager*)(castitem))
{}


FlowLayout::~FlowLayout()
{}


FlowLayout::CppClassType FlowLayout::flowlayout_class_; // initialize static member

GType FlowLayout::get_type()
{
  return flowlayout_class_.init().get_type();
}


GType FlowLayout::get_base_type()
{
  return clutter_flow_layout_get_type();
}


FlowLayout::FlowLayout(FlowOrientation orientation)
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  LayoutManager(Glib::ConstructParams(flowlayout_class_.init(), "orientation", ((ClutterFlowOrientation)(orientation)), static_cast<char*>(0)))
{
  

}

Glib::RefPtr<FlowLayout> FlowLayout::create(FlowOrientation orientation)
{
  return Glib::RefPtr<FlowLayout>( new FlowLayout(orientation) );
}
void FlowLayout::set_homogeneous(bool homogeneous)
{
clutter_flow_layout_set_homogeneous(gobj(), static_cast<int>(homogeneous)); 
}

bool FlowLayout::get_homogeneous()
{
  return clutter_flow_layout_get_homogeneous(gobj());
}

void FlowLayout::set_orientation(FlowOrientation orientation)
{
clutter_flow_layout_set_orientation(gobj(), ((ClutterFlowOrientation)(orientation))); 
}

ClutterFlowOrientation FlowLayout::get_orientation()
{
  return clutter_flow_layout_get_orientation(gobj());
}

void FlowLayout::set_column_spacing(float spacing)
{
clutter_flow_layout_set_column_spacing(gobj(), spacing); 
}

float FlowLayout::get_column_spacing()
{
  return clutter_flow_layout_get_column_spacing(gobj());
}

void FlowLayout::set_row_spacing(float spacing)
{
clutter_flow_layout_set_row_spacing(gobj(), spacing); 
}

float FlowLayout::get_row_spacing()
{
  return clutter_flow_layout_get_row_spacing(gobj());
}

void FlowLayout::set_column_width(float min_width, float max_width)
{
clutter_flow_layout_set_column_width(gobj(), min_width, max_width); 
}

void FlowLayout::get_column_width(float & min_width, float & max_width)
{
clutter_flow_layout_get_column_width(gobj(), &(min_width), &(max_width)); 
}

void FlowLayout::set_row_height(float min_height, float max_height)
{
clutter_flow_layout_set_row_height(gobj(), min_height, max_height); 
}

void FlowLayout::get_row_height(float & min_height, float & max_height)
{
clutter_flow_layout_get_row_height(gobj(), &(min_height), &(max_height)); 
}


#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> FlowLayout::property_homogeneous() 
{
  return Glib::PropertyProxy<bool>(this, "homogeneous");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> FlowLayout::property_homogeneous() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "homogeneous");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<FlowOrientation> FlowLayout::property_orientation() 
{
  return Glib::PropertyProxy<FlowOrientation>(this, "orientation");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<FlowOrientation> FlowLayout::property_orientation() const
{
  return Glib::PropertyProxy_ReadOnly<FlowOrientation>(this, "orientation");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<float> FlowLayout::property_column_spacing() 
{
  return Glib::PropertyProxy<float>(this, "column-spacing");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<float> FlowLayout::property_column_spacing() const
{
  return Glib::PropertyProxy_ReadOnly<float>(this, "column-spacing");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<float> FlowLayout::property_row_spacing() 
{
  return Glib::PropertyProxy<float>(this, "row-spacing");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<float> FlowLayout::property_row_spacing() const
{
  return Glib::PropertyProxy_ReadOnly<float>(this, "row-spacing");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<float> FlowLayout::property_min_column_width() 
{
  return Glib::PropertyProxy<float>(this, "min-column-width");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<float> FlowLayout::property_min_column_width() const
{
  return Glib::PropertyProxy_ReadOnly<float>(this, "min-column-width");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<float> FlowLayout::property_max_column_width() 
{
  return Glib::PropertyProxy<float>(this, "max-column-width");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<float> FlowLayout::property_max_column_width() const
{
  return Glib::PropertyProxy_ReadOnly<float>(this, "max-column-width");
}
#endif //GLIBMM_PROPERTIES_ENABLED


} // namespace Clutter


