Glib @ GTK + 2.0 Chinese tutorial serialization

Source: Internet
Author: User
Tags gtk

Glib
Glib is an underlying library that provides many useful definitions and functions when creating gdk and GTK applications. They include definitions of basic types and restrictions, standard macros, type conversion, byte order, storage allocation, warnings and assertions, message records, timers, string utilities) hook function, a syntax scanner, dynamic loading module, and automatic string completion. It also defines many data structures (and their corresponding operations ), including storage block, two-way linked list, one-way linked list, hash table, string (dynamic growth), string block (string group), array (size can increase with the addition of elements), balanced binary tree, N-tree, and Quark (Quark, a two-way association between a string and its unique integer identifier) key data list (list of data elements that can be accessed by a string or integer), relationship and metadata group (data tables that can be indexed by any location number), and cache ).
The following summarizes some functions of the glib library functions, which do not include all functions, data structures, or operations. For more complete information about the glib library, see the glib documentation. You can get from http://www.gtk.org.
If you are using another language, you should check the documents bound to the language. Sometimes the language may already have the same functions, and sometimes it may not.
Definition
The definitions of extreme values of many standard types are:
G_minfloat
G_maxfloat
G_mindouble
G_maxdouble
G_minshort
G_maxshort
G_minint
G_maxint
G_minlong
G_maxlong
The following typedefs is also defined. The remaining undefined items are dynamically set based on the hardware platform. Remember not to calculate the pointer size if you want to make the program portable. A pointer is 8 bytes in Alpha, and 4 bytes in Intel 80x86 series CPU.
Char gchar;
Short gshort;
Long glong;
Int Gint;
Char gboolean;
Unsigned char guchar;
Unsigned short gushort;
Unsigned long Gulong;
Unsigned int guint;
Float gfloat;
Double gdouble;
Long Double gldouble;
Void * gpointer;
Gint8
Guint8
Gint16
Guint16
Gint32
Guint32
<Previushomenext>
Function two-way linked list

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.