Public Member Functions

dialog::Drawer Class Reference

This is the object that is capable of rendering dialogs. More...

#include <drawer.h>

Inheritance diagram for dialog::Drawer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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 ~Drawer (void) throw ()

Detailed Description

This is the object that is capable of rendering dialogs.

This library (core dialog library) does NOT render dialogs! That is up to a client-supplied library. This is the interface that the client must support to render dialogs.

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


Member Function Documentation

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

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]

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]

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]

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]

draw a circle at the specified position


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