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


#include <glibmm.h>

#include <gtkmm/requisition.h>
#include <gtkmm/private/requisition_p.h>

#include <cstring> // std::memset()

/* Copyright (C) 2010 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, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

namespace Gtk
{

Requisition::Requisition(int width, int height)
{
  gobject_.width  = width;
  gobject_.height = height;
}

} // namespace Gtk

namespace
{
} // anonymous namespace


namespace Glib
{

Gtk::Requisition& wrap(GtkRequisition* object)
{
  return *reinterpret_cast<Gtk::Requisition*>(object);
}

const Gtk::Requisition& wrap(const GtkRequisition* object)
{
  return *reinterpret_cast<const Gtk::Requisition*>(object);
}

} // namespace Glib


namespace Gtk
{


Requisition::Requisition(const Requisition& other) noexcept
:
  gobject_(other.gobject_)
{
}

Requisition& Requisition::operator=(const Requisition& other) noexcept
{
  gobject_ = other.gobject_;
  return *this;
}

Requisition::Requisition(Requisition&& other) noexcept
:
  gobject_(std::move(other.gobject_))
{
  //We could wipe other.gobject_ via memset,
  //but that is not really necessary:
  //other.gobject_ = nullptr;
}

Requisition& Requisition::operator=(Requisition&& other) noexcept
{
  gobject_ = std::move(other.gobject_);
  return *this;
}

// static
GType Requisition::get_type()
{
  return gtk_requisition_get_type();
}

Requisition::Requisition()
{
  std::memset(&gobject_, 0, sizeof(GtkRequisition));
}

Requisition::Requisition(const GtkRequisition* gobject)
{
  if(gobject)
    gobject_ = *gobject;
  else
    std::memset(&gobject_, 0, sizeof(GtkRequisition));
}


int Requisition::get_width() const
{
  return gobj()->width;
}

void Requisition::set_width(const int& value)
{
  gobj()->width = value;
}

int Requisition::get_height() const
{
  return gobj()->height;
}

void Requisition::set_height(const int& value)
{
  gobj()->height = value;
}


} // namespace Gtk


