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

📄 atkaction.xml

📁 The ATK library provides a set of interfaces for accessibility.By supporting the ATK interfaces, an
💻 XML
📖 第 1 页 / 共 2 页
字号:
<refentry id="AtkAction"><refmeta><refentrytitle role="top_of_page" id="AtkAction.top_of_page">AtkAction</refentrytitle><manvolnum>3</manvolnum><refmiscinfo>ATK Library</refmiscinfo></refmeta><refnamediv><refname>AtkAction</refname><refpurpose>The ATK interface provided by UI components which the user canactivate/interact with,</refpurpose><!--[<xref linkend="desc" endterm="desc.title"/>]--></refnamediv><refsynopsisdiv id="AtkAction.synopsis" role="synopsis"><title role="synopsis.title">Synopsis</title><synopsis>                    <link linkend="AtkAction-struct">AtkAction</link>;<link linkend="gboolean">gboolean</link>            <link linkend="atk-action-do-action">atk_action_do_action</link>                (<link linkend="AtkAction">AtkAction</link> *action,                                                         <link linkend="gint">gint</link> i);<link linkend="gint">gint</link>                <link linkend="atk-action-get-n-actions">atk_action_get_n_actions</link>            (<link linkend="AtkAction">AtkAction</link> *action);const <link linkend="gchar">gchar</link>*        <link linkend="atk-action-get-description">atk_action_get_description</link>          (<link linkend="AtkAction">AtkAction</link> *action,                                                         <link linkend="gint">gint</link> i);const <link linkend="gchar">gchar</link>*        <link linkend="atk-action-get-name">atk_action_get_name</link>                 (<link linkend="AtkAction">AtkAction</link> *action,                                                         <link linkend="gint">gint</link> i);const <link linkend="gchar">gchar</link>*        <link linkend="atk-action-get-localized-name">atk_action_get_localized_name</link>       (<link linkend="AtkAction">AtkAction</link> *action,                                                         <link linkend="gint">gint</link> i);const <link linkend="gchar">gchar</link>*        <link linkend="atk-action-get-keybinding">atk_action_get_keybinding</link>           (<link linkend="AtkAction">AtkAction</link> *action,                                                         <link linkend="gint">gint</link> i);<link linkend="gboolean">gboolean</link>            <link linkend="atk-action-set-description">atk_action_set_description</link>          (<link linkend="AtkAction">AtkAction</link> *action,                                                         <link linkend="gint">gint</link> i,                                                         const <link linkend="gchar">gchar</link> *desc);</synopsis></refsynopsisdiv><refsect1 id="AtkAction.object-hierarchy" role="object_hierarchy"><title role="object_hierarchy.title">Object Hierarchy</title><synopsis>  <link linkend="GInterface">GInterface</link>   +----AtkAction</synopsis></refsect1><refsect1 id="AtkAction.implementations" role="implementations"><title role="implementations.title">Known Implementations</title><para>AtkAction is implemented by <link linkend="AtkHyperlink">AtkHyperlink</link> and  <link linkend="AtkNoOpObject">AtkNoOpObject</link>.</para></refsect1><refsect1 id="AtkAction.description" role="desc"><title role="desc.title">Description</title><para><link linkend="AtkAction"><type>AtkAction</type></link> should be implemented by instances of <link linkend="AtkObject"><type>AtkObject</type></link> classes withwhich the user can interact directly, i.e. buttons, checkboxes,scrollbars,  e.g. components which are not "passive"providers of UI information.</para><para>Exceptions: when the user interaction is already covered byanother appropriate interface such as <link linkend="AtkEditableText"><type>AtkEditableText</type></link> (insert/deletetest, etc.) or <link linkend="AtkValue"><type>AtkValue</type></link> (set value) then these actions should not beexposed by <link linkend="AtkAction"><type>AtkAction</type></link> as well.  </para><para>Also note that the <link linkend="AtkAction"><type>AtkAction</type></link> API is limited in that parameters may notbe passed to the object being activated; thus the action must beself-contained and specifiable via only a single "verb".  Concreteexamples include "press", "release", "click" for buttons, "drag"(meaning initiate drag) and "drop" for drag sources and drop targets,etc.  </para><para>Though most UI interactions on components should be invocable viakeyboard as well as mouse, there will generally be a close mappingbetween "mouse actions" that are possible on a component and theAtkActions.  Where mouse and keyboard actions are redundant in effect,<link linkend="AtkAction"><type>AtkAction</type></link> should expose only one action rather than exposing redundantactions if possible.  By convention we have been using "mouse centric"terminology for <link linkend="AtkAction"><type>AtkAction</type></link> names.</para></refsect1><refsect1 id="AtkAction.details" role="details"><title role="details.title">Details</title><refsect2 id="AtkAction-struct" role="struct"><title>AtkAction</title><indexterm zone="AtkAction-struct"><primary>AtkAction</primary></indexterm><programlisting>typedef struct _AtkAction AtkAction;</programlisting><para>The AtkAction structure does not contain any fields.</para></refsect2><refsect2 id="atk-action-do-action" role="function"><title>atk_action_do_action ()</title><indexterm zone="atk-action-do-action"><primary>atk_action_do_action</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            atk_action_do_action                (<link linkend="AtkAction">AtkAction</link> *action,                                                         <link linkend="gint">gint</link> i);</programlisting><para>Perform the specified action on the object.</para><para></para><variablelist role="params"><varlistentry><term><parameter>action</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="GObject"><type>GObject</type></link> instance that implements AtkActionIface</simpara></listitem></varlistentry><varlistentry><term><parameter>i</parameter>&nbsp;:</term><listitem><simpara> the action index corresponding to the action to be performed </simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if success, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="atk-action-get-n-actions" role="function"><title>atk_action_get_n_actions ()</title><indexterm zone="atk-action-get-n-actions"><primary>atk_action_get_n_actions</primary></indexterm><programlisting><link linkend="gint">gint</link>                atk_action_get_n_actions            (<link linkend="AtkAction">AtkAction</link> *action);</programlisting><para>Gets the number of accessible actions available on the object.If there are more than one, the first one is considered the"default" action of the object.</para><para></para><variablelist role="params"><varlistentry><term><parameter>action</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="GObject"><type>GObject</type></link> instance that implements AtkActionIface</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a the number of actions, or 0 if <parameter>action</parameter> does notimplement this interface.

⌨️ 快捷键说明

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