2003-07-17 06:35:10 +00:00
<Type Name= "Accelerator" FullName= "Gtk.Accelerator" >
<TypeSignature Language= "C#" Value= "public class Accelerator" Maintainer= "auto" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit Accelerator extends System.Object" />
2003-07-17 06:35:10 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-07-17 06:35:10 +00:00
</AssemblyInfo>
<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>
<Base >
<BaseTypeName > System.Object</BaseTypeName>
</Base>
<Interfaces />
2011-11-09 16:01:51 +00:00
<Docs >
<summary > An accelerator.</summary>
<remarks > TODO: explain the relationship between this class and <see cref= "T:Gtk.Accel" /> .</remarks>
</Docs>
2003-07-17 06:35:10 +00:00
<Members >
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Accelerator ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
<summary > Basic constructor.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName= "DefaultModMask" >
<MemberSignature Language= "C#" Value= "public static Gdk.ModifierType DefaultModMask { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property valuetype Gdk.ModifierType DefaultModMask" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.ModifierType</ReturnType>
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
<summary > A mask to specify the default modifier key(s).</summary>
<value > a <see cref= "T:Gdk.ModifierType" /> </value>
<remarks />
</Docs>
</Member>
<Member MemberName= "GetLabel" >
<MemberSignature Language= "C#" Value= "public static string GetLabel (uint accelerator_key, Gdk.ModifierType accelerator_mods);" />
<MemberSignature Language= "ILAsm" Value= ".method public static hidebysig string GetLabel(unsigned int32 accelerator_key, valuetype Gdk.ModifierType accelerator_mods) cil managed" />
2003-07-17 06:35:10 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.String</ReturnType>
2003-07-17 06:35:10 +00:00
</ReturnValue>
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "accelerator_key" Type= "System.UInt32" />
<Parameter Name= "accelerator_mods" Type= "Gdk.ModifierType" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-07-17 06:35:10 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "accelerator_key" > A <see cref= "T:System.UInt32" /> representing the accelerator keyval.</param>
<param name= "accelerator_mods" > A <see cref= "T:System.Int32" /> representing the accelerator modifier mask.</param>
<summary > Converts an accelerator keyval and modifier mask into a string which can be used to represent the accelerator to the user.</summary>
<returns > A newly-allocated string representing the accelerator.</returns>
2004-11-05 21:25:40 +00:00
<remarks />
2011-11-09 16:01:51 +00:00
<since version= "Gtk# 2.6" />
2003-07-17 06:35:10 +00:00
</Docs>
</Member>
<Member MemberName= "Name" >
<MemberSignature Language= "C#" Value= "public static string Name (uint accelerator_key, Gdk.ModifierType accelerator_mods);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public static hidebysig string Name(unsigned int32 accelerator_key, valuetype Gdk.ModifierType accelerator_mods) cil managed" />
2003-07-17 06:35:10 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "accelerator_key" Type= "System.UInt32" />
<Parameter Name= "accelerator_mods" Type= "Gdk.ModifierType" />
</Parameters>
2003-07-17 06:35:10 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "accelerator_key" > a <see cref= "T:System.UInt32" /> </param>
<param name= "accelerator_mods" > a <see cref= "T:Gdk.ModifierType" /> </param>
2004-09-13 05:48:17 +00:00
<summary > Converts an accelerator keyval and modifier mask into
2004-11-05 21:25:40 +00:00
a string parseable by <see cref= "M:Gtk.Accelerator.Parse" /> .
For example, if you pass in <see cref= "F:Gdk.Key.Q" /> and
<see cref= "F:Gdk.ModifierType.ControlMask" /> ,
2004-09-13 05:48:17 +00:00
this function returns "< Control> q".
</summary>
2003-07-17 06:35:10 +00:00
<returns > a <see cref= "T:System.String" /> </returns>
2004-09-13 05:48:17 +00:00
<remarks > In Gtk+, the return value must be freed by the caller, but not in Gtk#.</remarks>
2003-07-17 06:35:10 +00:00
</Docs>
</Member>
2003-10-28 00:48:23 +00:00
<Member MemberName= "Parse" >
<MemberSignature Language= "C#" Value= "public static void Parse (string accelerator, out uint accelerator_key, out Gdk.ModifierType accelerator_mods);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public static hidebysig void Parse(string accelerator, unsigned int32 accelerator_key, valuetype Gdk.ModifierType accelerator_mods) cil managed" />
2003-10-28 00:48:23 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "accelerator" Type= "System.String" />
<Parameter Name= "accelerator_key" Type= "System.UInt32&" RefType= "out" />
<Parameter Name= "accelerator_mods" Type= "Gdk.ModifierType&" RefType= "out" />
</Parameters>
<Docs >
<param name= "accelerator" > a <see cref= "T:System.String" /> </param>
2004-08-28 02:40:04 +00:00
<param name= "accelerator_key" > a <see cref= "T:System.UInt32&" /> , thekey to map to.</param>
<param name= "accelerator_mods" > a <see cref= "T:Gdk.ModifierType&" /> to fill with data.</param>
2011-11-09 16:01:51 +00:00
<summary > Parses a string representing an accelerator. The format looks like "< Control> a" or "< Shift> < Alt> F1" or "< Release> z" (the last one is for key release). The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "< Ctl> " and "< Ctrl> ".</summary>
2004-11-05 21:25:40 +00:00
<remarks > If the parse fails, <paramref name= "accelerator_key" /> and <paramref name= "accelerator_mods" /> will be set to 0 (zero).</remarks>
2003-10-28 00:48:23 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Valid" >
<MemberSignature Language= "C#" Value= "public static bool Valid (uint keyval, Gdk.ModifierType modifiers);" />
<MemberSignature Language= "ILAsm" Value= ".method public static hidebysig bool Valid(unsigned int32 keyval, valuetype Gdk.ModifierType modifiers) cil managed" />
2005-04-21 17:10:54 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2005-04-21 17:10:54 +00:00
</ReturnValue>
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "keyval" Type= "System.UInt32" />
<Parameter Name= "modifiers" Type= "Gdk.ModifierType" />
2005-04-21 17:10:54 +00:00
</Parameters>
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "keyval" > a <see cref= "T:System.UInt32" /> , see <see cref= "Gkd.Key" /> for useful values</param>
<param name= "modifiers" > a <see cref= "T:Gdk.ModifierType" /> </param>
<summary > Determines whether a given keyval and modifier mask constitute
a valid keyboard accelerator. For example, <see cref= "F:Gdk.Key.A" />
keyval plus <see cref= "F:Gdk.ModifierType.ControlMask" /> is valid;
this is a "Ctrl+a" accelerator. However, you can't use the
<see cref= "F:Gdk.Control_L" /> keyval as an accelerator.</summary>
<returns > a <see cref= "T:System.Boolean" /> </returns>
2006-03-22 06:39:01 +00:00
<remarks />
2005-04-21 17:10:54 +00:00
</Docs>
</Member>
2003-07-17 06:35:10 +00:00
</Members>
2005-06-17 18:43:30 +00:00
</Type>