|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/share/gtk-doc/html/gdk/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Key Values</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GDK Reference Manual">
<link rel="up" href="reference.html" title="API Reference">
<link rel="prev" href="gdk-Event-Structures.html" title="Event Structures">
<link rel="next" href="gdk-Selections.html" title="Selections">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="reference" href="reference.html" title="API Reference">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gdk-Event-Structures.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="reference.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">GDK Reference Manual</th>
<td><a accesskey="n" href="gdk-Selections.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3090590" class="shortcut">Top</a>
 | 
<a href="#id3091225" class="shortcut">Description</a>
 | 
<a href="#id3091118" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3091143" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gdk-Keyboard-Handling"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3090590"></a><span class="refentrytitle">Key Values</span>
</h2>
<p>Key Values — Functions for manipulating keyboard codes</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<a name="GdkKeymap"></a><pre class="synopsis">
#include <gdk/gdk.h>
<a href="gdk-Keyboard-Handling.html#GdkKeymap-struct">GdkKeymap</a>;
<a href="gdk-Keyboard-Handling.html#GdkKeymapKey">GdkKeymapKey</a>;
<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a>* <a href="gdk-Keyboard-Handling.html#gdk-keymap-get-default">gdk_keymap_get_default</a> (void);
<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a>* <a href="gdk-Keyboard-Handling.html#gdk-keymap-get-for-display">gdk_keymap_get_for_display</a> (<a href="GdkDisplay.html" title="GdkDisplay">GdkDisplay</a> *display);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a href="gdk-Keyboard-Handling.html#gdk-keymap-lookup-key">gdk_keymap_lookup_key</a> (<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
const <a href="gdk-Keyboard-Handling.html#GdkKeymapKey">GdkKeymapKey</a> *key);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="gdk-Keyboard-Handling.html#gdk-keymap-translate-keyboard-state">gdk_keymap_translate_keyboard_state</a>
(<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> hardware_keycode,
<a href="gdk-Windows.html#GdkModifierType">GdkModifierType</a> state,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> group,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *keyval,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *effective_group,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *level,
<a href="gdk-Windows.html#GdkModifierType">GdkModifierType</a> *consumed_modifiers);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="gdk-Keyboard-Handling.html#gdk-keymap-get-entries-for-keyval">gdk_keymap_get_entries_for_keyval</a>
(<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval,
<a href="gdk-Keyboard-Handling.html#GdkKeymapKey">GdkKeymapKey</a> **keys,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_keys);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="gdk-Keyboard-Handling.html#gdk-keymap-get-entries-for-keycode">gdk_keymap_get_entries_for_keycode</a>
(<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> hardware_keycode,
<a href="gdk-Keyboard-Handling.html#GdkKeymapKey">GdkKeymapKey</a> **keys,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> **keyvals,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_entries);
<a
href="../pango/pango-Text-Processing.html#PangoDirection"
>PangoDirection</a> <a href="gdk-Keyboard-Handling.html#gdk-keymap-get-direction">gdk_keymap_get_direction</a> (<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a href="gdk-Keyboard-Handling.html#gdk-keyval-name">gdk_keyval_name</a> (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a href="gdk-Keyboard-Handling.html#gdk-keyval-from-name">gdk_keyval_from_name</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *keyval_name);
void <a href="gdk-Keyboard-Handling.html#gdk-keyval-convert-case">gdk_keyval_convert_case</a> (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> symbol,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *lower,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *upper);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a href="gdk-Keyboard-Handling.html#gdk-keyval-to-upper">gdk_keyval_to_upper</a> (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a href="gdk-Keyboard-Handling.html#gdk-keyval-to-lower">gdk_keyval_to_lower</a> (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="gdk-Keyboard-Handling.html#gdk-keyval-is-upper">gdk_keyval_is_upper</a> (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="gdk-Keyboard-Handling.html#gdk-keyval-is-lower">gdk_keyval_is_lower</a> (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);
<a
href="../glib/glib-Basic-Types.html#guint32"
>guint32</a> <a href="gdk-Keyboard-Handling.html#gdk-keyval-to-unicode">gdk_keyval_to_unicode</a> (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a href="gdk-Keyboard-Handling.html#gdk-unicode-to-keyval">gdk_unicode_to_keyval</a> (<a
href="../glib/glib-Basic-Types.html#guint32"
>guint32</a> wc);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3091118"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----GdkKeymap
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3091143"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="gdk-Keyboard-Handling.html#GdkKeymap-direction-changed">direction-changed</a>"
void user_function (<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="gdk-Keyboard-Handling.html#GdkKeymap-keys-changed">keys-changed</a>"
void user_function (<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3091225"></a><h2>Description</h2>
<p>
Key values are the codes which are sent whenever a key is pressed or released.
They appear in the <em class="structfield"><code>keyval</code></em> field of the
<a href="gdk-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> structure, which is passed to signal handlers for the
"key-press-event" and "key-release-event" signals.
The complete list of key values can be found in the <code class="filename"><gdk/gdkkeysyms.h></code>
header file. <code class="filename"><gdk/gdkkeysyms.h></code> is not included in <code class="filename"><gtk/gtk.h></code>,
it must be included independently, because the file is quite large.
</p>
<p>
Key values can be converted into a string representation using
<a href="gdk-Keyboard-Handling.html#gdk-keyval-name"><code class="function">gdk_keyval_name()</code></a>. The reverse function, converting a string to a key value,
is provided by <a href="gdk-Keyboard-Handling.html#gdk-keyval-from-name"><code class="function">gdk_keyval_from_name()</code></a>.
</p>
<p>
The case of key values can be determined using <a href="gdk-Keyboard-Handling.html#gdk-keyval-is-upper"><code class="function">gdk_keyval_is_upper()</code></a> and
<a href="gdk-Keyboard-Handling.html#gdk-keyval-is-lower"><code class="function">gdk_keyval_is_lower()</code></a>. Key values can be converted to upper or lower case
using <a href="gdk-Keyboard-Handling.html#gdk-keyval-to-upper"><code class="function">gdk_keyval_to_upper()</code></a> and <a href="gdk-Keyboard-Handling.html#gdk-keyval-to-lower"><code class="function">gdk_keyval_to_lower()</code></a>.
</p>
<p>
When it makes sense, key values can be converted to and from
Unicode characters with <a href="gdk-Keyboard-Handling.html#gdk-keyval-to-unicode"><code class="function">gdk_keyval_to_unicode()</code></a> and <a href="gdk-Keyboard-Handling.html#gdk-unicode-to-keyval"><code class="function">gdk_unicode_to_keyval()</code></a>.
</p>
<p>
One <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> object exists for each user display. <a href="gdk-Keyboard-Handling.html#gdk-keymap-get-default"><code class="function">gdk_keymap_get_default()</code></a>
returns the <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> for the default display; to obtain keymaps for other
displays, use <a href="gdk-Keyboard-Handling.html#gdk-keymap-get-for-display"><code class="function">gdk_keymap_get_for_display()</code></a>. A keymap
is a mapping from <a href="gdk-Keyboard-Handling.html#GdkKeymapKey"><span class="type">GdkKeymapKey</span></a> to key values. You can think of a <a href="gdk-Keyboard-Handling.html#GdkKeymapKey"><span class="type">GdkKeymapKey</span></a>
as a representation of a symbol printed on a physical keyboard key. That is, it
contains three pieces of information. First, it contains the hardware keycode;
this is an identifying number for a physical key. Second, it contains the
<em class="firstterm">level</em> of the key. The level indicates which symbol on the
key will be used, in a vertical direction. So on a standard US keyboard, the key
with the number "1" on it also has the exclamation point ("!") character on
it. The level indicates whether to use the "1" or the "!" symbol. The letter
keys are considered to have a lowercase letter at level 0, and an uppercase
letter at level 1, though only the uppercase letter is printed. Third, the
<a href="gdk-Keyboard-Handling.html#GdkKeymapKey"><span class="type">GdkKeymapKey</span></a> contains a group; groups are not used on standard US keyboards,
but are used in many other countries. On a keyboard with groups, there can be 3
or 4 symbols printed on a single key. The group indicates movement in a
horizontal direction. Usually groups are used for two different languages. In
group 0, a key might have two English characters, and in group 1 it might have
two Hebrew characters. The Hebrew characters will be printed on the key next to
the English characters.
</p>
<p>
In order to use a keymap to interpret a key event, it's necessary to first
convert the keyboard state into an effective group and level. This is done via a
set of rules that varies widely according to type of keyboard and user
configuration. The function <a href="gdk-Keyboard-Handling.html#gdk-keymap-translate-keyboard-state"><code class="function">gdk_keymap_translate_keyboard_state()</code></a> accepts a
keyboard state -- consisting of hardware keycode pressed, active modifiers, and
active group -- applies the appropriate rules, and returns the group/level to be
used to index the keymap, along with the modifiers which did not affect the
group and level. i.e. it returns "unconsumed modifiers." The keyboard group may
differ from the effective group used for keymap lookups because some keys don't
have multiple groups - e.g. the Enter key is always in group 0 regardless of
keyboard state.
</p>
<p>
Note that <a href="gdk-Keyboard-Handling.html#gdk-keymap-translate-keyboard-state"><code class="function">gdk_keymap_translate_keyboard_state()</code></a> also returns the keyval, i.e. it
goes ahead and performs the keymap lookup in addition to telling you which
effective group/level values were used for the lookup. <a href="gdk-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> already
contains this keyval, however, so you don't normally need to call
<a href="gdk-Keyboard-Handling.html#gdk-keymap-translate-keyboard-state"><code class="function">gdk_keymap_translate_keyboard_state()</code></a> just to get the keyval.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3091536"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3091546"></a><h3>
<a name="GdkKeymap-struct"></a>GdkKeymap</h3>
<a class="indexterm" name="id3091559"></a><pre class="programlisting">typedef struct _GdkKeymap GdkKeymap;</pre>
<p>
A <span class="structname">GdkKeymap</span> defines the translation from keyboard state
(including a hardware key, a modifier mask, and active keyboard group)
to a keyval. This translation has two phases. The first phase is
to determine the effective keyboard group and level for the keyboard
state; the second phase is to look up the keycode/group/level triplet
in the keymap and see what keyval it corresponds to.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3091584"></a><h3>
<a name="GdkKeymapKey"></a>GdkKeymapKey</h3>
<a class="indexterm" name="id3091597"></a><pre class="programlisting">typedef struct {
guint keycode;
gint group;
gint level;
} GdkKeymapKey;
</pre>
<p>
A <span class="structname">GdkKeymapKey</span> is a hardware key that can
be mapped to a keyval.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <em class="structfield"><code>keycode</code></em>;</span></td>
<td>the hardware keycode. This is an identifying number for a
physical key.
</td>
</tr>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <em class="structfield"><code>group</code></em>;</span></td>
<td>indicates movement in a horizontal direction. Usually groups are used
for two different languages. In group 0, a key might have two English
characters, and in group 1 it might have two Hebrew characters. The Hebrew
characters will be printed on the key next to the English characters.
</td>
</tr>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <em class="structfield"><code>level</code></em>;</span></td>
<td>indicates which symbol on the key will be used, in a vertical direction. So on a standard US keyboard, the key with the number "1" on it also has the
exclamation point ("!") character on it. The level indicates whether to use
the "1" or the "!" symbol. The letter keys are considered to have a lowercase
letter at level 0, and an uppercase letter at level 1, though only the
uppercase letter is printed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3091696"></a><h3>
<a name="gdk-keymap-get-default"></a>gdk_keymap_get_default ()</h3>
<a class="indexterm" name="id3091709"></a><pre class="programlisting"><a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a>* gdk_keymap_get_default (void);</pre>
<p>
Returns the <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> attached to the default display.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> attached to the default display.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3091765"></a><h3>
<a name="gdk-keymap-get-for-display"></a>gdk_keymap_get_for_display ()</h3>
<a class="indexterm" name="id3091781"></a><pre class="programlisting"><a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a>* gdk_keymap_get_for_display (<a href="GdkDisplay.html" title="GdkDisplay">GdkDisplay</a> *display);</pre>
<p>
Returns the <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> attached to <em class="parameter"><code>display</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>display</code></em> :</span></td>
<td> the <a href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> attached to <em class="parameter"><code>display</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3091881"></a><h3>
<a name="gdk-keymap-lookup-key"></a>gdk_keymap_lookup_key ()</h3>
<a class="indexterm" name="id3091894"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> gdk_keymap_lookup_key (<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
const <a href="gdk-Keyboard-Handling.html#GdkKeymapKey">GdkKeymapKey</a> *key);</pre>
<p>
Looks up the keyval mapped to a keycode/group/level triplet.
If no keyval is bound to <em class="parameter"><code>key</code></em>, returns 0. For normal user input,
you want to use <a href="gdk-Keyboard-Handling.html#gdk-keymap-translate-keyboard-state"><code class="function">gdk_keymap_translate_keyboard_state()</code></a> instead of
this function, since the effective group/level may not be
the same as the current keyboard state.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keymap</code></em> :</span></td>
<td> a <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to use the default keymap
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>key</code></em> :</span></td>
<td> a <a href="gdk-Keyboard-Handling.html#GdkKeymapKey"><span class="type">GdkKeymapKey</span></a> with keycode, group, and level initialized
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a keyval, or 0 if none was mapped to the given <em class="parameter"><code>key</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3092031"></a><h3>
<a name="gdk-keymap-translate-keyboard-state"></a>gdk_keymap_translate_keyboard_state ()</h3>
<a class="indexterm" name="id3092045"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gdk_keymap_translate_keyboard_state
(<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> hardware_keycode,
<a href="gdk-Windows.html#GdkModifierType">GdkModifierType</a> state,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> group,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *keyval,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *effective_group,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *level,
<a href="gdk-Windows.html#GdkModifierType">GdkModifierType</a> *consumed_modifiers);</pre>
<p>
Translates the contents of a <a href="gdk-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> into a keyval, effective
group, and level. Modifiers that affected the translation and
are thus unavailable for application use are returned in
<em class="parameter"><code>consumed_modifiers</code></em>. See <code class="function">gdk_keyval_get_keys()</code> for an explanation of
groups and levels. The <em class="parameter"><code>effective_group</code></em> is the group that was
actually used for the translation; some keys such as Enter are not
affected by the active keyboard group. The <em class="parameter"><code>level</code></em> is derived from
<em class="parameter"><code>state</code></em>. For convenience, <a href="gdk-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> already contains the translated
keyval, so this function isn't as useful as you might think.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
<em class="parameter"><code>consumed_modifiers</code></em> gives modifiers that should be masked out
from <em class="parameter"><code>state</code></em> when comparing this key press to a hot key. For
instance, on a US keyboard, the <code class="literal">plus</code>
symbol is shifted, so when comparing a key press to a
<code class="literal"><Control>plus</code> accelerator <Shift> should
be masked out.
</p>
<div class="informalexample"><pre class="programlisting">
/* We want to ignore irrelevant modifiers like ScrollLock */
#define ALL_ACCELS_MASK (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK)
gdk_keymap_translate_keyboard_state (keymap, event->hardware_keycode,
event->state, event->group,
&keyval, NULL, NULL, &consumed);
if (keyval == GDK_PLUS &&
(event->state & ~consumed & ALL_ACCELS_MASK) == GDK_CONTROL_MASK)
/* Control was pressed */
</pre></div>
<p>
An older interpretation <em class="parameter"><code>consumed_modifiers</code></em> was that it contained
all modifiers that might affect the translation of the key;
this allowed accelerators to be stored with irrelevant consumed
modifiers, by doing:</p>
<div class="informalexample"><pre class="programlisting">
/* XXX Don't do this XXX */
if (keyval == accel_keyval &&
(event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed))
/* Accelerator was pressed */
</pre></div>
<p>
However, this did not work if multi-modifier combinations were
used in the keymap, since, for instance, <code class="literal"><Control></code>
would be masked out even if only <code class="literal"><Control><Alt></code>
was used in the keymap. To support this usage as well as well as
possible, all <span class="emphasis"><em>single modifier</em></span> combinations
that could affect the key for any combination of modifiers will
be returned in <em class="parameter"><code>consumed_modifiers</code></em>; multi-modifier combinations
are returned only when actually found in <em class="parameter"><code>state</code></em>. When you store
accelerators, you should always store them with consumed modifiers
removed. Store <code class="literal"><Control>plus</code>,
not <code class="literal"><Control><Shift>plus</code>,
</p>
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keymap</code></em> :</span></td>
<td> a <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to use the default
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>hardware_keycode</code></em> :</span></td>
<td> a keycode
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>state</code></em> :</span></td>
<td> a modifier state
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>group</code></em> :</span></td>
<td> active keyboard group
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em> :</span></td>
<td> return location for keyval
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>effective_group</code></em> :</span></td>
<td> return location for effective group
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>level</code></em> :</span></td>
<td> return location for level
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>consumed_modifiers</code></em> :</span></td>
<td> return location for modifiers that were used to determine the group or level
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if there was a keyval bound to the keycode/state/group
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3092473"></a><h3>
<a name="gdk-keymap-get-entries-for-keyval"></a>gdk_keymap_get_entries_for_keyval ()</h3>
<a class="indexterm" name="id3092488"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gdk_keymap_get_entries_for_keyval
(<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval,
<a href="gdk-Keyboard-Handling.html#GdkKeymapKey">GdkKeymapKey</a> **keys,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_keys);</pre>
<p>
Obtains a list of keycode/group/level combinations that will
generate <em class="parameter"><code>keyval</code></em>. Groups and levels are two kinds of keyboard mode;
in general, the level determines whether the top or bottom symbol
on a key is used, and the group determines whether the left or
right symbol is used. On US keyboards, the shift key changes the
keyboard level, and there are no groups. A group switch key might
convert a keyboard between Hebrew to English modes, for example.
<a href="gdk-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> contains a <code class="literal">group</code> field that indicates the active
keyboard group. The level is computed from the modifier mask.
The returned array should be freed
with <a
href="../glib/glib-Memory-Allocation.html#g-free"
><code class="function">g_free()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keymap</code></em> :</span></td>
<td> a <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to use the default keymap
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em> :</span></td>
<td> a keyval, such as <code class="literal">GDK_a</code>, <code class="literal">GDK_Up</code>, <code class="literal">GDK_Return</code>, etc.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>keys</code></em> :</span></td>
<td> return location for an array of <a href="gdk-Keyboard-Handling.html#GdkKeymapKey"><span class="type">GdkKeymapKey</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_keys</code></em> :</span></td>
<td> return location for number of elements in returned array
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if keys were found and returned
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3092730"></a><h3>
<a name="gdk-keymap-get-entries-for-keycode"></a>gdk_keymap_get_entries_for_keycode ()</h3>
<a class="indexterm" name="id3092744"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gdk_keymap_get_entries_for_keycode
(<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> hardware_keycode,
<a href="gdk-Keyboard-Handling.html#GdkKeymapKey">GdkKeymapKey</a> **keys,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> **keyvals,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_entries);</pre>
<p>
Returns the keyvals bound to <em class="parameter"><code>hardware_keycode</code></em>.
The Nth <a href="gdk-Keyboard-Handling.html#GdkKeymapKey"><span class="type">GdkKeymapKey</span></a> in <em class="parameter"><code>keys</code></em> is bound to the Nth
keyval in <em class="parameter"><code>keyvals</code></em>. Free the returned arrays with <a
href="../glib/glib-Memory-Allocation.html#g-free"
><code class="function">g_free()</code></a>.
When a keycode is pressed by the user, the keyval from
this list of entries is selected by considering the effective
keyboard group and level. See <a href="gdk-Keyboard-Handling.html#gdk-keymap-translate-keyboard-state"><code class="function">gdk_keymap_translate_keyboard_state()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keymap</code></em> :</span></td>
<td> a <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to use the default keymap
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>hardware_keycode</code></em> :</span></td>
<td> a keycode
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>keys</code></em> :</span></td>
<td> return location for array of <a href="gdk-Keyboard-Handling.html#GdkKeymapKey"><span class="type">GdkKeymapKey</span></a>, or NULL
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyvals</code></em> :</span></td>
<td> return location for array of keyvals, or NULL
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_entries</code></em> :</span></td>
<td> length of <em class="parameter"><code>keys</code></em> and <em class="parameter"><code>keyvals</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if there were any entries
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3092993"></a><h3>
<a name="gdk-keymap-get-direction"></a>gdk_keymap_get_direction ()</h3>
<a class="indexterm" name="id3093006"></a><pre class="programlisting"><a
href="../pango/pango-Text-Processing.html#PangoDirection"
>PangoDirection</a> gdk_keymap_get_direction (<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap);</pre>
<p>
Returns the direction of the keymap.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keymap</code></em> :</span></td>
<td>a <a href="gdk-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to use the default keymap.
Returns: <a
href="../pango/pango-Text-Processing.html#PANGO-DIRECTION-LTR:CAPS"
><code class="literal">PANGO_DIRECTION_LTR</code></a> or <a
href="../pango/pango-Text-Processing.html#PANGO-DIRECTION-RTL:CAPS"
><code class="literal">PANGO_DIRECTION_RTL</code></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>the direction of the keymap.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093108"></a><h3>
<a name="gdk-keyval-name"></a>gdk_keyval_name ()</h3>
<a class="indexterm" name="id3093120"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* gdk_keyval_name (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);</pre>
<p>
Converts a key value into a symbolic name.
The names are the same as those in the <code class="filename"><gdk/gdkkeysyms.h></code> header file
but without the leading "GDK_".
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em> :</span></td>
<td>a key value.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>a string containing the name of the key, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if <em class="parameter"><code>keyval</code></em> is not
a valid key. The string should not be modified.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093203"></a><h3>
<a name="gdk-keyval-from-name"></a>gdk_keyval_from_name ()</h3>
<a class="indexterm" name="id3093216"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> gdk_keyval_from_name (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *keyval_name);</pre>
<p>
Converts a key name to a key value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval_name</code></em> :</span></td>
<td>a key name.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>the corresponding key value, or <code class="literal">GDK_VoidSymbol</code> if the key name is
not a valid key.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093287"></a><h3>
<a name="gdk-keyval-convert-case"></a>gdk_keyval_convert_case ()</h3>
<a class="indexterm" name="id3093300"></a><pre class="programlisting">void gdk_keyval_convert_case (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> symbol,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *lower,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *upper);</pre>
<p>
Obtains the upper- and lower-case versions of the keyval <em class="parameter"><code>symbol</code></em>.
Examples of keyvals are <span class="type">GDK_a</span>, <span class="type">GDK_Enter</span>, <span class="type">GDK_F1</span>, etc.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>symbol</code></em> :</span></td>
<td> a keyval
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>lower</code></em> :</span></td>
<td> return location for lowercase version of <em class="parameter"><code>symbol</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>upper</code></em> :</span></td>
<td> return location for uppercase version of <em class="parameter"><code>symbol</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093438"></a><h3>
<a name="gdk-keyval-to-upper"></a>gdk_keyval_to_upper ()</h3>
<a class="indexterm" name="id3093452"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> gdk_keyval_to_upper (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);</pre>
<p>
Converts a key value to upper case, if applicable.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em> :</span></td>
<td>a key value.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>the upper case form of <em class="parameter"><code>keyval</code></em>, or <em class="parameter"><code>keyval</code></em> itself if it is already
in upper case or it is not subject to case conversion.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093523"></a><h3>
<a name="gdk-keyval-to-lower"></a>gdk_keyval_to_lower ()</h3>
<a class="indexterm" name="id3093536"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> gdk_keyval_to_lower (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);</pre>
<p>
Converts a key value to lower case, if applicable.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em> :</span></td>
<td>a key value.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>the lower case form of <em class="parameter"><code>keyval</code></em>, or <em class="parameter"><code>keyval</code></em> itself if it is already
in lower case or it is not subject to case conversion.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093607"></a><h3>
<a name="gdk-keyval-is-upper"></a>gdk_keyval_is_upper ()</h3>
<a class="indexterm" name="id3093620"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gdk_keyval_is_upper (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);</pre>
<p>
Returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the given key value is in upper case.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em> :</span></td>
<td>a key value.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>keyval</code></em> is in upper case, or if <em class="parameter"><code>keyval</code></em> is not subject to
case conversion.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093710"></a><h3>
<a name="gdk-keyval-is-lower"></a>gdk_keyval_is_lower ()</h3>
<a class="indexterm" name="id3093723"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gdk_keyval_is_lower (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);</pre>
<p>
Returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the given key value is in lower case.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em> :</span></td>
<td>a key value.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>keyval</code></em> is in lower case, or if <em class="parameter"><code>keyval</code></em> is not subject to
case conversion.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093812"></a><h3>
<a name="gdk-keyval-to-unicode"></a>gdk_keyval_to_unicode ()</h3>
<a class="indexterm" name="id3093825"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint32"
>guint32</a> gdk_keyval_to_unicode (<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval);</pre>
<p>
Convert from a GDK key symbol to the corresponding ISO10646 (Unicode)
character.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em> :</span></td>
<td> a GDK key symbol
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the corresponding unicode character, or 0 if there
is no corresponding character.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3093888"></a><h3>
<a name="gdk-unicode-to-keyval"></a>gdk_unicode_to_keyval ()</h3>
<a class="indexterm" name="id3093902"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> gdk_unicode_to_keyval (<a
href="../glib/glib-Basic-Types.html#guint32"
>guint32</a> wc);</pre>
<p>
Convert from a ISO10646 character to a key symbol.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>wc</code></em> :</span></td>
<td> a ISO10646 encoded character
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the corresponding GDK key symbol, if one exists.
or, if there is no corresponding symbol,
wc | 0x01000000
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3093966"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3093977"></a><h3>
<a name="GdkKeymap-direction-changed"></a>The "direction-changed" signal</h3>
<a class="indexterm" name="id3093988"></a><pre class="programlisting">void user_function (<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
The ::direction_changed signal gets emitted when the direction of
the keymap changes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keymap</code></em> :</span></td>
<td> the object on which the signal is emitted
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.0
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3094065"></a><h3>
<a name="GdkKeymap-keys-changed"></a>The "keys-changed" signal</h3>
<a class="indexterm" name="id3094076"></a><pre class="programlisting">void user_function (<a href="gdk-Keyboard-Handling.html#GdkKeymap">GdkKeymap</a> *keymap,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
The ::keys_changed signal is emitted when the mapping represented by
<em class="parameter"><code>keymap</code></em> changes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>keymap</code></em> :</span></td>
<td> the object on which the signal is emitted
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.2
</p>
</div>
</div>
</div>
</body>
</html>