Detailed Description

Member Enumeration Documentation

Enum listing all possible modes a key can be in. The modes reflect the keyboard state (ie. which modifiers are held down?), and each key has a separate string to display for each different mode. There is no mode for shift and caps lock nor for shift, caps lock and control, since in those situations the functionality of caps lock is already provided by the shift key.

Constructor & Destructor Documentation

Constructor for keys for the keyboard that display a string. The same text is used regardless of which modifier keys are held down.

Parameters:

x

The x co-ordinate of the button, relative to its parent.

y

The y co-ordinate of the button, relative to its parent.

width

The width of the key.

height

The height of the key.

text

The text for the key to display.

keyType

The type of key.

style

The style that the gadget should use. If this is not specified, the gadget will use the values stored in the global defaultGadgetStyle object. The gadget will copy the properties of the style into its own internal style object.

Constructor for keys for the keyboard that display a string. A different string is supplied for each keyboard modifier situation.

Parameters:

x

The x co-ordinate of the button, relative to its parent.

y

The y co-ordinate of the button, relative to its parent.

width

The width of the key.

height

The height of the key.

normalText

The text for the key to display when no modifiers are held.

shiftText

The text for the key to display when shift is held.

controlText

The text for the key to display when control is held.

shiftControlText

The text for the key to display when shift and control are held.

capsLockText

The text for the key to display when caps lock is held.

controlCapsLockText

The text for the key to display when caps lock and control are held.

keyType

The type of key.

style

The style that the gadget should use. If this is not specified, the gadget will use the values stored in the global defaultGadgetStyle object. The gadget will copy the properties of the style into its own internal style object.