X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ddc3964ed95d01e72229dc9af968a327cd84e56c..cd621fe499141885e5a0d8b4e42a0f8a7f41a9ac:/lib/gdi/grc.h diff --git a/lib/gdi/grc.h b/lib/gdi/grc.h index a02068ae..5eb81314 100644 --- a/lib/gdi/grc.h +++ b/lib/gdi/grc.h @@ -29,7 +29,7 @@ struct gOpcode renderPara, setFont, - fill, clear, + fill, fillRegion, clear, blit, setPalette, @@ -55,6 +55,11 @@ struct gOpcode eRect area; } *fill; + struct pfillRegion + { + gRegion region; + } *fillRegion; + struct prenderText { eRect area; @@ -169,10 +174,21 @@ public: 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();