home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / lib / site-packages / gtk-2.0 / gobject / constants.py < prev    next >
Encoding:
Python Source  |  2008-12-20  |  2.5 KB  |  63 lines

  1. # -*- Mode: Python; py-indent-offset: 4 -*-
  2. # pygobject - Python bindings for the GObject library
  3. # Copyright (C) 2006-2007 Johan Dahlin
  4. #
  5. #   gobject/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, write to the Free Software
  19. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  20. # USA
  21.  
  22. from _gobject import type_from_name
  23.  
  24. # TYPE_INVALID defined in gobjectmodule.c
  25. TYPE_NONE = type_from_name('void')
  26. TYPE_INTERFACE = type_from_name('GInterface')
  27. TYPE_CHAR = type_from_name('gchar')
  28. TYPE_UCHAR = type_from_name('guchar')
  29. TYPE_BOOLEAN = type_from_name('gboolean')
  30. TYPE_INT = type_from_name('gint')
  31. TYPE_UINT = type_from_name('guint')
  32. TYPE_LONG = type_from_name('glong')
  33. TYPE_ULONG = type_from_name('gulong')
  34. TYPE_INT64 = type_from_name('gint64')
  35. TYPE_UINT64 = type_from_name('guint64')
  36. TYPE_ENUM = type_from_name('GEnum')
  37. TYPE_FLAGS = type_from_name('GFlags')
  38. TYPE_FLOAT = type_from_name('gfloat')
  39. TYPE_DOUBLE = type_from_name('gdouble')
  40. TYPE_STRING = type_from_name('gchararray')
  41. TYPE_POINTER = type_from_name('gpointer')
  42. TYPE_BOXED = type_from_name('GBoxed')
  43. TYPE_PARAM = type_from_name('GParam')
  44. TYPE_OBJECT = type_from_name('GObject')
  45. TYPE_PYOBJECT = type_from_name('PyObject')
  46. TYPE_UNICHAR = TYPE_UINT
  47.  
  48. # This part is generated by generate-constants.c
  49. G_MINFLOAT = 0.000000
  50. G_MINFLOAT = 0.000000
  51. G_MAXFLOAT = 340282346638528859811704183484516925440.000000
  52. G_MINDOUBLE = 0.000000
  53. G_MAXDOUBLE = 179769313486231570814527423731704356798070600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
  54. G_MINSHORT = -32768
  55. G_MAXSHORT = 32767
  56. G_MAXUSHORT = 65535
  57. G_MININT = -2147483648
  58. G_MAXINT = 2147483647
  59. G_MAXUINT = 4294967295
  60. G_MINLONG = -2147483648L
  61. G_MAXLONG = 2147483647L
  62. G_MAXULONG = 4294967295L
  63.