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

📄 atktext.html

📁 linux下图形库开发包atk-1.4.0.tar.gz
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"><title>AtkText</title><meta name="generator" content="DocBook XSL Stylesheets V1.48"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css">        .synopsis, .classsynopsis {            background: #eeeeee;            border: solid 1px #aaaaaa;            padding: 0.5em;        }        .programlisting {            background: #eeeeff;            border: solid 1px #aaaaff;            padding: 0.5em;        }        .variablelist {            padding: 4px;            margin-left: 3em;        }        .navigation {            background: #ffeeee;            border: solid 1px #ffaaaa;            margin-top: 0.5em;            margin-bottom: 0.5em;        }        .navigation a {            color: #770000;        }        .navigation a:visited {            color: #550000;        }        .navigation .title {            font-size: 200%;        }      </style><link rel="home" href="index.html" title="ATK Library Reference Manual"><link rel="up" href="atk.html" title="ATK Library"><link rel="previous" href="AtkTable.html" title="AtkTable"><link rel="next" href="AtkUtil.html" title="AtkUtil"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="AtkTable.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="atk.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">ATK Library Reference Manual</th><td><a accesskey="n" href="AtkUtil.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry"><a name="AtkText"></a><div class="titlepage"></div><div class="refnamediv"><h2>AtkText</h2><p>AtkText &#8212; The ATK interface implemented by components with text content.</p></div><div class="refsynopsisdiv"><h2><h1 class="title"><a name="id294310"></a>Synopsis</h1></h2><pre class="synopsis">struct      <a href="AtkText.html#AtkText-struct">AtkText</a>;enum        <a href="AtkText.html#AtkTextBoundary">AtkTextBoundary</a>;enum        <a href="AtkText.html#AtkTextClipType">AtkTextClipType</a>;struct      <a href="AtkText.html#AtkTextRange">AtkTextRange</a>;struct      <a href="AtkText.html#AtkTextRectangle">AtkTextRectangle</a>;struct      <a href="AtkText.html#AtkAttribute">AtkAttribute</a>;typedef     <a href="AtkText.html#AtkAttributeSet">AtkAttributeSet</a>;enum        <a href="AtkText.html#AtkTextAttribute">AtkTextAttribute</a>;gchar*      <a href="AtkText.html#atk-text-get-text">atk_text_get_text</a>               (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint start_offset,                                             gint end_offset);gunichar    <a href="AtkText.html#atk-text-get-character-at-offset">atk_text_get_character_at_offset</a>                                            (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint offset);gchar*      <a href="AtkText.html#atk-text-get-text-after-offset">atk_text_get_text_after_offset</a>  (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint offset,                                             <a href="AtkText.html#AtkTextBoundary">AtkTextBoundary</a> boundary_type,                                             gint *start_offset,                                             gint *end_offset);gchar*      <a href="AtkText.html#atk-text-get-text-at-offset">atk_text_get_text_at_offset</a>     (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint offset,                                             <a href="AtkText.html#AtkTextBoundary">AtkTextBoundary</a> boundary_type,                                             gint *start_offset,                                             gint *end_offset);gchar*      <a href="AtkText.html#atk-text-get-text-before-offset">atk_text_get_text_before_offset</a> (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint offset,                                             <a href="AtkText.html#AtkTextBoundary">AtkTextBoundary</a> boundary_type,                                             gint *start_offset,                                             gint *end_offset);gint        <a href="AtkText.html#atk-text-get-caret-offset">atk_text_get_caret_offset</a>       (<a href="AtkText.html" title="AtkText">AtkText</a> *text);void        <a href="AtkText.html#atk-text-get-character-extents">atk_text_get_character_extents</a>  (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint offset,                                             gint *x,                                             gint *y,                                             gint *width,                                             gint *height,                                             <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coords);<a href="AtkText.html#AtkAttributeSet">AtkAttributeSet</a>* <a href="AtkText.html#atk-text-get-run-attributes">atk_text_get_run_attributes</a>                                            (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint offset,                                             gint *start_offset,                                             gint *end_offset);<a href="AtkText.html#AtkAttributeSet">AtkAttributeSet</a>* <a href="AtkText.html#atk-text-get-default-attributes">atk_text_get_default_attributes</a>                                            (<a href="AtkText.html" title="AtkText">AtkText</a> *text);gint        <a href="AtkText.html#atk-text-get-character-count">atk_text_get_character_count</a>    (<a href="AtkText.html" title="AtkText">AtkText</a> *text);gint        <a href="AtkText.html#atk-text-get-offset-at-point">atk_text_get_offset_at_point</a>    (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint x,                                             gint y,                                             <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coords);<a href="AtkText.html#AtkTextRange">AtkTextRange</a>** <a href="AtkText.html#atk-text-get-bounded-ranges">atk_text_get_bounded_ranges</a>  (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             <a href="AtkText.html#AtkTextRectangle">AtkTextRectangle</a> *rect,                                             <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coord_type,                                             <a href="AtkText.html#AtkTextClipType">AtkTextClipType</a> x_clip_type,                                             <a href="AtkText.html#AtkTextClipType">AtkTextClipType</a> y_clip_type);void        <a href="AtkText.html#atk-text-get-range-extents">atk_text_get_range_extents</a>      (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint start_offset,                                             gint end_offset,                                             <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coord_type,                                             <a href="AtkText.html#AtkTextRectangle">AtkTextRectangle</a> *rect);void        <a href="AtkText.html#atk-text-free-ranges">atk_text_free_ranges</a>            (<a href="AtkText.html#AtkTextRange">AtkTextRange</a> **ranges);gint        <a href="AtkText.html#atk-text-get-n-selections">atk_text_get_n_selections</a>       (<a href="AtkText.html" title="AtkText">AtkText</a> *text);gchar*      <a href="AtkText.html#atk-text-get-selection">atk_text_get_selection</a>          (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint selection_num,                                             gint *start_offset,                                             gint *end_offset);gboolean    <a href="AtkText.html#atk-text-add-selection">atk_text_add_selection</a>          (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint start_offset,                                             gint end_offset);gboolean    <a href="AtkText.html#atk-text-remove-selection">atk_text_remove_selection</a>       (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint selection_num);gboolean    <a href="AtkText.html#atk-text-set-selection">atk_text_set_selection</a>          (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint selection_num,                                             gint start_offset,                                             gint end_offset);gboolean    <a href="AtkText.html#atk-text-set-caret-offset">atk_text_set_caret_offset</a>       (<a href="AtkText.html" title="AtkText">AtkText</a> *text,                                             gint offset);void        <a href="AtkText.html#atk-attribute-set-free">atk_attribute_set_free</a>          (<a href="AtkText.html#AtkAttributeSet">AtkAttributeSet</a> *attrib_set);<a href="AtkText.html#AtkTextAttribute">AtkTextAttribute</a> <a href="AtkText.html#atk-text-attribute-register">atk_text_attribute_register</a>                                            (const gchar *name);G_CONST_RETURN gchar* <a href="AtkText.html#atk-text-attribute-get-name">atk_text_attribute_get_name</a>                                            (<a href="AtkText.html#AtkTextAttribute">AtkTextAttribute</a> attr);<a href="AtkText.html#AtkTextAttribute">AtkTextAttribute</a> <a href="AtkText.html#atk-text-attribute-for-name">atk_text_attribute_for_name</a>                                            (const gchar *name);G_CONST_RETURN gchar* <a href="AtkText.html#atk-text-attribute-get-value">atk_text_attribute_get_value</a>                                            (<a href="AtkText.html#AtkTextAttribute">AtkTextAttribute</a> attr,                                             gint index_);</pre></div><div class="refsect1"><h2>Object Hierarchy</h2><pre class="synopsis">  GInterface   +----AtkText</pre></div><div class="refsect1"><h2>Known Implementations</h2><p>AtkText is implemented by <a href="AtkNoOpObject.html" title="AtkNoOpObject">AtkNoOpObject</a>.</p></div><div class="refsect1"><h2>Signal Prototypes</h2><pre class="synopsis">&quot;<a href="AtkText.html#AtkText-text-attributes-changed">text-attributes-changed</a>&quot;            void        user_function      (<a href="AtkText.html" title="AtkText">AtkText</a> *atktext,                                            gpointer user_data);&quot;<a href="AtkText.html#AtkText-text-caret-moved">text-caret-moved</a>&quot;            void        user_function      (<a href="AtkText.html" title="AtkText">AtkText</a> *atktext,                                            gint arg1,                                            gpointer user_data);&quot;<a href="AtkText.html#AtkText-text-changed">text-changed</a>&quot;            void        user_function      (<a href="AtkText.html" title="AtkText">AtkText</a> *atktext,                                            gint arg1,                                            gint arg2,                                            gpointer user_data);&quot;<a href="AtkText.html#AtkText-text-selection-changed">text-selection-changed</a>&quot;            void        user_function      (<a href="AtkText.html" title="AtkText">AtkText</a> *atktext,                                            gpointer user_data);</pre></div><div class="refsect1"><h2>Description</h2><p><a href="AtkText.html" title="AtkText">AtkText</a> should be implemented by AtkObjects on behalf of widgets thathave text content which is either attributed or otherwise non-trivial.AtkObjects whose text content is simple, unattributed, and very briefmay expose that content via <a href="AtkObject.html#atk-object-get-name">atk_object_get_name</a> instead; however if thetext is editable, multi-line, typically longer than three or four words,attributed, selectable, or if the object already uses the 'name' ATKproperty for other information, the <a href="AtkText.html" title="AtkText">AtkText</a> interface should be usedto expose the text content.  In the case of editable text content,

⌨️ 快捷键说明

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