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

📄 gtk-feature-test-macros.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<div class="refsect2" lang="en"><a name="id3329206"></a><h3><a name="gtk-interface-age"></a>gtk_interface_age</h3><a class="indexterm" name="id3329219"></a><pre class="programlisting">extern const guint gtk_interface_age;</pre><p>This is the interface age passed to <span class="application">libtool</span>. If <span class="application">libtool</span> means nothing to you, don't worry about it. ;-)</p></div><hr><div class="refsect2" lang="en"><a name="id3329248"></a><h3><a name="gtk-check-version"></a>gtk_check_version ()</h3><a class="indexterm" name="id3329262"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_check_version                   (<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> required_major,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> required_minor,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> required_micro);</pre><p>Checks that the GTK+ library in use is compatible with thegiven version. Generally you would pass in the constants<a class="link" href="gtk-Feature-Test-Macros.html#GTK-MAJOR-VERSION:CAPS"><span class="type">GTK_MAJOR_VERSION</span></a>, <a class="link" href="gtk-Feature-Test-Macros.html#GTK-MINOR-VERSION:CAPS"><span class="type">GTK_MINOR_VERSION</span></a>, <a class="link" href="gtk-Feature-Test-Macros.html#GTK-MICRO-VERSION:CAPS"><span class="type">GTK_MICRO_VERSION</span></a>as the three arguments to this function; that producesa check that the library in use is compatible withthe version of GTK+ the application or module was compiledagainst.</p><p>Compatibility is defined by two things: first the versionof the running library is newer than the version<em class="parameter"><code>required_major.required_minor</code></em>.<em class="parameter"><code>required_micro</code></em>. Secondthe running library must be binary compatible with theversion <em class="parameter"><code>required_major.required_minor</code></em>.<em class="parameter"><code>required_micro</code></em>(same major version.)</p><p>This function is primarily for GTK+ modules; the modulecan call this function to check that it wasn't loadedinto an incompatible version of GTK+. However, such aa check isn't completely reliable, since the module may belinked against an old version of GTK+ and calling theold version of <a class="link" href="gtk-Feature-Test-Macros.html#gtk-check-version"><code class="function">gtk_check_version()</code></a>, but still get loadedinto an application using a newer version of GTK+.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>required_major</code></em>&#160;:</span></p></td><td> the required major version.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>required_minor</code></em>&#160;:</span></p></td><td> the required minor version.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>required_micro</code></em>&#160;:</span></p></td><td> the required micro version.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the GTK+ library is compatible with the  given version, or a string describing the version mismatch.  The returned string is owned by GTK+ and should not be modified  or freed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3329462"></a><h3><a name="GTK-MAJOR-VERSION:CAPS"></a>GTK_MAJOR_VERSION</h3><a class="indexterm" name="id3329476"></a><pre class="programlisting">#define GTK_MAJOR_VERSION				(2)</pre><p>Like <a class="link" href="gtk-Feature-Test-Macros.html#gtk-major-version"><span class="type">gtk_major_version</span></a>, but from the headers used atapplication compile time, rather than from the library linked againstat application run time.</p></div><hr><div class="refsect2" lang="en"><a name="id3329502"></a><h3><a name="GTK-MINOR-VERSION:CAPS"></a>GTK_MINOR_VERSION</h3><a class="indexterm" name="id3329515"></a><pre class="programlisting">#define GTK_MINOR_VERSION				(12)</pre><p>Like <a class="link" href="gtk-Feature-Test-Macros.html#gtk-minor-version"><span class="type">gtk_minor_version</span></a>, but from the headers used atapplication compile time, rather than from the library linked againstat application run time.</p></div><hr><div class="refsect2" lang="en"><a name="id3329541"></a><h3><a name="GTK-MICRO-VERSION:CAPS"></a>GTK_MICRO_VERSION</h3><a class="indexterm" name="id3329554"></a><pre class="programlisting">#define GTK_MICRO_VERSION				(8)</pre><p>Like <a class="link" href="gtk-Feature-Test-Macros.html#gtk-micro-version"><span class="type">gtk_micro_version</span></a>, but from the headers used atapplication compile time, rather than from the library linked againstat application run time.</p></div><hr><div class="refsect2" lang="en"><a name="id3329580"></a><h3><a name="GTK-BINARY-AGE:CAPS"></a>GTK_BINARY_AGE</h3><a class="indexterm" name="id3329592"></a><pre class="programlisting">#define GTK_BINARY_AGE					(1208)</pre><p>Like <a class="link" href="gtk-Feature-Test-Macros.html#gtk-binary-age"><span class="type">gtk_binary_age</span></a>, but from the headers used atapplication compile time, rather than from the library linked againstat application run time.</p></div><hr><div class="refsect2" lang="en"><a name="id3329618"></a><h3><a name="GTK-INTERFACE-AGE:CAPS"></a>GTK_INTERFACE_AGE</h3><a class="indexterm" name="id3329632"></a><pre class="programlisting">#define GTK_INTERFACE_AGE				(8)</pre><p>Like <a class="link" href="gtk-Feature-Test-Macros.html#gtk-interface-age"><span class="type">gtk_interface_age</span></a>, but from the headers used atapplication compile time, rather than from the library linked againstat application run time.</p></div><hr><div class="refsect2" lang="en"><a name="id3329658"></a><h3><a name="GTK-CHECK-VERSION:CAPS"></a>GTK_CHECK_VERSION()</h3><a class="indexterm" name="id3329671"></a><pre class="programlisting">#define             GTK_CHECK_VERSION(major,minor,micro)</pre><p>Returns <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the version of the GTK+ header files is the same as or newer than the passed-in version.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>major</code></em>&#160;:</span></p></td><td>major version (e.g. 1 for version 1.2.5)</td></tr><tr><td><p><span class="term"><em class="parameter"><code>minor</code></em>&#160;:</span></p></td><td>minor version (e.g. 2 for version 1.2.5)</td></tr><tr><td><p><span class="term"><em class="parameter"><code>micro</code></em>&#160;:</span></p></td><td>micro version (e.g. 5 for version 1.2.5)</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id3329747"></a><div class="refsect2" lang="en"><a name="id3329748"></a></div><hr><div class="refsect2" lang="en"><a name="id3329749"></a></div></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -