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


#include <glibmm.h>

#include <gtkmm/centerbox.h>
#include <gtkmm/private/centerbox_p.h>


/* Copyright (C) 2017 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 Gtk
{
void CenterBox::unset_start_widget()
{
  gtk_center_box_set_start_widget(gobj(), nullptr);
}

void CenterBox::unset_center_widget()
{
  gtk_center_box_set_center_widget(gobj(), nullptr);
}

void CenterBox::unset_end_widget()
{
  gtk_center_box_set_end_widget(gobj(), nullptr);
}
} //namespace Gtk

namespace
{
} // anonymous namespace


namespace Glib
{

Gtk::CenterBox* wrap(GtkCenterBox* object, bool take_copy)
{
  return dynamic_cast<Gtk::CenterBox *> (Glib::wrap_auto ((GObject*)(object), take_copy));
}

} /* namespace Glib */

namespace Gtk
{


/* The *_Class implementation: */

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

    // Add derived versions of interfaces, if the C type implements any interfaces:
  Orientable::add_interface(get_type());

  }

  return *this;
}


void CenterBox_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* CenterBox_Class::wrap_new(GObject* o)
{
  return manage(new CenterBox((GtkCenterBox*)(o)));

}


/* The implementation: */

CenterBox::CenterBox(const Glib::ConstructParams& construct_params)
:
  Widget(construct_params)
{
  }

CenterBox::CenterBox(GtkCenterBox* castitem)
:
  Widget((GtkWidget*)(castitem))
{
  }


CenterBox::CenterBox(CenterBox&& src) noexcept
: Widget(std::move(src))
  , Orientable(std::move(src))
{}

CenterBox& CenterBox::operator=(CenterBox&& src) noexcept
{
  Widget::operator=(std::move(src));
  Orientable::operator=(std::move(src));
  return *this;
}

CenterBox::~CenterBox() noexcept
{
  destroy_();
}

CenterBox::CppClassType CenterBox::centerbox_class_; // initialize static member

GType CenterBox::get_type()
{
  return centerbox_class_.init().get_type();
}


GType CenterBox::get_base_type()
{
  return gtk_center_box_get_type();
}


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

}

void CenterBox::set_start_widget(Widget& child)
{
  gtk_center_box_set_start_widget(gobj(), (child).gobj());
}

Widget* CenterBox::get_start_widget()
{
  return Glib::wrap(gtk_center_box_get_start_widget(gobj()));
}

const Widget* CenterBox::get_start_widget() const
{
  return const_cast<CenterBox*>(this)->get_start_widget();
}

void CenterBox::set_center_widget(Widget& child)
{
  gtk_center_box_set_center_widget(gobj(), (child).gobj());
}

Widget* CenterBox::get_center_widget()
{
  return Glib::wrap(gtk_center_box_get_center_widget(gobj()));
}

const Widget* CenterBox::get_center_widget() const
{
  return const_cast<CenterBox*>(this)->get_center_widget();
}

void CenterBox::set_end_widget(Widget& child)
{
  gtk_center_box_set_end_widget(gobj(), (child).gobj());
}

Widget* CenterBox::get_end_widget()
{
  return Glib::wrap(gtk_center_box_get_end_widget(gobj()));
}

const Widget* CenterBox::get_end_widget() const
{
  return const_cast<CenterBox*>(this)->get_end_widget();
}

void CenterBox::set_baseline_position(BaselinePosition position)
{
  gtk_center_box_set_baseline_position(gobj(), static_cast<GtkBaselinePosition>(position));
}

BaselinePosition CenterBox::get_baseline_position()
{
  return static_cast<BaselinePosition>(gtk_center_box_get_baseline_position(gobj()));
}


Glib::PropertyProxy< Widget* > CenterBox::property_start_widget() 
{
  return Glib::PropertyProxy< Widget* >(this, "start-widget");
}

Glib::PropertyProxy_ReadOnly< Widget* > CenterBox::property_start_widget() const
{
  return Glib::PropertyProxy_ReadOnly< Widget* >(this, "start-widget");
}

Glib::PropertyProxy< Widget* > CenterBox::property_center_widget() 
{
  return Glib::PropertyProxy< Widget* >(this, "center-widget");
}

Glib::PropertyProxy_ReadOnly< Widget* > CenterBox::property_center_widget() const
{
  return Glib::PropertyProxy_ReadOnly< Widget* >(this, "center-widget");
}

Glib::PropertyProxy< Widget* > CenterBox::property_end_widget() 
{
  return Glib::PropertyProxy< Widget* >(this, "end-widget");
}

Glib::PropertyProxy_ReadOnly< Widget* > CenterBox::property_end_widget() const
{
  return Glib::PropertyProxy_ReadOnly< Widget* >(this, "end-widget");
}

static_assert(Glib::Traits::ValueCompatibleWithWrapProperty<BaselinePosition>::value,
  "Type BaselinePosition cannot be used in _WRAP_PROPERTY. "
  "There is no suitable template specialization of Glib::Value<>.");

Glib::PropertyProxy< BaselinePosition > CenterBox::property_baseline_position() 
{
  return Glib::PropertyProxy< BaselinePosition >(this, "baseline-position");
}

Glib::PropertyProxy_ReadOnly< BaselinePosition > CenterBox::property_baseline_position() const
{
  return Glib::PropertyProxy_ReadOnly< BaselinePosition >(this, "baseline-position");
}


} // namespace Gtk


