ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
#include <canvasstd.h>
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 Size & | textSize (const String &text) |
Uint16 | textHeight () const |
const ImageFont & | font () const |
const Color & | color () const |
uint | width () |
const Rect & | clipRect () 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 |
CanvasStd | ( | ) | const |
|
virtual |
Reimplemented from Canvas.
References Color::a(), Canvas::mClipRect, Canvas::mColor, Canvas::mSurface, Canvas::point(), Pixel::put(), Pixel::putAlpha(), Rect::set(), and Point::y.
|
virtual |
Implements Canvas.
References Color::a(), Color::b(), Canvas::color(), Color::g(), Rect::height(), CanvasStd::hLine(), Canvas::mColor, Canvas::mSurface, Color::r(), Rect::width(), Rect::x(), y, and Rect::y.
|
private |
References Color::a(), Pixel::alpha32(), Color::b(), Color::g(), Rect::height(), Canvas::mClipRect, Canvas::mColor, Canvas::mSurface, Color::r(), Rect::width(), x, Rect::x(), and Rect::y.
Referenced by CanvasStd::fill(), CanvasStd::line(), and CanvasStd::rect().
Implements Canvas.
References Canvas::mSurface, and Image::surface().
Implements Canvas.
References Color::a(), ABS, CanvasStd::hLine(), Rect::inside(), Canvas::mClipRect, Canvas::mColor, Canvas::mSurface, Pixel::put(), Pixel::putAlpha(), CanvasStd::vLine(), x, Point::y, and y.
|
inlineprivate |
|
virtual |
Implements Canvas.
References Rect::height(), CanvasStd::hLine(), CanvasStd::vLine(), Rect::width(), x, Rect::x(), y, and Rect::y.
Referenced by CanvasStd::setClipRect().
|
virtual |
Reimplemented from Canvas.
References Canvas::mClipRect, Canvas::mSurface, and CanvasStd::rect().
|
private |
References Color::a(), Pixel::alpha32(), Color::b(), Color::g(), Rect::height(), Canvas::mClipRect, Canvas::mColor, Canvas::mSurface, Color::r(), Rect::width(), Rect::x(), y, and Rect::y.
Referenced by CanvasStd::line(), and CanvasStd::rect().