Class: TVirtualKeyboard

Declaration: Keyboards.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Abstract base class that defines basic protocol for virtual keyboards.

Instantiation:

Not instantiated directly.

Deriving Classes:

Includes both surrogate (TVirtualKeyboardHandle) and implementation (TStandardEditableVirtualKeyboard) classes.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TVirtualKeyboard::SetLocalizableName

virtual void SetLocalizableName (const TLocalizableName & name)

Interface Category:

API.

Purpose:

Specifies a localizable name for a transcoder.

Calling Context:

Typically called by clients who are creating a transcoder and want to give it a localizable name.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::TVirtualKeyboard

  1. TVirtualKeyboard ()
  2. TVirtualKeyboard (const TVirtualKeyboard & copy)

Interface Category:

API.

Purpose:

  1. Default constructor. This constructor is protected.
  2. Copy constructor. This constructor is protected.

Calling Context:

  1. Called by the stream-in operators and derived classes.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Generates a hash value.

Calling Context:

Called to generate a hash value.

Parameters:

Return Value:

The numeric value of the hash.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::operator=

TVirtualKeyboard & operator =(const TVirtualKeyboard & from)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::~TVirtualKeyboard

virtual ~ TVirtualKeyboard ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::GetLocalizableName

virtual void GetLocalizableName (TLocalizableName & name) const

Interface Category:

API.

Purpose:

Provides the human-readable, localizable name for this object.

Calling Context:

Called when clients want to display the human-readable name of a keyboard.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::CommandText

virtual void CommandText (TVirtualKeyCode :: EVirtualKey key, const TModifierKeys & modifiers, TText & text) const

Interface Category:

API.

Purpose:

Maps from the key and the modifiers to the representative character(s) for the command key using the command keyboard that has been designated for this keyboard. The default calls MapKeyToText. For example, a virtual keyboard could be set up so that the combination of the key, kVirtualA, with the command and option modifiers set results in a TText that can be displayed in a menu as TUnicode::kCommandKey+TUnicode::kOptionKey+TUnicode::kLatinCapitalLetterA.

Calling Context:

Called by menus and other subsystems that need to display a visual representation for command key equivalents.

Parameters:

Return Value:

None. The text for display is returned in the text parameter.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TVirtualKeyboard::MapKeyToText

virtual void MapKeyToText (TVirtualKeyCode :: EVirtualKey key, const TModifierKeys & modifiers, TText & text) const

Interface Category:

API.

Purpose:

Defines the primary mapping functionality of virtual keyboards.

Calling Context:

Called by the typing configuration to produce text from a virtual key and modifier combination.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This is a pure virtual function and needs to be overridden.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.