home *** CD-ROM | disk | FTP | other *** search
- # -*- Mode: Python; py-indent-offset: 4 -*-
- # pygobject - Python bindings for the GObject library
- # Copyright (C) 2006-2007 Johan Dahlin
- #
- # gobject/constants.py: GObject type constants
- #
- # This library is free software; you can redistribute it and/or
- # modify it under the terms of the GNU Lesser General Public
- # License as published by the Free Software Foundation; either
- # version 2.1 of the License, or (at your option) any later version.
- #
- # This library 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
- # Lesser General Public License for more details.
- #
- # You should have received a copy of the GNU Lesser General Public
- # License along with this library; if not, write to the Free Software
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- # USA
-
- from _gobject import type_from_name
-
- # TYPE_INVALID defined in gobjectmodule.c
- TYPE_NONE = type_from_name('void')
- TYPE_INTERFACE = type_from_name('GInterface')
- TYPE_CHAR = type_from_name('gchar')
- TYPE_UCHAR = type_from_name('guchar')
- TYPE_BOOLEAN = type_from_name('gboolean')
- TYPE_INT = type_from_name('gint')
- TYPE_UINT = type_from_name('guint')
- TYPE_LONG = type_from_name('glong')
- TYPE_ULONG = type_from_name('gulong')
- TYPE_INT64 = type_from_name('gint64')
- TYPE_UINT64 = type_from_name('guint64')
- TYPE_ENUM = type_from_name('GEnum')
- TYPE_FLAGS = type_from_name('GFlags')
- TYPE_FLOAT = type_from_name('gfloat')
- TYPE_DOUBLE = type_from_name('gdouble')
- TYPE_STRING = type_from_name('gchararray')
- TYPE_POINTER = type_from_name('gpointer')
- TYPE_BOXED = type_from_name('GBoxed')
- TYPE_PARAM = type_from_name('GParam')
- TYPE_OBJECT = type_from_name('GObject')
- TYPE_PYOBJECT = type_from_name('PyObject')
- TYPE_UNICHAR = TYPE_UINT
-
- # This part is generated by generate-constants.c
- G_MINFLOAT = 0.000000
- G_MINFLOAT = 0.000000
- G_MAXFLOAT = 340282346638528859811704183484516925440.000000
- G_MINDOUBLE = 0.000000
- G_MAXDOUBLE = 179769313486231570814527423731704356798070600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
- G_MINSHORT = -32768
- G_MAXSHORT = 32767
- G_MAXUSHORT = 65535
- G_MININT = -2147483648
- G_MAXINT = 2147483647
- G_MAXUINT = 4294967295
- G_MINLONG = -2147483648L
- G_MAXLONG = 2147483647L
- G_MAXULONG = 4294967295L
-