55 #ifndef GCN_GRAPHICS_HPP
56 #define GCN_GRAPHICS_HPP
139 virtual bool pushClipArea(
Rectangle area);
146 virtual void popClipArea();
177 virtual void drawImage(
const Image* image,
int srcX,
int srcY,
178 int dstX,
int dstY,
int width,
186 virtual void drawImage(
const Image* image,
int dstX,
int dstY);
194 virtual void drawPoint(
int x,
int y) = 0;
204 virtual void drawLine(
int x1,
int y1,
int x2,
int y2) = 0;
211 virtual void drawRectangle(
const Rectangle& rectangle) = 0;
218 virtual void fillRectangle(
const Rectangle& rectangle) = 0;
225 virtual void setColor(
const Color& color) = 0;
232 virtual const Color& getColor() = 0;
239 virtual void setFont(
Font* font);
250 virtual void drawText(
const std::string& text,
int x,
int y,
unsigned int alignment = LEFT,
bool is_normal =
true);
267 #endif // end GCN_GRAPHICS_HPP
Definition: graphics.h:257
Definition: graphics.h:97
std::stack< ClipRectangle > mClipStack
Definition: graphics.h:262
Font * mFont
Definition: graphics.h:263
static std::list< CGraphic * > Graphics
Definition: graphic.cpp:56
virtual void _endDraw()
Definition: graphics.h:126
Definition: cliprectangle.cpp:61
Definition: rectangle.h:65
virtual void _beginDraw()
Definition: graphics.h:115
virtual ~Graphics()
Definition: graphics.h:102
Definition: cliprectangle.h:67