
/*

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

#ifndef _HDR_gsiDeclQTextLine_Enums
#define _HDR_gsiDeclQTextLine_Enums

#include <QtCore/QFlags>

namespace qt_gsi
{

//  Wrapper class for QFlags<enum QTextLine::CursorPosition>
class QTextLine_CursorPosition_Enums : public QFlags<enum QTextLine::CursorPosition> {
public:
  QTextLine_CursorPosition_Enums () : m_flags () { }
  QTextLine_CursorPosition_Enums (enum QTextLine::CursorPosition v) : m_flags (v) { }
  QTextLine_CursorPosition_Enums (const QFlags<enum QTextLine::CursorPosition> &v) : m_flags (v) { }
  QFlags<enum QTextLine::CursorPosition> flags () const { return m_flags; }
private:
  QFlags<QTextLine::CursorPosition> m_flags;
};

//  Wrapper class for enum QTextLine::CursorPosition
class QTextLine_CursorPosition_Enum : public QTextLine_CursorPosition_Enums {
public:
  QTextLine_CursorPosition_Enum () { }
  QTextLine_CursorPosition_Enum (enum QTextLine::CursorPosition v) : QTextLine_CursorPosition_Enums (v) { }
  enum QTextLine::CursorPosition value () const { return (enum QTextLine::CursorPosition) flags ().operator int (); }
};

//  Converter for QFlags<enum QTextLine::CursorPosition>
template <>
struct Converter<QFlags<enum QTextLine::CursorPosition> >
{
public:
  typedef QFlags<enum QTextLine::CursorPosition> source_type;
  typedef QTextLine_CursorPosition_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum QTextLine::CursorPosition
template <>
struct Converter<enum QTextLine::CursorPosition>
{
public:
  typedef enum QTextLine::CursorPosition source_type;
  typedef QTextLine_CursorPosition_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Wrapper class for QFlags<enum QTextLine::Edge>
class QTextLine_Edge_Enums : public QFlags<enum QTextLine::Edge> {
public:
  QTextLine_Edge_Enums () : m_flags () { }
  QTextLine_Edge_Enums (enum QTextLine::Edge v) : m_flags (v) { }
  QTextLine_Edge_Enums (const QFlags<enum QTextLine::Edge> &v) : m_flags (v) { }
  QFlags<enum QTextLine::Edge> flags () const { return m_flags; }
private:
  QFlags<QTextLine::Edge> m_flags;
};

//  Wrapper class for enum QTextLine::Edge
class QTextLine_Edge_Enum : public QTextLine_Edge_Enums {
public:
  QTextLine_Edge_Enum () { }
  QTextLine_Edge_Enum (enum QTextLine::Edge v) : QTextLine_Edge_Enums (v) { }
  enum QTextLine::Edge value () const { return (enum QTextLine::Edge) flags ().operator int (); }
};

//  Converter for QFlags<enum QTextLine::Edge>
template <>
struct Converter<QFlags<enum QTextLine::Edge> >
{
public:
  typedef QFlags<enum QTextLine::Edge> source_type;
  typedef QTextLine_Edge_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum QTextLine::Edge
template <>
struct Converter<enum QTextLine::Edge>
{
public:
  typedef enum QTextLine::Edge source_type;
  typedef QTextLine_Edge_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

}

#endif
