Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Dasher::CDasherScreen Class Reference

#include </home/clem/local/src/opie/inputmethods/dasher/DasherScreen.h>

Inheritance diagram for Dasher::CDasherScreen:

Inheritance graph
[legend]
Collaboration diagram for Dasher::CDasherScreen:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Dasher::CDasherScreen::tagpoint point
 Structure defining a point on the screen.

Public Member Functions

 CDasherScreen (int width, int height)
virtual void SetInterface (CDasherWidgetInterface *DasherInterface)
 Set the widget interface used for communication with the core.
int GetWidth () const
 Return the width of the screen.
int GetHeight () const
 Return the height of the screen.
virtual void SetFont (std::string Name)=0
virtual void SetFontSize (Dasher::Opts::FontSize fontsize)=0
 Set the Dasher font to Normal, Big or VBig.
virtual Dasher::Opts::FontSize GetFontSize ()=0
 Return the Dasher font size.
virtual void TextSize (symbol Character, int *Width, int *Height, int Size) const =0
 Set Width and Height to those of the character Character at size Size.
virtual void DrawText (symbol Character, int x1, int y1, int Size) const =0
 Draw character Character of size Size positioned at x1 and y1.
virtual void DrawRectangle (int x1, int y1, int x2, int y2, int Color, Opts::ColorSchemes ColorScheme) const =0
 Draw a filled rectangle.
virtual void Polyline (point *Points, int Number) const =0
virtual void DrawPolygon (point *Points, int Number, int Color, Opts::ColorSchemes ColorScheme) const =0
 Draw a filled polygon.
virtual void Blank () const =0
 Signal that a frame is being started.
virtual void Display ()=0
 Signal that a frame is finished - the screen should be updated.

Protected Attributes

const int m_iWidth
 Width and height of the screen.
const int m_iHeight
 Width and height of the screen.
CDasherWidgetInterfacem_DasherInterface
 Pointer to a widget interface for communication with the core.

Classes

struct  tagpoint
 Structure defining a point on the screen. More...

Member Typedef Documentation

typedef struct Dasher::CDasherScreen::tagpoint Dasher::CDasherScreen::point
 

Structure defining a point on the screen.


Constructor & Destructor Documentation

Dasher::CDasherScreen::CDasherScreen int  width,
int  height
[inline]
 

Parameters:
width Width of the screen
height Height of the screen

Definition at line 22 of file DasherScreen.h.


Member Function Documentation

virtual void Dasher::CDasherScreen::Blank  )  const [pure virtual]
 

Signal that a frame is being started.

Implemented in QtDasherScreen.

virtual void Dasher::CDasherScreen::Display  )  [pure virtual]
 

Signal that a frame is finished - the screen should be updated.

Implemented in QtDasherScreen.

Referenced by Dasher::CDasherView::Display().

virtual void Dasher::CDasherScreen::DrawPolygon point Points,
int  Number,
int  Color,
Opts::ColorSchemes  ColorScheme
const [pure virtual]
 

Draw a filled polygon.

Parameters:
Points array of points defining the edge of the polygon
Number number of points in the array
Color colour of the polygon (numeric)
Colorscheme Which colourscheme is to be used

Implemented in QtDasherScreen.

virtual void Dasher::CDasherScreen::DrawRectangle int  x1,
int  y1,
int  x2,
int  y2,
int  Color,
Opts::ColorSchemes  ColorScheme
const [pure virtual]
 

Draw a filled rectangle.

Draw a coloured rectangle on the screen

Parameters:
x1 top left of rectangle (x coordinate)
y1 top left corner of rectangle (y coordinate)
x2 bottom right of rectangle (x coordinate)
y2 bottom right of rectangle (y coordinate)
Color the colour to be used (numeric)
ColorScheme Which colourscheme is to be used

Implemented in QtDasherScreen.

virtual void Dasher::CDasherScreen::DrawText symbol  Character,
int  x1,
int  y1,
int  Size
const [pure virtual]
 

Draw character Character of size Size positioned at x1 and y1.

Implemented in QtDasherScreen.

virtual Dasher::Opts::FontSize Dasher::CDasherScreen::GetFontSize  )  [pure virtual]
 

Return the Dasher font size.

Implemented in QtDasherScreen.

int Dasher::CDasherScreen::GetHeight  )  const [inline]
 

Return the height of the screen.

Definition at line 32 of file DasherScreen.h.

References m_iHeight.

int Dasher::CDasherScreen::GetWidth  )  const [inline]
 

Return the width of the screen.

Definition at line 29 of file DasherScreen.h.

References m_iWidth.

virtual void Dasher::CDasherScreen::Polyline point Points,
int  Number
const [pure virtual]
 

Parameters:
Number the number of points in the array

Implemented in QtDasherScreen.

virtual void Dasher::CDasherScreen::SetFont std::string  Name  )  [pure virtual]
 

Set the Dasher font (ie, the screen font) to Name

This is the font used to render letters in the main screen

Implemented in QtDasherScreen.

Referenced by Dasher::CDasherInterface::ChangeScreen(), and Dasher::CDasherInterface::SetDasherFont().

virtual void Dasher::CDasherScreen::SetFontSize Dasher::Opts::FontSize  fontsize  )  [pure virtual]
 

Set the Dasher font to Normal, Big or VBig.

Implemented in QtDasherScreen.

Referenced by Dasher::CDasherInterface::SetDasherFontSize().

virtual void Dasher::CDasherScreen::SetInterface CDasherWidgetInterface DasherInterface  )  [inline, virtual]
 

Set the widget interface used for communication with the core.

Definition at line 26 of file DasherScreen.h.

References m_DasherInterface.

Referenced by Dasher::CDasherInterface::ChangeAlphabet(), and Dasher::CDasherInterface::ChangeScreen().

virtual void Dasher::CDasherScreen::TextSize symbol  Character,
int *  Width,
int *  Height,
int  Size
const [pure virtual]
 

Set Width and Height to those of the character Character at size Size.

Implemented in QtDasherScreen.


Member Data Documentation

CDasherWidgetInterface* Dasher::CDasherScreen::m_DasherInterface [protected]
 

Pointer to a widget interface for communication with the core.

Definition at line 98 of file DasherScreen.h.

Referenced by SetInterface().

const int Dasher::CDasherScreen::m_iHeight [protected]
 

Width and height of the screen.

Definition at line 95 of file DasherScreen.h.

Referenced by QtDasherScreen::Blank(), and GetHeight().

const int Dasher::CDasherScreen::m_iWidth [protected]
 

Width and height of the screen.

Definition at line 95 of file DasherScreen.h.

Referenced by QtDasherScreen::Blank(), and GetWidth().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:58:34 2005 for OPIE by  doxygen 1.4.2