
/*

  KLayout Layout Viewer
  Copyright (C) 2006-2016 Matthias Koefferlein

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program 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 General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/

/**
*  @file gsiDeclQMargins.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtCore.h"
#include "gsiDeclQtTypeTraits.h"
#include "gsiDeclQMargins_Enums.h"
#include <memory>

// -----------------------------------------------------------------------
// class QMargins

//  Constructor QMargins::QMargins()


static void _init_ctor_QMargins_0 (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return_new<QMargins *> ();
}

static void _call_ctor_QMargins_0 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QMargins *> (new QMargins ());
}

static qt_gsi::GenericStaticMethod *_create_ctor_QMargins_0 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QMargins::QMargins()\nThis method creates an object of class QMargins.", &_init_ctor_QMargins_0, &_call_ctor_QMargins_0);
}

//  Constructor QMargins::QMargins(int left, int top, int right, int bottom)


static void _init_ctor_QMargins_2744 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("left");
  decl->add_arg<int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("top");
  decl->add_arg<int > (argspec_1);
  static gsi::ArgSpecBase argspec_2 ("right");
  decl->add_arg<int > (argspec_2);
  static gsi::ArgSpecBase argspec_3 ("bottom");
  decl->add_arg<int > (argspec_3);
  decl->set_return_new<QMargins *> ();
}

static void _call_ctor_QMargins_2744 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  int arg2 = args.read<int > ();
  int arg3 = args.read<int > ();
  int arg4 = args.read<int > ();
  ret.write<QMargins *> (new QMargins (arg1, arg2, arg3, arg4));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QMargins_2744 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QMargins::QMargins(int left, int top, int right, int bottom)\nThis method creates an object of class QMargins.", &_init_ctor_QMargins_2744, &_call_ctor_QMargins_2744);
}

// int QMargins::bottom()


static void _init_f_bottom_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_bottom_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QMargins *)cls)->bottom ());
}

static qt_gsi::GenericMethod *_create_f_bottom_c0 ()
{
  return new qt_gsi::GenericMethod (":bottom", "@brief Method int QMargins::bottom()\n", true, &_init_f_bottom_c0, &_call_f_bottom_c0);
}

// bool QMargins::isNull()


static void _init_f_isNull_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<bool > ();
}

static void _call_f_isNull_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<bool > ((bool)((QMargins *)cls)->isNull ());
}

static qt_gsi::GenericMethod *_create_f_isNull_c0 ()
{
  return new qt_gsi::GenericMethod ("isNull?", "@brief Method bool QMargins::isNull()\n", true, &_init_f_isNull_c0, &_call_f_isNull_c0);
}

// int QMargins::left()


static void _init_f_left_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_left_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QMargins *)cls)->left ());
}

static qt_gsi::GenericMethod *_create_f_left_c0 ()
{
  return new qt_gsi::GenericMethod (":left", "@brief Method int QMargins::left()\n", true, &_init_f_left_c0, &_call_f_left_c0);
}

// int QMargins::right()


static void _init_f_right_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_right_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QMargins *)cls)->right ());
}

static qt_gsi::GenericMethod *_create_f_right_c0 ()
{
  return new qt_gsi::GenericMethod (":right", "@brief Method int QMargins::right()\n", true, &_init_f_right_c0, &_call_f_right_c0);
}

// void QMargins::setBottom(int bottom)


static void _init_f_setBottom_767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("bottom");
  decl->add_arg<int > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setBottom_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ((QMargins *)cls)->setBottom (arg1);
}

static qt_gsi::GenericMethod *_create_f_setBottom_767 ()
{
  return new qt_gsi::GenericMethod ("setBottom|bottom=", "@brief Method void QMargins::setBottom(int bottom)\n", false, &_init_f_setBottom_767, &_call_f_setBottom_767);
}

// void QMargins::setLeft(int left)


static void _init_f_setLeft_767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("left");
  decl->add_arg<int > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setLeft_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ((QMargins *)cls)->setLeft (arg1);
}

static qt_gsi::GenericMethod *_create_f_setLeft_767 ()
{
  return new qt_gsi::GenericMethod ("setLeft|left=", "@brief Method void QMargins::setLeft(int left)\n", false, &_init_f_setLeft_767, &_call_f_setLeft_767);
}

// void QMargins::setRight(int right)


static void _init_f_setRight_767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("right");
  decl->add_arg<int > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setRight_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ((QMargins *)cls)->setRight (arg1);
}

static qt_gsi::GenericMethod *_create_f_setRight_767 ()
{
  return new qt_gsi::GenericMethod ("setRight|right=", "@brief Method void QMargins::setRight(int right)\n", false, &_init_f_setRight_767, &_call_f_setRight_767);
}

// void QMargins::setTop(int top)


static void _init_f_setTop_767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("top");
  decl->add_arg<int > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setTop_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ((QMargins *)cls)->setTop (arg1);
}

static qt_gsi::GenericMethod *_create_f_setTop_767 ()
{
  return new qt_gsi::GenericMethod ("setTop|top=", "@brief Method void QMargins::setTop(int top)\n", false, &_init_f_setTop_767, &_call_f_setTop_767);
}

// int QMargins::top()


static void _init_f_top_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<int > ();
}

static void _call_f_top_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QMargins *)cls)->top ());
}

static qt_gsi::GenericMethod *_create_f_top_c0 ()
{
  return new qt_gsi::GenericMethod (":top", "@brief Method int QMargins::top()\n", true, &_init_f_top_c0, &_call_f_top_c0);
}

//  bool ::operator==(const QMargins &m1, const QMargins &m2)
static bool op_QMargins_operator_eq__eq__4122(const QMargins *_self, const QMargins &m2) {
  return ::operator==(*_self, m2);
}

//  bool ::operator!=(const QMargins &m1, const QMargins &m2)
static bool op_QMargins_operator_excl__eq__4122(const QMargins *_self, const QMargins &m2) {
  return ::operator!=(*_self, m2);
}


namespace gsi
{
gsi::Class<QMargins> decl_QMargins ("QMargins",
  gsi::Methods(_create_ctor_QMargins_0 ()) +
  gsi::Methods(_create_ctor_QMargins_2744 ()) +
  gsi::Methods(_create_f_bottom_c0 ()) +
  gsi::Methods(_create_f_isNull_c0 ()) +
  gsi::Methods(_create_f_left_c0 ()) +
  gsi::Methods(_create_f_right_c0 ()) +
  gsi::Methods(_create_f_setBottom_767 ()) +
  gsi::Methods(_create_f_setLeft_767 ()) +
  gsi::Methods(_create_f_setRight_767 ()) +
  gsi::Methods(_create_f_setTop_767 ()) +
  gsi::Methods(_create_f_top_c0 ()) +
  gsi::method_ext("==", &::op_QMargins_operator_eq__eq__4122, gsi::arg ("m2"), "@brief Operator bool ::operator==(const QMargins &m1, const QMargins &m2)\nThis is the mapping of the global operator to the instance method.") +
  gsi::method_ext("!=", &::op_QMargins_operator_excl__eq__4122, gsi::arg ("m2"), "@brief Operator bool ::operator!=(const QMargins &m1, const QMargins &m2)\nThis is the mapping of the global operator to the instance method."),
  "@qt\n@brief Binding of QMargins");

}

