Public Member Functions

vgfx::Drawer Class Reference
[Vector Graphics Engine]

Clients must implement this if they want to draw. More...

#include <drawer.h>

Inheritance diagram for vgfx::Drawer:
Inheritance graph

List of all members.

Public Member Functions

virtual ~Drawer (void) throw ()
virtual void pushBrush (dword_t key)=0
virtual void popBrush (dword_t key)=0 throw ()
virtual void endPath (void)=0
virtual void refreshBrush (void)=0
virtual void setTransform (const xform_2d_t &T)=0 throw ()
virtual void setBrushAttribute (eBrushAttribute attribute, const char *value)=0
virtual void setClipRect (float left, float top, float right, float bottom)=0
virtual void drawBezier (const bezier::curve_t &curve)=0
virtual void drawQuadBezier (const bezier::quad_bezier_t &qb)=0
virtual void drawLine (const point_t &p0, const point_t &p1)=0
virtual void drawRect (const rect_t &r)=0
virtual void fillRect (const rect_t &r)=0
virtual void drawText (const rect_t &r, const char *text)=0
virtual void getBoundingRect (const char *text, rect_t &r)=0
virtual void getRootTransform (xform_2d_t &T)=0 throw ()
virtual bool isPrinter (void) const =0 throw ()

Detailed Description

Clients must implement this if they want to draw.

The vgfx library is incapable of drawing! It handles all of the logical details of a vector graphics canvas, but relies on someone else for the actual drawing (if any).

This interface is declared so that software layers built on top of vgfx can declare and implement their own bindings to specific rendering technologies.

Definition at line 73 of file vgfx/drawer.h.

Constructor & Destructor Documentation

Drawer::~Drawer ( void   )  throw () [virtual]

Definition at line 50 of file vgfx.cpp.

Member Function Documentation

virtual void vgfx::Drawer::pushBrush ( dword_t  key  )  [pure virtual]
virtual void vgfx::Drawer::popBrush ( dword_t  key  )  throw () [pure virtual]
virtual void vgfx::Drawer::endPath ( void   )  [pure virtual]
virtual void vgfx::Drawer::refreshBrush ( void   )  [pure virtual]
virtual void vgfx::Drawer::setTransform ( const xform_2d_t T  )  throw () [pure virtual]
virtual void vgfx::Drawer::setBrushAttribute ( eBrushAttribute  attribute,
const char *  value 
) [pure virtual]
virtual void vgfx::Drawer::setClipRect ( float  left,
float  top,
float  right,
float  bottom 
) [pure virtual]
virtual void vgfx::Drawer::drawBezier ( const bezier::curve_t curve  )  [pure virtual]
virtual void vgfx::Drawer::drawQuadBezier ( const bezier::quad_bezier_t qb  )  [pure virtual]
virtual void vgfx::Drawer::drawLine ( const point_t p0,
const point_t p1 
) [pure virtual]
virtual void vgfx::Drawer::drawRect ( const rect_t r  )  [pure virtual]
virtual void vgfx::Drawer::fillRect ( const rect_t r  )  [pure virtual]
virtual void vgfx::Drawer::drawText ( const rect_t r,
const char *  text 
) [pure virtual]
virtual void vgfx::Drawer::getBoundingRect ( const char *  text,
rect_t r 
) [pure virtual]
virtual void vgfx::Drawer::getRootTransform ( xform_2d_t T  )  throw () [pure virtual]
virtual bool vgfx::Drawer::isPrinter ( void   )  const throw () [pure virtual]

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