ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Public Member Functions | Private Member Functions | List of all members
CanvasStd Class Reference

#include <canvasstd.h>

Inheritance diagram for CanvasStd:
Canvas

Public Member Functions

 CanvasStd () ROLAND_DEFAULT virtual ~CanvasStd() ROLAND_DEFAULT virtual void point(const Point &pos)
 
virtual void rect (const Rect &rect)
 
virtual void fill (const Rect &rect)
 
virtual void line (const Point &pos1, const Point &pos2)
 
virtual void image (const Image &image, const Rect &src, const Rect &dest)
 
virtual void setClipRect (const Rect &rect)
 
virtual void clearClipRect ()
 
- Public Member Functions inherited from Canvas
 Canvas () ROLAND_DEFAULT virtual ~Canvas() ROLAND_DEFAULT virtual void begin()
 
virtual void end ()
 
virtual void point (const Point &pos)=0
 
virtual void setColor (const Color &color)
 
void setFont (const String &fname, const String &glyphs, uchar alpha=255)
 
void setSurface (SDL_Surface *const surface)
 
void point (Point *const pos)
 
void line (Point *const pos1, Point *const pos2)
 
void rect (Rect *const rec)
 
void fill (Rect *const rec)
 
void image (Image *const img, const Point &pos)
 
void image (const Image &img, const Point &pos)
 
void write (const Point &pos, const String &text)
 
const SizetextSize (const String &text)
 
Uint16 textHeight () const
 
const ImageFontfont () const
 
const Colorcolor () const
 
uint width ()
 
const RectclipRect () const
 

Private Member Functions

void hLine (Sint32 x, Sint32 y, Sint32 x2)
 
void vLine (Sint32 x, Sint32 y, Sint32 y2)
 
void putglyph (char *p, int Bpp, int pitch, int which)
 

Additional Inherited Members

- Protected Attributes inherited from Canvas
SDL_Surface * mSurface
 
Size mTextSize
 
Color mColor
 
ImageFont mFont
 
String mNumber
 
Rect mClipRect
 

Detailed Description

Author
Fred Klaus devel.nosp@m.opme.nosp@m.nt@fk.nosp@m.web..nosp@m.de

Constructor & Destructor Documentation

CanvasStd ( ) const

Member Function Documentation

void clearClipRect ( )
virtual
void fill ( const Rect rect)
virtual
void hLine ( Sint32  x,
Sint32  y,
Sint32  x2 
)
private
void image ( const Image image,
const Rect src,
const Rect dest 
)
virtual

Implements Canvas.

References Canvas::mSurface, and Image::surface().

void line ( const Point pos1,
const Point pos2 
)
virtual
void putglyph ( char *  p,
int  Bpp,
int  pitch,
int  which 
)
inlineprivate
void rect ( const Rect rect)
virtual
void setClipRect ( const Rect rect)
virtual

Reimplemented from Canvas.

References Canvas::mClipRect, Canvas::mSurface, and CanvasStd::rect().

void vLine ( Sint32  x,
Sint32  y,
Sint32  y2 
)
private

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