Debian Codegraph @

gi/_constants.py

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