1# -*- Mode: Python; py-indent-offset: 4 -*- 2# pygobject - Python bindings for the GObject library 3# Copyright (C) 2006-2007 Johan Dahlin 4# 5# gi/_constants.py: GObject type constants 6# 7# This library is free software; you can redistribute it and/or 8# modify it under the terms of the GNU Lesser General Public 9# License as published by the Free Software Foundation; either 10# version 2.1 of the License, or (at your option) any later version. 11# 12# This library is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15# Lesser General Public License for more details. 16# 17# You should have received a copy of the GNU Lesser General Public 18# License along with this library; if not, see <http://www.gnu.org/licenses/>. 19 20from . import _gi 21 22TYPE_INVALID = _gi.TYPE_INVALID 23TYPE_NONE = _gi.GType.from_name('void') 24TYPE_INTERFACE = _gi.GType.from_name('GInterface') 25TYPE_CHAR = _gi.GType.from_name('gchar') 26TYPE_UCHAR = _gi.GType.from_name('guchar') 27TYPE_BOOLEAN = _gi.GType.from_name('gboolean') 28TYPE_INT = _gi.GType.from_name('gint') 29TYPE_UINT = _gi.GType.from_name('guint') 30TYPE_LONG = _gi.GType.from_name('glong') 31TYPE_ULONG = _gi.GType.from_name('gulong') 32TYPE_INT64 = _gi.GType.from_name('gint64') 33TYPE_UINT64 = _gi.GType.from_name('guint64') 34TYPE_ENUM = _gi.GType.from_name('GEnum') 35TYPE_FLAGS = _gi.GType.from_name('GFlags') 36TYPE_FLOAT = _gi.GType.from_name('gfloat') 37TYPE_DOUBLE = _gi.GType.from_name('gdouble') 38TYPE_STRING = _gi.GType.from_name('gchararray') 39TYPE_POINTER = _gi.GType.from_name('gpointer') 40TYPE_BOXED = _gi.GType.from_name('GBoxed') 41TYPE_PARAM = _gi.GType.from_name('GParam') 42TYPE_OBJECT = _gi.GType.from_name('GObject') 43TYPE_PYOBJECT = _gi.GType.from_name('PyObject') 44TYPE_GTYPE = _gi.GType.from_name('GType') 45TYPE_STRV = _gi.GType.from_name('GStrv') 46TYPE_VARIANT = _gi.GType.from_name('GVariant') 47TYPE_UNICHAR = TYPE_UINT 48