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

📄 atkutil.html

📁 linux下图形库开发包atk-1.4.0.tar.gz
💻 HTML
字号:
<!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>AtkUtil</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="AtkText.html" title="AtkText"><link rel="next" href="AtkValue.html" title="AtkValue"></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="AtkText.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="AtkValue.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry"><a name="AtkUtil"></a><div class="titlepage"></div><div class="refnamediv"><h2>AtkUtil</h2><p>AtkUtil &#8212; This is a utility class which supports the adding and removal of event listeners.</p></div><div class="refsynopsisdiv"><h2><h1 class="title"><a name="id301921"></a>Synopsis</h1></h2><pre class="synopsis">struct      <a href="AtkUtil.html#AtkUtil-struct">AtkUtil</a>;enum        <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a>;guint       <a href="AtkUtil.html#atk-add-focus-tracker">atk_add_focus_tracker</a>           (<a href="AtkUtil.html#AtkEventListener">AtkEventListener</a> focus_tracker);void        <a href="AtkUtil.html#atk-remove-focus-tracker">atk_remove_focus_tracker</a>        (guint tracker_id);void        <a href="AtkUtil.html#atk-focus-tracker-init">atk_focus_tracker_init</a>          (<a href="AtkUtil.html#AtkEventListenerInit">AtkEventListenerInit</a> add_function);void        <a href="AtkUtil.html#atk-focus-tracker-notify">atk_focus_tracker_notify</a>        (<a href="AtkObject.html" title="AtkObject">AtkObject</a> *object);void        (<a href="AtkUtil.html#AtkEventListener">*AtkEventListener</a>)             (<a href="AtkObject.html" title="AtkObject">AtkObject</a>*);void        (<a href="AtkUtil.html#AtkEventListenerInit">*AtkEventListenerInit</a>)         (void);guint       <a href="AtkUtil.html#atk-add-global-event-listener">atk_add_global_event_listener</a>   (GSignalEmissionHook listener,                                             const gchar *event_type);void        <a href="AtkUtil.html#atk-remove-global-event-listener">atk_remove_global_event_listener</a>                                            (guint listener_id);struct      <a href="AtkUtil.html#AtkKeyEventStruct">AtkKeyEventStruct</a>;enum        <a href="AtkUtil.html#AtkKeyEventType">AtkKeyEventType</a>;gint        (<a href="AtkUtil.html#AtkKeySnoopFunc">*AtkKeySnoopFunc</a>)              (<a href="AtkUtil.html#AtkKeyEventStruct">AtkKeyEventStruct</a> *event,                                             gpointer func_data);guint       <a href="AtkUtil.html#atk-add-key-event-listener">atk_add_key_event_listener</a>      (<a href="AtkUtil.html#AtkKeySnoopFunc">AtkKeySnoopFunc</a> listener,                                             gpointer data);void        <a href="AtkUtil.html#atk-remove-key-event-listener">atk_remove_key_event_listener</a>   (guint listener_id);<a href="AtkObject.html" title="AtkObject">AtkObject</a>*  <a href="AtkUtil.html#atk-get-root">atk_get_root</a>                    (void);G_CONST_RETURN gchar* <a href="AtkUtil.html#atk-get-toolkit-name">atk_get_toolkit_name</a>  (void);G_CONST_RETURN gchar* <a href="AtkUtil.html#atk-get-toolkit-version">atk_get_toolkit_version</a>                                            (void);</pre></div><div class="refsect1"><h2>Object Hierarchy</h2><pre class="synopsis">  GObject   +----AtkUtil</pre></div><div class="refsect1"><h2>Description</h2><p>This is a utility class which supports the adding and removal of event listeners. The adding and removing of the listeners must be done in the same thread. The file also contains a number of utility functions.</p></div><div class="refsect1"><h2>Details</h2><div class="refsect2"><h3><a name="AtkUtil-struct"></a>struct AtkUtil</h3><a class="indexterm" name="id311052"></a><pre class="programlisting">struct AtkUtil;</pre><p>The AtkObject structure should not be accessed directly.</p></div><hr><div class="refsect2"><h3><a name="AtkCoordType"></a>enum AtkCoordType</h3><a class="indexterm" name="id311079"></a><pre class="programlisting">typedef enum {  ATK_XY_SCREEN,  ATK_XY_WINDOW}AtkCoordType;</pre><p>Specifies how xy coordinates are to be interpreted. Used by functions suchas <a href="AtkComponent.html#atk-component-get-position"><tt>atk_component_get_position()</tt></a> and <a href="AtkText.html#atk-text-get-character-extents"><tt>atk_text_get_character_extents()</tt></a></p><p></p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><tt>ATK_XY_SCREEN</tt></span></td><td> specifies xy coordinates relative to the screen</td></tr><tr><td><span class="term"><tt>ATK_XY_WINDOW</tt></span></td><td> specifies xy coordinates relative to the widget's top-level window</td></tr></tbody></table></div></div><hr><div class="refsect2"><h3><a name="atk-add-focus-tracker"></a>atk_add_focus_tracker ()</h3><a class="indexterm" name="id311237"></a><pre class="programlisting">guint       atk_add_focus_tracker           (<a href="AtkUtil.html#AtkEventListener">AtkEventListener</a> focus_tracker);</pre><p>Adds the specified function to the list of functions to be calledwhen an object receives focus.</p><p></p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>focus_tracker</tt></i>

⌨️ 快捷键说明

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