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

📄 atkutil.xml

📁 linux下图形库开发包atk-1.4.0.tar.gz
💻 XML
📖 第 1 页 / 共 2 页
字号:
<refentry id="AtkUtil"><refmeta><refentrytitle>AtkUtil</refentrytitle><manvolnum>3</manvolnum><refmiscinfo>ATK Library</refmiscinfo></refmeta><refnamediv><refname>AtkUtil</refname><refpurpose>This is a utility class which supports the adding and removal of event listeners.</refpurpose></refnamediv><refsynopsisdiv><title>Synopsis</title><synopsis>struct      <link linkend="AtkUtil-struct">AtkUtil</link>;enum        <link linkend="AtkCoordType">AtkCoordType</link>;<link linkend="guint">guint</link>       <link linkend="atk-add-focus-tracker">atk_add_focus_tracker</link>           (<link linkend="AtkEventListener">AtkEventListener</link> focus_tracker);<link linkend="void">void</link>        <link linkend="atk-remove-focus-tracker">atk_remove_focus_tracker</link>        (<link linkend="guint">guint</link> tracker_id);<link linkend="void">void</link>        <link linkend="atk-focus-tracker-init">atk_focus_tracker_init</link>          (<link linkend="AtkEventListenerInit">AtkEventListenerInit</link> add_function);<link linkend="void">void</link>        <link linkend="atk-focus-tracker-notify">atk_focus_tracker_notify</link>        (<link linkend="AtkObject">AtkObject</link> *object);<link linkend="void">void</link>        (<link linkend="AtkEventListener">*AtkEventListener</link>)             (<link linkend="AtkObject">AtkObject</link>*);<link linkend="void">void</link>        (<link linkend="AtkEventListenerInit">*AtkEventListenerInit</link>)         (void);<link linkend="guint">guint</link>       <link linkend="atk-add-global-event-listener">atk_add_global_event_listener</link>   (<link linkend="GSignalEmissionHook">GSignalEmissionHook</link> listener,                                             const <link linkend="gchar">gchar</link> *event_type);<link linkend="void">void</link>        <link linkend="atk-remove-global-event-listener">atk_remove_global_event_listener</link>                                            (<link linkend="guint">guint</link> listener_id);struct      <link linkend="AtkKeyEventStruct">AtkKeyEventStruct</link>;enum        <link linkend="AtkKeyEventType">AtkKeyEventType</link>;<link linkend="gint">gint</link>        (<link linkend="AtkKeySnoopFunc">*AtkKeySnoopFunc</link>)              (<link linkend="AtkKeyEventStruct">AtkKeyEventStruct</link> *event,                                             <link linkend="gpointer">gpointer</link> func_data);<link linkend="guint">guint</link>       <link linkend="atk-add-key-event-listener">atk_add_key_event_listener</link>      (<link linkend="AtkKeySnoopFunc">AtkKeySnoopFunc</link> listener,                                             <link linkend="gpointer">gpointer</link> data);<link linkend="void">void</link>        <link linkend="atk-remove-key-event-listener">atk_remove_key_event_listener</link>   (<link linkend="guint">guint</link> listener_id);<link linkend="AtkObject">AtkObject</link>*  <link linkend="atk-get-root">atk_get_root</link>                    (void);G_CONST_RETURN <link linkend="gchar">gchar</link>* <link linkend="atk-get-toolkit-name">atk_get_toolkit_name</link>  (void);G_CONST_RETURN <link linkend="gchar">gchar</link>* <link linkend="atk-get-toolkit-version">atk_get_toolkit_version</link>                                            (void);</synopsis></refsynopsisdiv><refsect1><title>Object Hierarchy</title><synopsis>  <link linkend="GObject">GObject</link>   +----AtkUtil</synopsis></refsect1><refsect1><title>Description</title><para>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.</para></refsect1><refsect1><title>Details</title><refsect2><title><anchor id="AtkUtil-struct"/>struct AtkUtil</title><indexterm><primary>AtkUtil</primary></indexterm><programlisting>struct AtkUtil;</programlisting><para>The AtkObject structure should not be accessed directly.</para></refsect2><refsect2><title><anchor id="AtkCoordType"/>enum AtkCoordType</title><indexterm><primary>AtkCoordType</primary></indexterm><programlisting>typedef enum {  ATK_XY_SCREEN,  ATK_XY_WINDOW}AtkCoordType;</programlisting><para>Specifies how xy coordinates are to be interpreted. Used by functions suchas <link linkend="atk-component-get-position"><function>atk_component_get_position()</function></link> and <link linkend="atk-text-get-character-extents"><function>atk_text_get_character_extents()</function></link></para><para></para><variablelist role="enum"><varlistentry><term><literal>ATK_XY_SCREEN</literal></term><listitem><simpara> specifies xy coordinates relative to the screen</simpara></listitem></varlistentry><varlistentry><term><literal>ATK_XY_WINDOW</literal></term><listitem><simpara> specifies xy coordinates relative to the widget's top-level window</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="atk-add-focus-tracker"/>atk_add_focus_tracker ()</title><indexterm><primary>atk_add_focus_tracker</primary></indexterm><programlisting><link linkend="guint">guint</link>       atk_add_focus_tracker           (<link linkend="AtkEventListener">AtkEventListener</link> focus_tracker);</programlisting><para>Adds the specified function to the list of functions to be calledwhen an object receives focus.</para><para></para><variablelist role="params"><varlistentry><term><parameter>focus_tracker</parameter>&nbsp;:</term><listitem><simpara> Function to be added to the list of functions to be calledwhen an object receives focus.</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> added focus tracker id, or 0 on failure.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="atk-remove-focus-tracker"/>atk_remove_focus_tracker ()</title><indexterm><primary>atk_remove_focus_tracker</primary></indexterm><programlisting><link linkend="void">void</link>        atk_remove_focus_tracker        (<link linkend="guint">guint</link> tracker_id);</programlisting><para>Removes the specified focus tracker from the list of functionsto be called when any object receives focus.</para><para></para><variablelist role="params"><varlistentry><term><parameter>tracker_id</parameter>&nbsp;:</term><listitem><simpara> the id of the focus tracker to remove</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="atk-focus-tracker-init"/>atk_focus_tracker_init ()</title><indexterm><primary>atk_focus_tracker_init</primary></indexterm><programlisting><link linkend="void">void</link>        atk_focus_tracker_init          (<link linkend="AtkEventListenerInit">AtkEventListenerInit</link> add_function);</programlisting><para>Specifies the function to be called for focus tracker initialization.This function should be called by an implementation of theATK interface if any specific work needs to be done to enablefocus tracking.</para><para></para><variablelist role="params"><varlistentry><term><parameter>add_function</parameter>&nbsp;:</term><listitem><simpara> Function to be called for focus tracker initialization</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="atk-focus-tracker-notify"/>atk_focus_tracker_notify ()</title><indexterm><primary>atk_focus_tracker_notify</primary></indexterm><programlisting><link linkend="void">void</link>        atk_focus_tracker_notify        (<link linkend="AtkObject">AtkObject</link> *object);</programlisting><para>Cause the focus tracker functions which have been specified to beexecuted for the object.</para><para></para><variablelist role="params"><varlistentry><term><parameter>object</parameter>&nbsp;:</term><listitem><simpara> an <link linkend="AtkObject"><type>AtkObject</type></link></simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="AtkEventListener"/>AtkEventListener ()</title><indexterm><primary>AtkEventListener</primary></indexterm><programlisting><link linkend="void">void</link>        (*AtkEventListener)             (<link linkend="AtkObject">AtkObject</link>*);</programlisting><para>An AtkEventListener is user specified function which is called when an event,such as receiving focus, occurs. The parameter of the AtkEventListener is theAtkObject on which the event occurred.</para><variablelist role="params"><varlistentry><term><parameter>Param1</parameter>&nbsp;:</term><listitem><simpara></simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="AtkEventListenerInit"/>AtkEventListenerInit ()</title>

⌨️ 快捷键说明

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