2003-02-12 01:57:20 +00:00
<Type Name= "Action" FullName= "Atk.Action" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "auto" Value= "public interface Action : GLib.IWrapper" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public interface auto ansi abstract Action implements class GLib.IWrapper" />
2003-02-12 01:57:20 +00:00
<AssemblyInfo >
<AssemblyName > atk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 01:57:20 +00:00
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2011-11-09 16:01:51 +00:00
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
</Interfaces>
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-22 19:02:46 +00:00
<summary >
The ATK interface provided by UI components which the user can
activate/interact with, this should be implemented by instances
of <see cref= "T:Atk.Object" /> classes with which the user can interact
directly, i.e. buttons, checkboxes, scrollbars, e.g. components
which are not "passive" providers of UI information.
</summary>
<remarks >
<para >
The ATK interface provided by UI components which the user can
activate/interact with, This should be implemented by
instances of <see cref= "T:Atk.Object" /> classes with which 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 by
2004-06-24 16:16:19 +00:00
another appropriate interface such as <see cref= "T:Atk.EditableText" /> (insert/delete test, etc.) or <see cref= "T:Atk.Value" /> (set value) then these actions should not
2004-06-22 19:02:46 +00:00
be exposed by <see cref= "T:Atk.Action" /> as well.
</para>
<para >
Also note that the <see cref= "T:Atk.Action" /> API is limited in that
parameters may not be passed to the object being activated;
thus the action must be self-contained and specifiable via
only a single "verb". Concrete examples 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
via keyboard as well as mouse, there will generally be a close
mapping between "mouse actions" that are possible on a
component and the <see cref= "T:Atk.Actions" /> . Where mouse and keyboard
actions are redundant in effect, <see cref= "T:Atk.Action" /> should expose
only one action rather than exposing redundant actions if
possible. By convention we have been using "mouse centric"
terminology for <see cref= "T:Atk.Action" /> names.
</para>
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
<Members >
2011-11-09 16:01:51 +00:00
<Member MemberName= "DoAction" >
<MemberSignature Language= "C#" Value= "public bool DoAction (int i);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig newslot virtual instance bool DoAction(int32 i) cil managed" />
2003-02-12 01:57:20 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "i" Type= "System.Int32" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-22 19:02:46 +00:00
<param name= "i" > The action index corresponding to the action to be performed.</param>
2011-11-09 16:01:51 +00:00
<summary > Perform the specified action on the object.</summary>
<returns >
<see langword= "true" /> if success, <see langword= "false" /> otherwise.</returns>
2004-06-22 19:02:46 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "GetDescription" >
<MemberSignature Language= "C#" Value= "public string GetDescription (int i);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig newslot virtual instance string GetDescription(int32 i) cil managed" />
2003-02-12 01:57:20 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.String</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "i" Type= "System.Int32" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-22 19:02:46 +00:00
<param name= "i" > The action index corresponding to the action to be performed.</param>
2011-11-09 16:01:51 +00:00
<summary > Returns a description of the specified action of the object.</summary>
<returns > A description string, or 0 if action does not implement this interface.</returns>
2004-06-22 19:02:46 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "GetKeybinding" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public string GetKeybinding (int i);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig newslot virtual instance string GetKeybinding(int32 i) cil managed" />
2003-02-12 01:57:20 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "i" Type= "System.Int32" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-22 19:02:46 +00:00
<param name= "i" > The action index corresponding to the action to be performed.</param>
2011-11-09 16:01:51 +00:00
<summary > Returns a keybinding associated with this action, if one exists.</summary>
2004-06-22 19:02:46 +00:00
<returns > A string representing the keybinding, or an empty string if there is no keybinding for this action.</returns>
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "GetLocalizedName" >
<MemberSignature Language= "C#" Value= "public string GetLocalizedName (int i);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig newslot virtual instance string GetLocalizedName(int32 i) cil managed" />
2003-02-12 01:57:20 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "i" Type= "System.Int32" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-22 19:02:46 +00:00
<param name= "i" > The action index corresponding to the action to be performed.</param>
2011-11-09 16:01:51 +00:00
<summary > Returns the localized name of the specified action of the object.</summary>
2004-06-22 19:02:46 +00:00
<returns > A name string, or an empty string if action does not implement this interface.</returns>
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "GetName" >
<MemberSignature Language= "C#" Value= "public string GetName (int i);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig newslot virtual instance string GetName(int32 i) cil managed" />
2003-02-12 01:57:20 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.String</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "i" Type= "System.Int32" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-22 19:02:46 +00:00
<param name= "i" > The action index corresponding to the action to be performed.</param>
2011-11-09 16:01:51 +00:00
<summary > Returns the name of the specified action of the object.</summary>
<returns > A name string, or an empty string if action does not implement this interface.</returns>
2004-06-22 19:02:46 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "NActions" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public int NActions { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance int32 NActions" />
2003-02-12 01:57:20 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Docs >
2004-06-22 19:02:46 +00:00
<summary > Gets the number of accessible actions available on the object.</summary>
2005-05-23 20:41:51 +00:00
<value > A the number of actions, or 0 if action does not implement this interface.</value>
2004-06-22 19:02:46 +00:00
<remarks >
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.
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "SetDescription" >
<MemberSignature Language= "C#" Value= "public bool SetDescription (int i, string desc);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig newslot virtual instance bool SetDescription(int32 i, string desc) cil managed" />
2003-07-17 06:38:40 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2003-07-17 06:38:40 +00:00
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "i" Type= "System.Int32" />
2011-11-09 16:01:51 +00:00
<Parameter Name= "desc" Type= "System.String" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-07-17 06:38:40 +00:00
<Docs >
2004-06-22 19:02:46 +00:00
<param name= "i" > The action index corresponding to the action to be performed.</param>
2011-11-09 16:01:51 +00:00
<param name= "desc" > The description to be assigned to this action.</param>
<summary > Sets a description of the specified action of the object.</summary>
<returns > A <see cref= "T:System.Boolean" /> representing if the description was successfully set.</returns>
2004-06-22 19:02:46 +00:00
<remarks />
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
2003-02-12 01:57:20 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>