GLib

GLib

In computing, GLib refers to a cross-platform software utility library. It started life as part of the GTK+ project, however, before releasing version 2 of GTK+, the project's developers decided to separate non-GUI-specific code from the GTK+ platform, thus creating GLib as a separate product. GLib was released as a separate library so other developers, those that did not make use of the GUI-related portions of GTK+, could make use of the non-GUI portions of the library without the overhead of depending on a full-blown GUI library.

Since GLib is a cross-platform library, applications using it to interface with the operating system are usually portable across different operating systems without major changes. [cite book
last = Krause
first = Andrew
title = Foundations of GTK+ Development
publisher = Apress
series = Expert's Voice in Open Source
year = 2007
isbn = 1590597931
pages = p. 5
quote = [GLib] provides a cross-platform interface that allows your code to be run on any of its supported operating systems "with little to no rewriting of code"!
]

Features

Some features of GLib include:

* basic types and their limits
* standard macros
* type conversions
* byte order conversion
* memory allocation
* warnings and assertions
* message logging
* timers
* string utilities
* hook functions
* a lexical scanner
* dynamic loading of modules
* threads
* memory pools
* automatic string completion.
* a type system, GType
* an object system, GObject

A number of data structures (and their related operations) are also defined, including:

* memory chunks
* doubly- and singly-linked lists
* hash tables (associative arrays)
* strings (which can grow dynamically)
* string chunks (groups of strings)
* arrays (which can grow in size as elements are added)
* balanced binary trees
* N-ary trees
* quarks (a two-way association of a string and a unique integer identifier)
* keyed data lists (lists of data elements accessible by a string or integer id)
* relations and tuples (tables of data which can be indexed on any number of fields)
* caches.

Similar projects

For many applications, C with GLib is an alternative to C++ with STL (see GObject for a detailed comparison).

GLib, together with GTK+, can be considered similar in scope and purpose to the Windows API. However, applications using the Windows API are not portable to other operating systems, unless the calls are replaced with their equivalents in the target system.

Other widget toolkits usually also provide low-level functions and implementations of data structures. For instance, in the wxWidgets library the non-GUI functions are in the wxBase library, and in Qt the non-GUI parts are in the QtCore module.

References

External links

* [http://library.gnome.org/devel/glib/stable/ GLib API documentation]
* [http://www.gtkbook.com/ Foundations of GTK+ Development] , book on GTK+/GLib development


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу
Synonyms:

Look at other dictionaries:

  • GLib — Тип библиотека исполнения Написана на С Операционная система кроссплатформенная Последняя версия 2.34.0 (25 сентября 2012) Тестовая версия 2.33.10 (10 сентября 2012 [1] …   Википедия

  • GLib — Entwickler Das GTK+ Team Aktuelle Version 2.30.2 (11. November 2011) Betriebssystem Unix, Windows, OS/2, BeOS …   Deutsch Wikipedia

  • Glib — Entwickler: Das GTK+ Team Aktuelle Version: 2.20.1 (12. April 2008) Aktuelle Vorabversion: 2.19.6 (2. Februar 2009) …   Deutsch Wikipedia

  • glib´ly — glib «glihb», adjective, glib|ber, glib|best. 1. speaking or spoken smoothly and easily: »A glib salesman sold her a set of dishes that she did not want. SYNONYM(S): voluble, smooth tongued. See syn. under f …   Useful english dictionary

  • glib — [ glıb ] adjective 1. ) a glib person speaks easily and confidently. This word shows that you do not trust the person or what they are saying: SMOOTH TALKING: His opponents say he is glib and deceitful. 2. ) a glib remark is made without careful… …   Usage of the words and phrases in modern English

  • Glib — (gl[i^]b), a. [Compar. {Glibber} (gl[i^]b b[ e]r); superl. {Glibbest} (gl[i^]b b[e^]st).] [Prob. fr. D. glibberen, glippen, to slide, glibberig, glipperig, glib, slippery.] [1913 Webster] 1. Smooth; slippery; as, ice is glib. [Obs.] [1913… …   The Collaborative International Dictionary of English

  • GLib — Développeurs GNOME Foundation Dernière version …   Wikipédia en Français

  • Glib — Glib, n. [Ir. & Gael. glib a lock of hair.] A thick lock of hair, hanging over the eyes. [Obs.] [1913 Webster] The Irish have, from the Scythians, mantles and long glibs, which is a thick curied bush of hair hanging down over their eyes, and… …   The Collaborative International Dictionary of English

  • Glib — est une bibliothèque libre portable. Elle a commencé en tant qu élément de GTK+, mais est utilisée maintenant par de nombreuses applications. C était à l origine une bibliothèque utilisée comme fourre tout pour le code bas niveau. Elle s est… …   Wikipédia en Français

  • glib — [glıb] adj [Date: 1500 1600; Origin: Probably from Low German glibberig slippery ] 1.) said easily and without thinking about all the problems involved used to show disapproval ▪ glib generalizations 2.) speaking easily but without thinking… …   Dictionary of contemporary English

  • glib — glib·bery; glib·ly; glib·ness; glib; …   English syllables

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”