GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gdk::KeymapKey Class Reference

A GdkKeymapKey C++ wrapper class. More...

#include <gfc/gdk/keymap.hh>

List of all members.

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

A GdkKeymapKey C++ wrapper class.

KeymapKey represents a hardware key that can be mapped to a keyval.


Constructor & Destructor Documentation

GFC::Gdk::KeymapKey::KeymapKey unsigned int  keycode,
int  group,
int  level
 

Construct a new KeymapKey (see Gdk::KeymapKey::set() for details).

Parameters:
keycode The hardware keycode; this is an identifying number for a physical key.
group Indicates movement in a horizontal direction.
level Indicates which symbol on the key will be used, in a vertical direction.


Member Function Documentation

int GFC::Gdk::KeymapKey::level  )  const
 

Returns the level.

The level indicates which symbol on the key will be used, in a vertical direction.

void GFC::Gdk::KeymapKey::set unsigned int  keycode,
int  group,
int  level
 

Sets the keycode, group and level for the key.

Parameters:
keycode The hardware keycode; this is an identifying number for a physical key.
group Indicates movement in a horizontal direction.
level Indicates which symbol on the key will be used, in a vertical direction.

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.

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.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:36 2004 for GFC-UI by doxygen 1.3.8