📄 z35.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html> <head> <title> Other Features </title> <meta name="GENERATOR" content= "Modular DocBook HTML Stylesheet Version 1.45"> <link rel="HOME" title="GTK+ / Gnome Application Development" href="ggad.html"> <link rel="UP" title="glib: Portability and Utility" href= "cha-glib.html"> <link rel="PREVIOUS" title="Data Structures" href="z29.html"> <link rel="NEXT" title="GTK+ Basics" href="cha-gtk.html"> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink= "#840084" alink="#0000FF"> <div class="NAVHEADER"> <table width="100%" border="0" bgcolor="#ffffff" cellpadding= "1" cellspacing="0"> <tr> <th colspan="4" align="center"> <font color="#000000" size="2">GTK+ / Gnome Application Development</font> </th> </tr> <tr> <td width="25%" bgcolor="#ffffff" align="left"> <a href="z29.html"><font color="#0000ff" size="2"><b> <<< Previous</b></font></a> </td> <td width="25%" colspan="2" bgcolor="#ffffff" align= "center"> <font color="#0000ff" size="2"><b><a href="ggad.html"> <font color="#0000ff" size="2"><b> Home</b></font></a></b></font> </td> <td width="25%" bgcolor="#ffffff" align="right"> <a href="cha-gtk.html"><font color="#0000ff" size="2"> <b>Next >>></b></font></a> </td> </tr> </table> </div> <div class="SECT1"> <h1 class="SECT1"> <a name="Z35">Other Features</a> </h1> <p> There simply isn't space to cover all of glib's features in this book. It's worth looking at glib whenever you find yourself thinking, "There really <i class="EMPHASIS"> should</i> be a function that..."---<tt class= "FILENAME">glib.h</tt> and the glib documentation on <a href="http://www.gtk.org/" target="_top"> http://www.gtk.org/</a> are excellent resources. </p> <p> Here's a brief list of features not already mentioned: </p> <ul> <li> <p> <span class="STRUCTNAME">FLOAT_MAX</span>, etc. equivalents for many numeric types. </p> </li> <li> <p> Byte-order conversions. </p> </li> <li> <p> <tt class="FUNCTION">g_memmove()</tt> is more portable them <tt class="FUNCTION">memmove()</tt>. </p> </li> <li> <p> <span class="STRUCTNAME">G_DIR_SEPARATOR</span> handles Windows/UNIX differences. </p> </li> <li> <p> <span class="STRUCTNAME">G_VA_COPY</span> copies a <span class="STRUCTNAME">va_list</span> in a portable way. </p> </li> <li> <p> Numerous macros to permit the use of compiler extensions (especially <tt class="APPLICATION">gcc</tt> extensions) in a portable way. </p> </li> <li> <p> Portable <tt class="FUNCTION">g_htonl()</tt> and other host-to-network conversions. </p> </li> <li> <p> A <span class="STRUCTNAME">GCache</span> generic cache facility. </p> </li> <li> <p> "Callback maintenance" routines---registering and unregistering of callbacks. </p> </li> <li> <p> The <tt class="FUNCTION">g_log()</tt> facility, allows you to print warnings, messages, etc. with configurable log levels and pluggable print routines. </p> </li> <li> <p> <span class="STRUCTNAME">GMemChunk</span> facility allows you to allocate a large pool of small memory chunks, for efficiency gains compared to <tt class= "FUNCTION">g_malloc()</tt>. Used in the <span class= "STRUCTNAME">GList</span> implementation, for example. </p> </li> <li> <p> A timer facility. </p> </li> <li> <p> Convenience/portability routines to get the user's home directory, get the name of a <tt class="FILENAME"> /tmp</tt> directory, and similar tasks. </p> </li> <li> <p> Filename manipulation, such as <tt class="FUNCTION"> g_basename()</tt> and <tt class="FUNCTION"> g_path_is_absolute()</tt>. </p> </li> <li> <p> Bitfield manipulation. </p> </li> <li> <p> Enhanced string and array classes. Pointer and byte arrays. </p> </li> <li> <p> <span class="STRUCTNAME">GQuark</span>---two way mapping from strings to integer identifiers. </p> </li> <li> <p> Routines to associate data with strings, or with arbitrary pointers. </p> </li> <li> <p> A lexical scanner. </p> </li> <li> <p> Tab completions. </p> </li> <li> <p> Calendrical/date-arithmetic functions. </p> </li> <li> <p> A generic event loop abstraction, used to implement GTK+'s event loop. </p> </li> <li> <p> A portable threads abstraction. </p> </li> </ul> <p> If you need some generally-useful routine that's not in glib already, consider writing it in glib style and contributing it to the library! You get free assistance with design, debugging, and maintenance, and other programmers benefit from the facility you've written. By the time you read this, it's also possible that the feature you want is already in the latest version of glib. </p> </div> <div class="NAVFOOTER"> <br> <br> <table width="100%" border="0" bgcolor="#ffffff" cellpadding= "1" cellspacing="0"> <tr> <td width="25%" bgcolor="#ffffff" align="left"> <a href="z29.html"><font color="#0000ff" size="2"><b> <<< Previous</b></font></a> </td> <td width="25%" colspan="2" bgcolor="#ffffff" align= "center"> <font color="#0000ff" size="2"><b><a href="ggad.html"> <font color="#0000ff" size="2"><b> Home</b></font></a></b></font> </td> <td width="25%" bgcolor="#ffffff" align="right"> <a href="cha-gtk.html"><font color="#0000ff" size="2"> <b>Next >>></b></font></a> </td> </tr> <tr> <td colspan="2" align="left"> <font color="#000000" size="2"><b>Data Structures</b></font> </td> <td colspan="2" align="right"> <font color="#000000" size="2"><b>GTK+ Basics</b></font> </td> </tr> </table> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -