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

📄 atkaction.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>AtkAction</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="atk.html" title="ATK Library"><link rel="next" href="AtkComponent.html" title="AtkComponent"></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="atk.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="AtkComponent.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry"><a name="AtkAction"></a><div class="titlepage"></div><div class="refnamediv"><h2>AtkAction</h2><p>AtkAction &#8212; The ATK interface provided by UI components which the user canactivate/interact with,</p></div><div class="refsynopsisdiv"><h2><h1 class="title"><a name="id247564"></a>Synopsis</h1></h2><pre class="synopsis">struct      <a href="AtkAction.html#AtkAction-struct">AtkAction</a>;gboolean    <a href="AtkAction.html#atk-action-do-action">atk_action_do_action</a>            (<a href="AtkAction.html" title="AtkAction">AtkAction</a> *action,                                             gint i);gint        <a href="AtkAction.html#atk-action-get-n-actions">atk_action_get_n_actions</a>        (<a href="AtkAction.html" title="AtkAction">AtkAction</a> *action);G_CONST_RETURN gchar* <a href="AtkAction.html#atk-action-get-description">atk_action_get_description</a>                                            (<a href="AtkAction.html" title="AtkAction">AtkAction</a> *action,                                             gint i);G_CONST_RETURN gchar* <a href="AtkAction.html#atk-action-get-name">atk_action_get_name</a>   (<a href="AtkAction.html" title="AtkAction">AtkAction</a> *action,                                             gint i);G_CONST_RETURN gchar* <a href="AtkAction.html#atk-action-get-localized-name">atk_action_get_localized_name</a>                                            (<a href="AtkAction.html" title="AtkAction">AtkAction</a> *action,                                             gint i);G_CONST_RETURN gchar* <a href="AtkAction.html#atk-action-get-keybinding">atk_action_get_keybinding</a>                                            (<a href="AtkAction.html" title="AtkAction">AtkAction</a> *action,                                             gint i);gboolean    <a href="AtkAction.html#atk-action-set-description">atk_action_set_description</a>      (<a href="AtkAction.html" title="AtkAction">AtkAction</a> *action,                                             gint i,                                             const gchar *desc);</pre></div><div class="refsect1"><h2>Object Hierarchy</h2><pre class="synopsis">  GInterface   +----AtkAction</pre></div><div class="refsect1"><h2>Known Implementations</h2><p>AtkAction is implemented by <a href="AtkNoOpObject.html" title="AtkNoOpObject">AtkNoOpObject</a> and  <a href="AtkHyperlink.html" title="AtkHyperlink">AtkHyperlink</a>.</p></div><div class="refsect1"><h2>Description</h2><p><a href="AtkAction.html" title="AtkAction">AtkAction</a> should be implemented by instances of <a href="AtkObject.html" title="AtkObject">AtkObject</a> classes withwhich the user can interact directly, i.e. buttons, checkboxes,scrollbars,  e.g. components which are not &quot;passive&quot;providers of UI information.</p><p>Exceptions: when the user interaction is already covered byanother appropriate interface such as <a href="AtkEditableText.html" title="AtkEditableText">AtkEditableText</a> (insert/deletetest, etc.) or <a href="AtkValue.html" title="AtkValue">AtkValue</a> (set value) then these actions should not beexposed by <a href="AtkAction.html" title="AtkAction">AtkAction</a> as well.  </p><p>Also note that the <a href="AtkAction.html" title="AtkAction">AtkAction</a> 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 &quot;verb&quot;.  Concreteexamples include &quot;press&quot;, &quot;release&quot;, &quot;click&quot; for buttons, &quot;drag&quot;(meaning initiate drag) and &quot;drop&quot; for drag sources and drop targets,etc.  </p><p>Though most UI interactions on components should be invocable viakeyboard as well as mouse, there will generally be a close mappingbetween &quot;mouse actions&quot; that are possible on a component and theAtkActions.  Where mouse and keyboard actions are redundant in effect,<a href="AtkAction.html" title="AtkAction">AtkAction</a> should expose only one action rather than exposing redundantactions if possible.  By convention we have been using &quot;mouse centric&quot;terminology for <a href="AtkAction.html" title="AtkAction">AtkAction</a> names.</p></div><div class="refsect1"><h2>Details</h2><div class="refsect2"><h3><a name="AtkAction-struct"></a>struct AtkAction</h3><a class="indexterm" name="id191077"></a><pre class="programlisting">struct AtkAction;</pre><p>The AtkAction structure does not contain any fields.</p></div><hr><div class="refsect2"><h3><a name="atk-action-do-action"></a>atk_action_do_action ()</h3><a class="indexterm" name="id191100"></a><pre class="programlisting">gboolean    atk_action_do_action            (<a href="AtkAction.html" title="AtkAction">AtkAction</a> *action,                                             gint i);</pre><p>Perform the specified action on the object.</p><p></p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>action</tt></i>

⌨️ 快捷键说明

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