ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
#include <canvas.h>
Public Member Functions | |
Canvas () ROLAND_DEFAULT virtual ~Canvas() ROLAND_DEFAULT virtual void begin() | |
virtual void | end () |
virtual void | point (const Point &pos)=0 |
virtual void | line (const Point &pos1, const Point &pos2)=0 |
virtual void | rect (const Rect &rect)=0 |
virtual void | fill (const Rect &rect)=0 |
virtual void | image (const Image &image, const Rect &src, const Rect &dest)=0 |
virtual void | setColor (const Color &color) |
virtual void | setClipRect (const Rect &rect) |
virtual void | clearClipRect () |
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 Size & | textSize (const String &text) |
Uint16 | textHeight () const |
const ImageFont & | font () const |
const Color & | color () const |
uint | width () |
const Rect & | clipRect () const |
Protected Attributes | |
SDL_Surface * | mSurface |
Size | mTextSize |
Color | mColor |
ImageFont | mFont |
String | mNumber |
Rect | mClipRect |
|
inline |
|
inlinevirtual |
Reimplemented in CanvasGL, and CanvasStd.
References Canvas::setFont().
Referenced by Label::draw(), and List::draw().
|
inline |
References Canvas::mClipRect.
|
inline |
References Canvas::mColor.
Referenced by CanvasStd::fill(), CanvasGL::setColor(), and Canvas::setColor().
|
inlinevirtual |
Reimplemented in CanvasGL.
References Canvas::fill(), Canvas::image(), Canvas::line(), Canvas::point(), and Canvas::rect().
Referenced by Label::draw(), List::draw(), and Button::onMouseButton().
|
pure virtual |
Implemented in CanvasGL, and CanvasStd.
Referenced by Label::drawBackground(), and Canvas::end().
|
inline |
References Canvas::fill().
Referenced by Canvas::fill().
|
inline |
References Canvas::mFont.
Implemented in CanvasGL, and CanvasStd.
Referenced by Label::drawBackground(), Canvas::end(), Canvas::image(), and Canvas::write().
References Canvas::image(), Canvas::textHeight(), Canvas::textSize(), and Canvas::write().
Referenced by Canvas::image().
References Canvas::image(), and Image::size().
Implemented in CanvasGL, and CanvasStd.
Referenced by Label::drawBorder(), and Canvas::end().
References Canvas::line().
Referenced by Canvas::line().
|
pure virtual |
Implemented in CanvasGL.
Referenced by CanvasStd::clearClipRect(), and Canvas::end().
|
inline |
References Canvas::point().
Referenced by Canvas::point().
|
pure virtual |
Implemented in CanvasGL, and CanvasStd.
Referenced by List::draw(), Canvas::end(), Canvas::textHeight(), and Canvas::textSize().
|
inline |
References Canvas::rect().
Referenced by Canvas::rect().
|
inlinevirtual |
Reimplemented in CanvasGL, and CanvasStd.
Referenced by Label::draw(), and List::draw().
|
inlinevirtual |
Reimplemented in CanvasGL.
References Canvas::color(), and Canvas::mColor.
Referenced by Label::draw(), List::draw(), Label::drawBackground(), and Label::drawBorder().
References ImageFont::load(), and Canvas::mFont.
Referenced by Canvas::clearClipRect(), and initGui().
|
inline |
References Canvas::mSurface.
Referenced by VideoStd::init(), and VideoGL::init().
|
inline |
References ImageFont::glyph(), Rect::height(), Canvas::mFont, and Canvas::rect().
Referenced by Label::drawText(), and Canvas::image().
References Size::clear(), ImageFont::glyph(), Rect::height(), Canvas::mFont, Canvas::mTextSize, Canvas::rect(), Size::setHeight(), Size::setWidth(), ImageFont::spacing(), Size::width(), and Rect::width().
Referenced by Label::drawText(), Canvas::image(), and initGui().
|
inline |
References Canvas::mSurface.
References ImageFont::glyph(), Canvas::image(), ImageFont::image(), Canvas::mFont, Rect::set(), Rect::size, ImageFont::spacing(), Rect::width(), and Rect::x().
Referenced by Label::drawText(), and Canvas::image().
|
protected |
|
protected |
|
protected |
Referenced by Canvas::font(), Canvas::setFont(), Canvas::textHeight(), Canvas::textSize(), and Canvas::write().
|
protected |
|
protected |
|
protected |
Referenced by Canvas::textSize().