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

📄 atktext.xml

📁 linux下图形库开发包atk-1.4.0.tar.gz
💻 XML
📖 第 1 页 / 共 5 页
字号:
</programlisting><para>A structure used to describe a text range.</para><para></para><variablelist role="struct"><varlistentry><term><link linkend="AtkTextRectangle">AtkTextRectangle</link> <structfield>bounds</structfield></term><listitem><simpara> A rectangle giving the bounds of the text range</simpara></listitem></varlistentry><varlistentry><term><link linkend="gint">gint</link> <structfield>start_offset</structfield></term><listitem><simpara> The start offset of a AtkTextRange</simpara></listitem></varlistentry><varlistentry><term><link linkend="gint">gint</link> <structfield>end_offset</structfield></term><listitem><simpara> The end offset of a AtkTextRange</simpara></listitem></varlistentry><varlistentry><term><link linkend="gchar">gchar</link> *<structfield>content</structfield></term><listitem><simpara> The text in the text range</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="AtkTextRectangle"/>struct AtkTextRectangle</title><indexterm><primary>AtkTextRectangle</primary></indexterm><programlisting>struct AtkTextRectangle {  gint x;  gint y;  gint width;  gint height;};</programlisting><para>A structure used to store a rectangle used by AtkText.</para><para></para><variablelist role="struct"><varlistentry><term><link linkend="gint">gint</link> <structfield>x</structfield></term><listitem><simpara> The horizontal coordinate of a rectangle</simpara></listitem></varlistentry><varlistentry><term><link linkend="gint">gint</link> <structfield>y</structfield></term><listitem><simpara> The vertical coordinate of a rectangle</simpara></listitem></varlistentry><varlistentry><term><link linkend="gint">gint</link> <structfield>width</structfield></term><listitem><simpara> The width of a rectangle</simpara></listitem></varlistentry><varlistentry><term><link linkend="gint">gint</link> <structfield>height</structfield></term><listitem><simpara> The height of a rectangle</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="AtkAttribute"/>struct AtkAttribute</title><indexterm><primary>AtkAttribute</primary></indexterm><programlisting>struct AtkAttribute {  gchar* name;  gchar* value;};</programlisting><para>A string name/value pair representing a text attribute.</para><para></para><variablelist role="struct"><varlistentry><term><link linkend="gchar">gchar</link> *<structfield>name</structfield></term><listitem><simpara> The attribute name. Call <link linkend="atk-text-attr-get-name"><function>atk_text_attr_get_name()</function></link></simpara></listitem></varlistentry><varlistentry><term><link linkend="gchar">gchar</link> *<structfield>value</structfield></term><listitem><simpara> the value of the attribute, represented as a string. Call <link linkend="atk-text-attr-get-value"><function>atk_text_attr_get_value()</function></link> for those which are strings.For values which are numbers, the string representation of the number is in value.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="AtkAttributeSet"/>AtkAttributeSet</title><indexterm><primary>AtkAttributeSet</primary></indexterm><programlisting>typedef GSList AtkAttributeSet;</programlisting><para>This is a singly-linked list (a <link linkend="GSList"><type>GSList</type></link>) of <link linkend="AtkAttribute"><type>AtkAttribute</type></link>. It isused by <link linkend="atk-text-get-run-attributes"><function>atk_text_get_run_attributes()</function></link>, <link linkend="atk-text-get-default-attributes"><function>atk_text_get_default_attributes()</function></link>and <link linkend="atk-editable-text-set-run-attributes"><function>atk_editable_text_set_run_attributes()</function></link></para><para></para></refsect2><refsect2><title><anchor id="AtkTextAttribute"/>enum AtkTextAttribute</title><indexterm><primary>AtkTextAttribute</primary></indexterm><programlisting>typedef enum{  ATK_TEXT_ATTR_INVALID = 0,  ATK_TEXT_ATTR_LEFT_MARGIN,  ATK_TEXT_ATTR_RIGHT_MARGIN,  ATK_TEXT_ATTR_INDENT,  ATK_TEXT_ATTR_INVISIBLE,  ATK_TEXT_ATTR_EDITABLE,  ATK_TEXT_ATTR_PIXELS_ABOVE_LINES,  ATK_TEXT_ATTR_PIXELS_BELOW_LINES,  ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP,  ATK_TEXT_ATTR_BG_FULL_HEIGHT,  ATK_TEXT_ATTR_RISE,  ATK_TEXT_ATTR_UNDERLINE,  ATK_TEXT_ATTR_STRIKETHROUGH,  ATK_TEXT_ATTR_SIZE,  ATK_TEXT_ATTR_SCALE,  ATK_TEXT_ATTR_WEIGHT,  ATK_TEXT_ATTR_LANGUAGE,  ATK_TEXT_ATTR_FAMILY_NAME,  ATK_TEXT_ATTR_BG_COLOR,  ATK_TEXT_ATTR_FG_COLOR,  ATK_TEXT_ATTR_BG_STIPPLE,  ATK_TEXT_ATTR_FG_STIPPLE,  ATK_TEXT_ATTR_WRAP_MODE,  ATK_TEXT_ATTR_DIRECTION,  ATK_TEXT_ATTR_JUSTIFICATION,  ATK_TEXT_ATTR_STRETCH,  ATK_TEXT_ATTR_VARIANT,  ATK_TEXT_ATTR_STYLE,  ATK_TEXT_ATTR_LAST_DEFINED} AtkTextAttribute;</programlisting><para>Describes the text attributes supported</para><para></para><variablelist role="enum"><varlistentry><term><literal>ATK_TEXT_ATTR_INVALID</literal></term><listitem><simpara> Invalid attribute</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_LEFT_MARGIN</literal></term><listitem><simpara> The pixel width of the left margin</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_RIGHT_MARGIN</literal></term><listitem><simpara> The pixel width of the right margin</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_INDENT</literal></term><listitem><simpara> The number of pixels that the text is indented</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_INVISIBLE</literal></term><listitem><simpara> Either "true" or "false" indicating whether text is visible or not</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_EDITABLE</literal></term><listitem><simpara> Either "true" or "false" indicating whether text is editable or not</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_PIXELS_ABOVE_LINES</literal></term><listitem><simpara> Pixels of blank space to leave above each newline-terminated line. </simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_PIXELS_BELOW_LINES</literal></term><listitem><simpara> Pixels of blank space to leave below each newline-terminated line.</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP</literal></term><listitem><simpara> Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph).</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_BG_FULL_HEIGHT</literal></term><listitem><simpara> "true" or "false" whether to make the background color for each character the height of the highest font used on the current line, or the height of the font used for the current character.</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_RISE</literal></term><listitem><simpara> Number of pixels that the characters are risen above the baseline</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_UNDERLINE</literal></term><listitem><simpara> "none", "single", "double" or "low"</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_STRIKETHROUGH</literal></term><listitem><simpara> "true" or "false" whether the text is strikethrough </simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_SIZE</literal></term><listitem><simpara> The size of the characters. </simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_SCALE</literal></term><listitem><simpara> The scale of the characters. The value is a string representation of a double </simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_WEIGHT</literal></term><listitem><simpara> The weight of the characters.</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_LANGUAGE</literal></term><listitem><simpara> The language used</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_FAMILY_NAME</literal></term><listitem><simpara> The font family name</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_BG_COLOR</literal></term><listitem><simpara> The background color. The value is an RGB value of the format "<literal>u</literal>,<literal>u</literal>,<literal>u</literal>"</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_FG_COLOR</literal></term><listitem><simpara>The foreground color. The value is an RGB value of the format "<literal>u</literal>,<literal>u</literal>,<literal>u</literal>"</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_TEXT_ATTR_BG_STIPPLE</literal></term><listitem><simpara> "true" if a <link linkend="GdkBitmap"><type>GdkBitmap</type></link> is set for stippling the background color.</simpara></listitem></varlistentry>

⌨️ 快捷键说明

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