
/*

  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 gsiDeclQStyleOption.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtGui.h"
#include "gsiDeclQtTypeTraits.h"
#include "gsiDeclQStyleOption_Enums.h"
#include <memory>

// -----------------------------------------------------------------------
// class QStyleOption

//  Constructor QStyleOption::QStyleOption(int version, int type)


static void _init_ctor_QStyleOption_1426 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("version", true, "QStyleOption::Version");
  decl->add_arg<int > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("type", true, "QStyleOption::SO_Default");
  decl->add_arg<int > (argspec_1);
  decl->set_return_new<QStyleOption *> ();
}

static void _call_ctor_QStyleOption_1426 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args ? args.read<int > () : (int)(QStyleOption::Version);
  int arg2 = args ? args.read<int > () : (int)(QStyleOption::SO_Default);
  ret.write<QStyleOption *> (new QStyleOption (arg1, arg2));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QStyleOption_1426 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QStyleOption::QStyleOption(int version, int type)\nThis method creates an object of class QStyleOption.", &_init_ctor_QStyleOption_1426, &_call_ctor_QStyleOption_1426);
}

//  Constructor QStyleOption::QStyleOption(const QStyleOption &other)


static void _init_ctor_QStyleOption_2556 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QStyleOption & > (argspec_0);
  decl->set_return_new<QStyleOption *> ();
}

static void _call_ctor_QStyleOption_2556 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QStyleOption &arg1 = args.read<const QStyleOption & > ();
  ret.write<QStyleOption *> (new QStyleOption (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QStyleOption_2556 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QStyleOption::QStyleOption(const QStyleOption &other)\nThis method creates an object of class QStyleOption.", &_init_ctor_QStyleOption_2556, &_call_ctor_QStyleOption_2556);
}

// void QStyleOption::init(const QWidget *w)


static void _init_f_init_2010 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("w");
  decl->add_arg<const QWidget * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_init_2010 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QWidget *arg1 = args.read<const QWidget * > ();
  ((QStyleOption *)cls)->init (arg1);
}

static qt_gsi::GenericMethod *_create_f_init_2010 ()
{
  return new qt_gsi::GenericMethod ("init", "@brief Method void QStyleOption::init(const QWidget *w)\n", false, &_init_f_init_2010, &_call_f_init_2010);
}

// void QStyleOption::initFrom(const QWidget *w)


static void _init_f_initFrom_2010 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("w");
  decl->add_arg<const QWidget * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_initFrom_2010 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QWidget *arg1 = args.read<const QWidget * > ();
  ((QStyleOption *)cls)->initFrom (arg1);
}

static qt_gsi::GenericMethod *_create_f_initFrom_2010 ()
{
  return new qt_gsi::GenericMethod ("initFrom", "@brief Method void QStyleOption::initFrom(const QWidget *w)\n", false, &_init_f_initFrom_2010, &_call_f_initFrom_2010);
}

// QStyleOption &QStyleOption::operator=(const QStyleOption &other)


static void _init_f_operator_eq__2556 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("other");
  decl->add_arg<const QStyleOption & > (argspec_0);
  decl->set_return<QStyleOption & > ();
}

static void _call_f_operator_eq__2556 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QStyleOption &arg1 = args.read<const QStyleOption & > ();
  ret.write<QStyleOption & > ((QStyleOption &)((QStyleOption *)cls)->operator= (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__2556 ()
{
  return new qt_gsi::GenericMethod ("assign", "@brief Method QStyleOption &QStyleOption::operator=(const QStyleOption &other)\n", false, &_init_f_operator_eq__2556, &_call_f_operator_eq__2556);
}


namespace gsi
{
gsi::Class<QStyleOption> decl_QStyleOption ("QStyleOption",
  gsi::Methods(_create_ctor_QStyleOption_1426 ()) +
  gsi::Methods(_create_ctor_QStyleOption_2556 ()) +
  gsi::Methods(_create_f_init_2010 ()) +
  gsi::Methods(_create_f_initFrom_2010 ()) +
  gsi::Methods(_create_f_operator_eq__2556 ()),
  "@qt\n@brief Binding of QStyleOption");

}

