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

📄 utils.xml

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 XML
📖 第 1 页 / 共 3 页
字号:
<para></para><variablelist role="params"><varlistentry><term><parameter>str</parameter>&nbsp;:</term><listitem><simpara> a string to parse.</simpara></listitem></varlistentry><varlistentry><term><parameter>stretch</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoStretch"><type>PangoStretch</type></link> to store the result in.</simpara></listitem></varlistentry><varlistentry><term><parameter>warn</parameter>&nbsp;:</term><listitem><simpara> if <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, issue a <link linkend="g-warning"><function>g_warning()</function></link> on bad input.</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>str</parameter> was successfully parsed.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-get-sysconf-subdirectory" role="function"/>pango_get_sysconf_subdirectory ()</title><indexterm><primary>pango_get_sysconf_subdirectory</primary></indexterm><programlisting>const <link linkend="char">char</link>* pango_get_sysconf_subdirectory  (void);</programlisting><para>On Unix, returns the name of the "pango" subdirectory of SYSCONFDIR(which is set at compile time). On Win32, returns a subdirectory ofthe Pango installation directory (which is deduced at run time fromthe DLL's location, or stored in the Registry).</para><para></para><variablelist role="params"><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the Pango sysconf directory. The returned string shouldnot be freed.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-get-lib-subdirectory" role="function"/>pango_get_lib_subdirectory ()</title><indexterm><primary>pango_get_lib_subdirectory</primary></indexterm><programlisting>const <link linkend="char">char</link>* pango_get_lib_subdirectory      (void);</programlisting><para>On Unix, returns the name of the "pango" subdirectory of LIBDIR(which is set at compile time). On Win32, returns the Pangoinstallation directory (which is deduced at run time from the DLL'slocation, or stored in the Registry). The returned string shouldnot be freed.</para><para></para><variablelist role="params"><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the Pango lib directory. The returned string shouldnot be freed.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-log2vis-get-embedding-levels" role="function" condition="since:1.4"/>pango_log2vis_get_embedding_levels ()</title><indexterm role="1.4"><primary>pango_log2vis_get_embedding_levels</primary></indexterm><programlisting><link linkend="guint8">guint8</link>*     pango_log2vis_get_embedding_levels                                            (const <link linkend="gchar">gchar</link> *text,                                             <link linkend="int">int</link> length,                                             <link linkend="PangoDirection">PangoDirection</link> *pbase_dir);</programlisting><para>This will return the bidirectional embedding levels of the input paragraphas defined by the Unicode Bidirectional Algorithm available at:</para><para>  http://www.unicode.org/reports/tr9/</para><para>If the input base direction is a weak direction, the direction of thecharacters in the text will determine the final resolved direction.</para><para></para><variablelist role="params"><varlistentry><term><parameter>text</parameter>&nbsp;:</term><listitem><simpara>      the text to itemize.</simpara></listitem></varlistentry><varlistentry><term><parameter>length</parameter>&nbsp;:</term><listitem><simpara>    the number of bytes (not characters) to process, or -1            if <parameter>text</parameter> is nul-terminated and the length should be calculated.</simpara></listitem></varlistentry><varlistentry><term><parameter>pbase_dir</parameter>&nbsp;:</term><listitem><simpara> input base direction, and output resolved direction.</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated array of embedding levels, one item per              character (not byte), that should be freed using g_free.</simpara></listitem></varlistentry></variablelist><para>Since  1.4</para></refsect2><refsect2><title><anchor id="pango-language-get-default" role="function" condition="since:1.16"/>pango_language_get_default ()</title><indexterm role="1.16"><primary>pango_language_get_default</primary></indexterm><programlisting><link linkend="PangoLanguage">PangoLanguage</link>* pango_language_get_default   (void);</programlisting><para>Returns the <link linkend="PangoLanguage"><type>PangoLanguage</type></link> for the current locale of the process.Note that this can change over the life of an application.</para><para>On Unix systems, this is the return value is derived from<literal>setlocale(LC_CTYPE, NULL)</literal>, and the user canaffect this through the environment variables LC_ALL, LC_CTYPE orLANG (checked in that order). The locale string typically is inthe form lang_COUNTRY, where lang is an ISO-639 language code, andCOUNTRY is an ISO-3166 country code. For instance, sv_FI forSwedish as written in Finland or pt_BR for Portuguese as written inBrazil.</para><para>On Windows, the C library does not use any such environmentvariables, and setting them won't affect the behavior of functionslike <link linkend="ctime"><function>ctime()</function></link>. The user sets the locale through the Regional Optionsin the Control Panel. The C library (in the <link linkend="setlocale"><function>setlocale()</function></link> function)does not use country and language codes, but country and languagenames spelled out in English.However, this function does check the above environmentvariables, and does return a Unix-style locale string based oneither said environment variables or the thread's current locale.</para><para>Your application should call <literal>setlocale(LC_ALL, "");</literal>for the user settings to take effect.  Gtk+ does this in its initializationfunctions automatically (by calling <link linkend="gtk-set-locale"><function>gtk_set_locale()</function></link>).See <literal>man setlocale</literal> for more details.</para><para></para><variablelist role="params"><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the default language as a <link linkend="PangoLanguage"><type>PangoLanguage</type></link>, must not be              freed.</simpara></listitem></varlistentry></variablelist><para>Since  1.16</para></refsect2><refsect2><title><anchor id="pango-language-get-sample-string" role="function"/>pango_language_get_sample_string ()</title><indexterm><primary>pango_language_get_sample_string</primary></indexterm><programlisting>const <link linkend="char">char</link>* pango_language_get_sample_string                                            (<link linkend="PangoLanguage">PangoLanguage</link> *language);</programlisting><para>Get a string that is representative of the characters needed torender a particular language. This function is a bad hack forinternal use by renderers and Pango.</para><para></para><variablelist role="params"><varlistentry><term><parameter>language</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoLanguage"><type>PangoLanguage</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the sample string. This value is owned by Pango  and must not be freed.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-is-zero-width" role="function" condition="since:1.10"/>pango_is_zero_width ()</title><indexterm role="1.10"><primary>pango_is_zero_width</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>    pango_is_zero_width             (<link linkend="gunichar">gunichar</link> ch);</programlisting><para>Checks <parameter>ch</parameter> to see if it is a character that should not benormally rendered on the screen.  This includes all Unicode characterswith "ZERO WIDTH" in their name, as well as <firstterm>bidi</firstterm> formatting characters, anda few other ones.  This is totally different from <link linkend="g-unichar-iszerowidth"><function>g_unichar_iszerowidth()</function></link>and is at best misnamed.</para><para></para><variablelist role="params"><varlistentry><term><parameter>ch</parameter>&nbsp;:</term><listitem><simpara> a Unicode character</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>ch</parameter> is a zero-width character, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise</simpara></listitem></varlistentry></variablelist><para>Since  1.10</para></refsect2><refsect2><title><anchor id="pango-quantize-line-geometry" role="function" condition="since:1.12"/>pango_quantize_line_geometry ()</title><indexterm role="1.12"><primary>pango_quantize_line_geometry</primary></indexterm><programlisting><link linkend="void">void</link>        pango_quantize_line_geometry    (<link linkend="int">int</link> *thickness,                                             <link linkend="int">int</link> *position);</programlisting><para>Quantizes the thickness and position of a line, typically anunderline or strikethrough, to whole device pixels, that is integermultiples of <link linkend="PANGO-SCALE:CAPS"><literal>PANGO_SCALE</literal></link>. The purpose of this function is to avoidsuch lines looking blurry.</para><para></para><variablelist role="params"><varlistentry><term><parameter>thickness</parameter>&nbsp;:</term><listitem><simpara> pointer to the thickness of a line, in Pango scaled units</simpara></listitem></varlistentry><varlistentry><term><parameter>position</parameter>&nbsp;:</term><listitem><simpara> corresponding position</simpara></listitem></varlistentry></variablelist><para>Since  1.12</para></refsect2></refsect1></refentry>

⌨️ 快捷键说明

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