renderPara,
setFont,
- fill, clear,
+ fill, fillRegion, clear,
blit,
setPalette,
eRect area;
} *fill;
+ struct pfillRegion
+ {
+ gRegion region;
+ } *fillRegion;
+
struct prenderText
{
eRect area;
void setForegroundColor(const gColor &color);
void setFont(gFont *font);
+ /* flags only THESE: */
+ enum
+ {
+ // todo, make mask. you cannot align both right AND center AND block ;)
+ RT_HALIGN_RIGHT = 1,
+ RT_HALIGN_CENTER = 2,
+ RT_HALIGN_BLOCK = 4,
+ RT_VALIGN_CENTER = 8
+ };
void renderText(const eRect &position, const std::string &string, int flags=0);
+
void renderPara(eTextPara *para, ePoint offset=ePoint(0, 0));
void fill(const eRect &area);
+ void fill(const gRegion &area);
void clear();