📄 layout.xml
字号:
<listitem><simpara> the amount by which to indent.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-layout-get-indent" role="function"/>pango_layout_get_indent ()</title><indexterm><primary>pango_layout_get_indent</primary></indexterm><programlisting><link linkend="int">int</link> pango_layout_get_indent (<link linkend="PangoLayout">PangoLayout</link> *layout);</programlisting><para>Gets the paragraph indent width in Pango units. A negative valueindicates a hanging indentation.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the indent.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-layout-get-spacing" role="function"/>pango_layout_get_spacing ()</title><indexterm><primary>pango_layout_get_spacing</primary></indexterm><programlisting><link linkend="int">int</link> pango_layout_get_spacing (<link linkend="PangoLayout">PangoLayout</link> *layout);</programlisting><para>Gets the amount of spacing in <link linkend="PangoGlyphUnit"><type>PangoGlyphUnit</type></link> between the lines of thelayout.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the spacing.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-layout-set-spacing" role="function"/>pango_layout_set_spacing ()</title><indexterm><primary>pango_layout_set_spacing</primary></indexterm><programlisting><link linkend="void">void</link> pango_layout_set_spacing (<link linkend="PangoLayout">PangoLayout</link> *layout, <link linkend="int">int</link> spacing);</programlisting><para>Sets the amount of spacing in <link linkend="PangoGlyphUnit"><type>PangoGlyphUnit</type></link> between the lines of thelayout.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link>.</simpara></listitem></varlistentry><varlistentry><term><parameter>spacing</parameter> :</term><listitem><simpara> the amount of spacing</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-layout-set-justify" role="function"/>pango_layout_set_justify ()</title><indexterm><primary>pango_layout_set_justify</primary></indexterm><programlisting><link linkend="void">void</link> pango_layout_set_justify (<link linkend="PangoLayout">PangoLayout</link> *layout, <link linkend="gboolean">gboolean</link> justify);</programlisting><para>Sets whether each complete line should be stretched tofill the entire width of the layout. This stretching is typicallydone by adding whitespace, but for some scripts (such as Arabic),the justification may be done in more complex ways, like extendingthe characters.</para><para>Note that as of Pango-1.16, this functionality is not yet implemented.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>justify</parameter> :</term><listitem><simpara> whether the lines in the layout should be justified.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-layout-get-justify" role="function"/>pango_layout_get_justify ()</title><indexterm><primary>pango_layout_get_justify</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> pango_layout_get_justify (<link linkend="PangoLayout">PangoLayout</link> *layout);</programlisting><para>Gets whether each complete line should be stretched to fill the entirewidth of the layout.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the justify.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-layout-set-auto-dir" role="function" condition="since:1.4"/>pango_layout_set_auto_dir ()</title><indexterm role="1.4"><primary>pango_layout_set_auto_dir</primary></indexterm><programlisting><link linkend="void">void</link> pango_layout_set_auto_dir (<link linkend="PangoLayout">PangoLayout</link> *layout, <link linkend="gboolean">gboolean</link> auto_dir);</programlisting><para>Sets whether to calculate the bidirectional base directionfor the layout according to the contents of the layout;when this flag is on (the default), then paragraphs in <parameter>layout</parameter> that begin with strong right-to-left characters(Arabic and Hebrew principally), will have right-to-leftlayout, paragraphs with letters from other scripts willhave left-to-right layout. Paragraphs with only neutralcharacters get their direction from the surrounding paragraphs.</para><para>When <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>, the choice between left-to-right andright-to-left layout is done according to the base directionof the layout's <link linkend="PangoContext"><type>PangoContext</type></link>. (See <link linkend="pango-context-set-base-dir"><function>pango_context_set_base_dir()</function></link>).</para><para>When the auto-computed direction of a paragraph differs from thebase direction of the context, the interpretation of<link linkend="PANGO-ALIGN-LEFT:CAPS"><literal>PANGO_ALIGN_LEFT</literal></link> and <link linkend="PANGO-ALIGN-RIGHT:CAPS"><literal>PANGO_ALIGN_RIGHT</literal></link> are swapped.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>auto_dir</parameter> :</term><listitem><simpara> if <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, compute the bidirectional base direction from the layout's contents.</simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-layout-get-auto-dir" role="function" condition="since:1.4"/>pango_layout_get_auto_dir ()</title><indexterm role="1.4"><primary>pango_layout_get_auto_dir</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> pango_layout_get_auto_dir (<link linkend="PangoLayout">PangoLayout</link> *layout);</programlisting><para>Gets whether to calculate the bidirectional base directionfor the layout according to the contents of the layout.See <link linkend="pango-layout-set-auto-dir"><function>pango_layout_set_auto_dir()</function></link>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the bidirectional base direction is computed from the layout's contents, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise.</simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-layout-set-alignment" role="function"/>pango_layout_set_alignment ()</title><indexterm><primary>pango_layout_set_alignment</primary></indexterm><programlisting><link linkend="void">void</link> pango_layout_set_alignment (<link linkend="PangoLayout">PangoLayout</link> *layout, <link linkend="PangoAlignment">PangoAlignment</link> alignment);</programlisting><para>Sets the alignment for the layout: how partial lines arepositioned within the horizontal space available.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>alignment</parameter> :</term><listitem><simpara> the alignment</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-layout-get-alignment" role="function"/>pango_layout_get_alignment ()</title><indexterm><primary>pango_layout_get_alignment</primary></indexterm><programlisting><link linkend="PangoAlignment">PangoAlignment</link> pango_layout_get_alignment (<link linkend="PangoLayout">PangoLayout</link> *layout);</programlisting><para>Gets the alignment for the layout: how partial lines arepositioned within the horizontal space available.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the alignment.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-layout-set-tabs" role="function"/>pango_layout_set_tabs ()</title><indexterm><primary>pango_layout_set_tabs</primary></indexterm><programlisting><link linkend="void">void</link> pango_layout_set_tabs (<link linkend="PangoLayout">PangoLayout</link> *layout, <link linkend="PangoTabArray">PangoTabArray</link> *tabs);</programlisting><para>Sets the tabs to use for <parameter>layout</parameter>, overriding the default tabs(by default, tabs are every 8 spaces). If <parameter>tabs</parameter> is <link linkend="NULL:CAPS"><literal>NULL</literal></link>, the defaulttabs are reinstated. <parameter>tabs</parameter> is copied into the layout; you mustfree your copy of <parameter>tabs</parameter> yourself.</para><para></para><variablelist role="params"><varlistentry><term><parameter>layout<
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -