Public Member Functions

dialog::TextDrawer Class Reference

for testing, we provide a text-only drawer More...

#include <drawer.h>

Inheritance diagram for dialog::TextDrawer:
Inheritance graph
[legend]
Collaboration diagram for dialog::TextDrawer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void writeToStream (IO std::ostream &stream)=0
virtual font_size_t getFontSizing (IN eElementType type, IN const char *text)=0
 return the pixel size of the given string (based on whatever font the Drawer wants to use for this sort of element)
virtual border_size_t getBorderSizing (IN eElementType type)=0
 return the border size (in pixels) for the given element type
virtual void drawString (IN eElementType type, IN const point_t &pos, IN const char *text)=0
 draw a string (using whatever font the Drawer wants to use for this element type) at the given position.
virtual void drawRectWithBorder (IN eElementType type, IN const rect_t &rect)=0
 draw a rect with a border at the given position.
virtual void drawCircle (IN const point_t &pos, IN float radius)=0
 draw a circle at the specified position



virtual ~TextDrawer (void) throw ()
static smart_ptr< TextDrawercreate (IN int borderSize)

Detailed Description

for testing, we provide a text-only drawer

Definition at line 131 of file dialog/drawer.h.


Constructor & Destructor Documentation

dialog::TextDrawer::~TextDrawer ( void   )  throw () [virtual]

Definition at line 48 of file drawer.cpp.


Member Function Documentation

virtual void dialog::TextDrawer::writeToStream ( IO std::ostream &  stream  )  [pure virtual]
smart_ptr< TextDrawer > dialog::TextDrawer::create ( IN int  borderSize  )  [static]

Definition at line 243 of file drawer.cpp.

virtual font_size_t dialog::Drawer::getFontSizing ( IN eElementType  type,
IN const char *  text 
) [pure virtual, inherited]

return the pixel size of the given string (based on whatever font the Drawer wants to use for this sort of element)

virtual border_size_t dialog::Drawer::getBorderSizing ( IN eElementType  type  )  [pure virtual, inherited]

return the border size (in pixels) for the given element type

virtual void dialog::Drawer::drawString ( IN eElementType  type,
IN const point_t pos,
IN const char *  text 
) [pure virtual, inherited]

draw a string (using whatever font the Drawer wants to use for this element type) at the given position.

virtual void dialog::Drawer::drawRectWithBorder ( IN eElementType  type,
IN const rect_t rect 
) [pure virtual, inherited]

draw a rect with a border at the given position.

The rect interior AND the border should neatly fit within the specified rectangle.

virtual void dialog::Drawer::drawCircle ( IN const point_t pos,
IN float  radius 
) [pure virtual, inherited]

draw a circle at the specified position


The documentation for this class was generated from the following files: