DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(gtk.info.gz) Simple types

Info Catalog (gtk.info.gz) Basics (gtk.info.gz) Types (gtk.info.gz) Enumerations and flags
 
 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.   Boxed
 types for a discussion of this.
 
Info Catalog (gtk.info.gz) Basics (gtk.info.gz) Types (gtk.info.gz) Enumerations and flags
automatically generated byinfo2html