2003-02-12 01:57:20 +00:00
<Type Name= "Keymap" FullName= "Gdk.Keymap" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "ct" Value= "public class Keymap : GLib.Object" />
2003-02-12 01:57:20 +00:00
<AssemblyInfo >
<AssemblyName > gdk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2005-06-17 18:43:30 +00:00
<AssemblyVersion > 2.6.0.0</AssemblyVersion>
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>
2003-02-12 01:57:20 +00:00
<Docs >
2003-02-18 23:03:56 +00:00
<summary > Object for keyboard code manipulation</summary>
<remarks >
2003-02-23 07:26:30 +00:00
<para >
2003-02-18 23:03:56 +00:00
Defines translations from keyboard states to a `keyval`. Two phase translation: determine keyboard group and level
for keyboard state, then lookup the keycode/group/level triplet in the keymap and get the corresponding keyval.
Keycode is the hardware/keyboard code for that key. Keygroup is used for language and horizontal tracking [ "group 1" is english,
"group 2" is hebrew]. Keylevel is used to track letter case/alternate representation and vertical movement [ level 0 is "a",
level 1 is "A" ; alternately, level 0 is "1" and level 1 is "!" ].
</para>
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
<Base >
<BaseTypeName > GLib.Object</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
<Members >
<Member MemberName= "LookupKey" >
<MemberSignature Language= "C#" Value= "public uint LookupKey (Gdk.KeymapKey key);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "key" Type= "Gdk.KeymapKey" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2003-02-18 23:03:56 +00:00
<summary >
Looks up a keyval mapped to a keycode/group/level triplet. If no keyval is bound to `key`, the method returns 0.
</summary>
<param name= "key" > An object of type 'Gdk.KeymapKey', initalized keycode/group/level triplet.</param>
<returns > An object of type 'uint', a keyval or 0 if none was found.</returns>
<remarks >
None
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Keymap (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
2003-02-18 23:03:56 +00:00
<remarks >
2003-02-23 07:26:30 +00:00
<para > This is an internal constructor, and should not be used by user code.</para>
2003-02-18 23:03:56 +00:00
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "Default" >
<MemberSignature Language= "C#" Value= "public static Gdk.Keymap Default { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Keymap</ReturnType>
</ReturnValue>
<Docs >
<summary > To be added</summary>
2005-05-23 20:41:51 +00:00
<value > To be added: an object of type 'Gdk.Keymap'</value>
2003-02-12 01:57:20 +00:00
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "Direction" >
<MemberSignature Language= "C#" Value= "public Pango.Direction Direction { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Pango.Direction</ReturnType>
</ReturnValue>
<Docs >
2003-02-18 23:03:56 +00:00
<summary >
Member that represents the current direction of the keymap.
</summary>
2005-05-23 20:41:51 +00:00
<value > An object of type 'Pango.Direction', current keymap direction.</value>
2003-02-18 23:03:56 +00:00
<remarks >
None
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "DirectionChanged" >
<MemberSignature Language= "C#" Value= "public event EventHandler DirectionChanged;" />
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
2003-02-12 01:57:20 +00:00
<Parameters />
<Docs >
2003-02-18 23:03:56 +00:00
<summary >
2005-09-25 17:33:45 +00:00
An event handler that raised when the direction of a keymap has been changed.
2003-02-18 23:03:56 +00:00
</summary>
<remarks >
None
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Signal(CName="direction_changed")</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-07-17 06:38:40 +00:00
<Member MemberName= "KeysChanged" >
<MemberSignature Language= "C#" Value= "public event EventHandler KeysChanged;" />
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
2003-07-17 06:38:40 +00:00
<Parameters />
<Docs >
<summary > To be added</summary>
<remarks > To be added</remarks>
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Signal(CName="keys_changed")</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-07-17 06:38:40 +00:00
<Member MemberName= "GetForDisplay" >
<MemberSignature Language= "C#" Value= "public static Gdk.Keymap GetForDisplay (Gdk.Display display);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.Keymap</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "display" Type= "Gdk.Display" />
</Parameters>
2003-07-17 06:38:40 +00:00
<Docs >
<summary > To be added</summary>
<param name= "display" > a <see cref= "T:Gdk.Display" /> </param>
<returns > a <see cref= "T:Gdk.Keymap" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
2003-10-28 00:48:23 +00:00
<Member MemberName= "TranslateKeyboardState" >
<MemberSignature Language= "C#" Value= "public bool TranslateKeyboardState (uint hardware_keycode, Gdk.ModifierType state, int group, out uint keyval, out int effective_group, out int level, out Gdk.ModifierType consumed_modifiers);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "hardware_keycode" Type= "System.UInt32" />
<Parameter Name= "state" Type= "Gdk.ModifierType" />
<Parameter Name= "group" Type= "System.Int32" />
<Parameter Name= "keyval" Type= "System.UInt32&" RefType= "out" />
<Parameter Name= "effective_group" Type= "System.Int32&" RefType= "out" />
<Parameter Name= "level" Type= "System.Int32&" RefType= "out" />
<Parameter Name= "consumed_modifiers" Type= "Gdk.ModifierType&" RefType= "out" />
</Parameters>
<Docs >
<summary > Translates the contents of a Gdk.KeymapKey into a keyval/group/level. Modifiers affecting the translation are returned
in `consumed_modifiers`. `effective_group` is the group used in translation. Key level is determined by `state`.</summary>
<param name= "hardware_keycode" > An object of type <see cref= "T:System.UInt32" /> , a keyboard code.</param>
<param name= "state" > An object of type <see cref= "T:Gdk.ModifierType" /> , a modifier state.</param>
<param name= "group" > An object of type <see cref= "T:System.Int32" /> , active keyboard group.</param>
<param name= "keyval" > An object of type <see cref= "T:System.UInt32" /> , return reference for `keyval`.</param>
<param name= "effective_group" > An object of type <see cref= "T:System.Int32" /> , return reference for `effective group`.</param>
<param name= "level" > An object of type <see cref= "T:System.Int32" /> , return reference for the new level.</param>
<param name= "consumed_modifiers" > An object of type <see cref= "T:Gdk.ModifierType" /> , return reference for modifiers used to determine group/level.</param>
<returns > An object of type <see cref= "T:System.Boolean" /> , return <see langword= "true" /> if keys were found and returned.</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-10-28 00:48:23 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:GLib.GType" /> </value>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gdk.Keymap" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnDirectionChanged" >
<MemberSignature Language= "C#" Value= "protected virtual void OnDirectionChanged ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gdk.Keymap.DirectionChanged" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gdk.Keymap.DirectionChanged" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnKeysChanged" >
<MemberSignature Language= "C#" Value= "protected virtual void OnKeysChanged ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gdk.Keymap.KeysChanged" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gdk.Keymap.KeysChanged" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected Keymap (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<Docs >
<summary > Internal constructor</summary>
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
<remarks > This is a constructor used by derivative types of <see cref= "T:Gdk.Keymap" /> that would have their own GLib.GType assigned to it. This is not typically used by C# code.</remarks>
2003-10-28 00:48:23 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2004-06-01 18:05:26 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected Keymap ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
<summary > To be added</summary>
<remarks > To be added</remarks>
</Docs>
</Member>
2004-09-14 13:42:09 +00:00
<Member MemberName= "GetEntriesForKeycode" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public void GetEntriesForKeycode (uint hardware_keycode, out Gdk.KeymapKey[] keys, out uint[] keyvals);" />
2004-09-14 13:42:09 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "hardware_keycode" Type= "System.UInt32" />
<Parameter Name= "keys" Type= "Gdk.KeymapKey[]&" RefType= "out" />
<Parameter Name= "keyvals" Type= "System.UInt32[]&" RefType= "out" />
</Parameters>
<Docs >
<summary > Stores in <paramref name= "keys" /> a reference to a list of the keys bound to <paramref name= "hardware_keycode" /> . The nth Gdk.KeymapKey in <paramref name= "keys" /> is associated with the nth keyval in <paramref name= "keyvals" /> . When a keycode is pressed by the user, the keyval from <paramref name= "keys" /> is selected.</summary>
<param name= "hardware_keycode" > An object of type <see cref= "T:System.UInt32" /> , a keyboard code.</param>
<param name= "keys" > An object of type <see cref= "T:Gdk.KeymapKey" /> , return reference for the list of keys.</param>
<param name= "keyvals" > An object of type <see cref= "T:System.UInt32" /> , return reference for the list of corresponding keyvals for <paramref name= "keys" /> </param>
<remarks >
</remarks>
</Docs>
</Member>
<Member MemberName= "GetEntriesForKeyval" >
<MemberSignature Language= "C#" Value= "public Gdk.KeymapKey[] GetEntriesForKeyval (uint keyval);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.KeymapKey[]</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "keyval" Type= "System.UInt32" />
</Parameters>
<Docs >
<summary > Gets a list of keycode/group/level combinations that generate a <paramref name= "keyval" /> .</summary>
<param name= "keyval" > An object of type <see cref= "T:System.UInt32" /> , such as GDK_a, GDK_up, GDK_RETURN, etc.</param>
<returns > the list of key sequences.</returns>
<remarks >
</remarks>
</Docs>
</Member>
2003-02-12 01:57:20 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>