⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 z35.html

📁 GTK+_ Gnome Application Development
💻 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>            &lt;&lt;&lt; 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 &gt;&gt;&gt;</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.&#13;          </p>        </li>        <li>          <p>            Byte-order conversions.&#13;          </p>        </li>        <li>          <p>            <tt class="FUNCTION">g_memmove()</tt> is more portable            them <tt class="FUNCTION">memmove()</tt>.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">G_DIR_SEPARATOR</span> handles            Windows/UNIX differences.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">G_VA_COPY</span> copies a            <span class="STRUCTNAME">va_list</span> in a portable            way.&#13;          </p>        </li>        <li>          <p>            Numerous macros to permit the use of compiler            extensions (especially <tt class="APPLICATION">gcc</tt>            extensions) in a portable way.&#13;          </p>        </li>        <li>          <p>            Portable <tt class="FUNCTION">g_htonl()</tt> and other            host-to-network conversions.&#13;          </p>        </li>        <li>          <p>            A <span class="STRUCTNAME">GCache</span> generic cache            facility.&#13;          </p>        </li>        <li>          <p>            "Callback maintenance" routines---registering and            unregistering of callbacks.&#13;          </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.&#13;          </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.&#13;          </p>        </li>        <li>          <p>            A timer facility.&#13;          </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.&#13;          </p>        </li>        <li>          <p>            Filename manipulation, such as <tt class="FUNCTION">            g_basename()</tt> and <tt class="FUNCTION">            g_path_is_absolute()</tt>.&#13;          </p>        </li>        <li>          <p>            Bitfield manipulation.&#13;          </p>        </li>        <li>          <p>            Enhanced string and array classes. Pointer and byte            arrays.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">GQuark</span>---two way            mapping from strings to integer identifiers. &#13;          </p>        </li>        <li>          <p>            Routines to associate data with strings, or with            arbitrary pointers. &#13;          </p>        </li>        <li>          <p>            A lexical scanner.&#13;          </p>        </li>        <li>          <p>            Tab completions.&#13;          </p>        </li>        <li>          <p>            Calendrical/date-arithmetic functions.&#13;          </p>        </li>        <li>          <p>            A generic event loop abstraction, used to implement            GTK+'s event loop.&#13;          </p>        </li>        <li>          <p>            A portable threads abstraction.&#13;          </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>            &lt;&lt;&lt; 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 &gt;&gt;&gt;</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 + -