GNU Info

Info Node: (gtk.info)Simple types

(gtk.info)Simple types


Next: Enumerations and flags Prev: Basics Up: Types
Enter node , (file) or (file)node

Simple Types
============

   The Gtk type system has a full set of the usual simple types:
integers, floating point numbers, but also boolean and character.  You
can not derive new types from these.

Enum               Name         Description
GTK_TYPE_NONE      "void"       A type without value.
GTK_TYPE_CHAR      "char"       A 8-bit unsigned number
                                representing a character.  Numbers
                                    between 0 and 127 are ASCII,
                                the rest is undefined.
GTK_TYPE_BOOL      "gboolean"   The boolean type.  It is some
                                small integer where the number 0
                                   represents false and 1 is
                                true.  No other values are
                                allowed.
GTK_TYPE_INT       "gint"       A signed integer with at least 32
                                bits.
GTK_TYPE_UINT      "guint"      A unsigned integer with at least
                                32 bits.
GTK_TYPE_LONG      "glong"      A signed integer with at least 32
                                bits.
GTK_TYPE_ULONG     "gulong"     A unsigned integer with at least
                                32 bits.  This is large enough to
                                    hold a coerced pointer.
GTK_TYPE_FLOAT     "gfloat"     A single precision floating point
                                number.
GTK_TYPE_DOUBLE    "gfloat"     A souble precision floating point
                                number.
GTK_TYPE_POINTER   "gpointer"   A untyped pointer.  Do not use
                                this if you can avoid it.

   The values of these types are all represented `directly' with the C
types that are indicated in the `name' column above.  Note: Boxed
types for a discussion of this.


automatically generated by info2www version 1.2.2.9