GTK+ By Example/Glib/Type System

From Wikibooks, open books for an open world
Jump to navigation Jump to search

The Glib type system aims to simplify programming cross-platform programs, we will spend a small amount of time explaining why.

Basic Types[edit | edit source]

See basic types in the Glib API.

Why Reimplement Fundamental Types[edit | edit source]

Glib re-implements the fundamental C types in order to ensure cross-platform portability, this also makes it easier to program on multiple platform, because you can be sure of what your data looks like in memory.

Complex Types[edit | edit source]

See complex data types glib implements.

Glib implements some commonly used non-scalar data types.

  • Doubly and Singly Linked Lists.
  • Balanced B-Trees.
  • Enums