// Generated by gmmproc 2.68.0 -- DO NOT MODIFY!


#include <glibmm.h>

#include <gtkmm/gridlayout.h>
#include <gtkmm/private/gridlayout_p.h>


/* Copyright (C) 2019 The gtkmm 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, see <http://www.gnu.org/licenses/>.
 */

#include <gtk/gtk.h>


namespace
{
} // anonymous namespace


namespace Glib
{

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

} /* namespace Glib */


namespace Gtk
{


/* The *_Class implementation: */

const Glib::Class& GridLayout_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_ = &GridLayout_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(gtk_grid_layout_get_type());

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

  }

  return *this;
}


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


}


Glib::ObjectBase* GridLayout_Class::wrap_new(GObject* object)
{
  return new GridLayout((GtkGridLayout*)object);
}


/* The implementation: */

GtkGridLayout* GridLayout::gobj_copy()
{
  reference();
  return gobj();
}

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

}

GridLayout::GridLayout(GtkGridLayout* castitem)
:
  LayoutManager((GtkLayoutManager*)(castitem))
{}


GridLayout::GridLayout(GridLayout&& src) noexcept
: LayoutManager(std::move(src))
{}

GridLayout& GridLayout::operator=(GridLayout&& src) noexcept
{
  LayoutManager::operator=(std::move(src));
  return *this;
}


GridLayout::~GridLayout() noexcept
{}


GridLayout::CppClassType GridLayout::gridlayout_class_; // initialize static member

GType GridLayout::get_type()
{
  return gridlayout_class_.init().get_type();
}


GType GridLayout::get_base_type()
{
  return gtk_grid_layout_get_type();
}


GridLayout::GridLayout()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  LayoutManager(Glib::ConstructParams(gridlayout_class_.init()))
{
  

}

Glib::RefPtr<GridLayout> GridLayout::create()
{
  return Glib::make_refptr_for_instance<GridLayout>( new GridLayout() );
}

void GridLayout::set_row_homogeneous(bool homogeneous)
{
  gtk_grid_layout_set_row_homogeneous(gobj(), static_cast<int>(homogeneous));
}

bool GridLayout::get_row_homogeneous() const
{
  return gtk_grid_layout_get_row_homogeneous(const_cast<GtkGridLayout*>(gobj()));
}

void GridLayout::set_row_spacing(guint spacing)
{
  gtk_grid_layout_set_row_spacing(gobj(), spacing);
}

guint GridLayout::get_row_spacing() const
{
  return gtk_grid_layout_get_row_spacing(const_cast<GtkGridLayout*>(gobj()));
}

void GridLayout::set_column_homogeneous(bool homogeneous)
{
  gtk_grid_layout_set_column_homogeneous(gobj(), static_cast<int>(homogeneous));
}

bool GridLayout::get_column_homogeneous() const
{
  return gtk_grid_layout_get_column_homogeneous(const_cast<GtkGridLayout*>(gobj()));
}

void GridLayout::set_column_spacing(guint spacing)
{
  gtk_grid_layout_set_column_spacing(gobj(), spacing);
}

guint GridLayout::get_column_spacing() const
{
  return gtk_grid_layout_get_column_spacing(const_cast<GtkGridLayout*>(gobj()));
}

void GridLayout::set_row_baseline_position(int row, BaselinePosition pos)
{
  gtk_grid_layout_set_row_baseline_position(gobj(), row, static_cast<GtkBaselinePosition>(pos));
}

BaselinePosition GridLayout::get_row_baseline_position(int row) const
{
  return static_cast<BaselinePosition>(gtk_grid_layout_get_row_baseline_position(const_cast<GtkGridLayout*>(gobj()), row));
}

void GridLayout::set_baseline_row(int row)
{
  gtk_grid_layout_set_baseline_row(gobj(), row);
}

int GridLayout::get_baseline_row() const
{
  return gtk_grid_layout_get_baseline_row(const_cast<GtkGridLayout*>(gobj()));
}


Glib::PropertyProxy< int > GridLayout::property_row_spacing() 
{
  return Glib::PropertyProxy< int >(this, "row-spacing");
}

Glib::PropertyProxy_ReadOnly< int > GridLayout::property_row_spacing() const
{
  return Glib::PropertyProxy_ReadOnly< int >(this, "row-spacing");
}

Glib::PropertyProxy< int > GridLayout::property_column_spacing() 
{
  return Glib::PropertyProxy< int >(this, "column-spacing");
}

Glib::PropertyProxy_ReadOnly< int > GridLayout::property_column_spacing() const
{
  return Glib::PropertyProxy_ReadOnly< int >(this, "column-spacing");
}

Glib::PropertyProxy< bool > GridLayout::property_row_homogeneous() 
{
  return Glib::PropertyProxy< bool >(this, "row-homogeneous");
}

Glib::PropertyProxy_ReadOnly< bool > GridLayout::property_row_homogeneous() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "row-homogeneous");
}

Glib::PropertyProxy< bool > GridLayout::property_column_homogeneous() 
{
  return Glib::PropertyProxy< bool >(this, "column-homogeneous");
}

Glib::PropertyProxy_ReadOnly< bool > GridLayout::property_column_homogeneous() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "column-homogeneous");
}

Glib::PropertyProxy< int > GridLayout::property_baseline_row() 
{
  return Glib::PropertyProxy< int >(this, "baseline-row");
}

Glib::PropertyProxy_ReadOnly< int > GridLayout::property_baseline_row() const
{
  return Glib::PropertyProxy_ReadOnly< int >(this, "baseline-row");
}


} // namespace Gtk


