Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Dasher::CDasherWidgetInterface Class Reference

#include <DasherWidgetInterface.h>

Inheritance diagram for Dasher::CDasherWidgetInterface:

Dasher::CDasherInterface List of all members.

Public Member Functions

virtual void Start ()=0
 Signal to the core that the model should be started.

virtual void TapOn (int MouseX, int MouseY, unsigned long Time)=0
 Signal an input location.

virtual void PauseAt (int MouseX, int MouseY)=0
 Signal an input event and pause the simulation.

virtual void Unpause (unsigned long Time)=0
 Unpause the simulation.

virtual void Redraw ()=0
 Signal that the core should redraw the screen.

virtual void ChangeScreen ()=0
 Signal the core that a change has occured to the screen. (Unneeded).

virtual void ChangeEdit ()=0
 Signal the core that a change has occued to the editbox. (Unneeded).

virtual unsigned int GetNumberSymbols ()=0
 Request the number of symbols in the current alphabet.

virtual const std::string & GetDisplayText (Dasher::symbol Symbol)=0
 Request the text that should be displayed on the Dasher canvas.

virtual const std::string & GetEditText (Dasher::symbol Symbol)=0
 Request the text that should be entered into the edit box.

virtual Opts::ScreenOrientations GetAlphabetOrientation ()=0
 (Eg, left to right for English, right to left for Hebrew)

virtual Opts::AlphabetTypes GetAlphabetType ()=0
 Returns the codepage for the current alphabet.

virtual const std::string & GetTrainFile ()=0
 Provides a fully qualified path to the training file for the alphabet.


Member Function Documentation

virtual void Dasher::CDasherWidgetInterface::ChangeEdit   [pure virtual]
 

Implemented in Dasher::CDasherInterface.

virtual void Dasher::CDasherWidgetInterface::ChangeScreen   [pure virtual]
 

Implemented in Dasher::CDasherInterface.

virtual Opts::ScreenOrientations Dasher::CDasherWidgetInterface::GetAlphabetOrientation   [pure virtual]
 

Implemented in Dasher::CDasherInterface.

virtual Opts::AlphabetTypes Dasher::CDasherWidgetInterface::GetAlphabetType   [pure virtual]
 

Implemented in Dasher::CDasherInterface.

virtual const std::string& Dasher::CDasherWidgetInterface::GetDisplayText Dasher::symbol    Symbol [pure virtual]
 

Note - the returned string is in UTF-8 encoding.

Parameters:
Symbol the symbol that is to be displayed

Implemented in Dasher::CDasherInterface.

virtual const std::string& Dasher::CDasherWidgetInterface::GetEditText Dasher::symbol    Symbol [pure virtual]
 

Note - the returned string is in UTF-8 encoding.

Parameters:
Symbol the symbol that is to be displayed

Implemented in Dasher::CDasherInterface.

virtual unsigned int Dasher::CDasherWidgetInterface::GetNumberSymbols   [pure virtual]
 

Implemented in Dasher::CDasherInterface.

virtual const std::string& Dasher::CDasherWidgetInterface::GetTrainFile   [pure virtual]
 

Implemented in Dasher::CDasherInterface.

virtual void Dasher::CDasherWidgetInterface::PauseAt int    MouseX,
int    MouseY
[pure virtual]
 

Implemented in Dasher::CDasherInterface.

virtual void Dasher::CDasherWidgetInterface::Redraw   [pure virtual]
 

Implemented in Dasher::CDasherInterface.

virtual void Dasher::CDasherWidgetInterface::Start   [pure virtual]
 

Call this function before providing input coordinates and whenever reinitialising Dasher

Implemented in Dasher::CDasherInterface.

virtual void Dasher::CDasherWidgetInterface::TapOn int    MouseX,
int    MouseY,
unsigned long    Time
[pure virtual]
 

Signal an input event. This may be the current location of the mouse or a stylus tap, for example

Parameters:
MouseX The mouse X coordinate, in screen coordinates
MouseY The mouse Y coordinate, in screen coordinates
Time Time in milliseconds, required to keep Dasher running at the correct speed

Implemented in Dasher::CDasherInterface.

virtual void Dasher::CDasherWidgetInterface::Unpause unsigned long    Time [pure virtual]
 

Parameters:
Time should be in milliscones and should be consistent with previous time values

Implemented in Dasher::CDasherInterface.


The documentation for this class was generated from the following file:
Generated on Fri Mar 14 15:47:10 2003 for Dasher by doxygen1.3-rc3