diff options
author | Max Horn | 2009-06-28 19:57:27 +0000 |
---|---|---|
committer | Max Horn | 2009-06-28 19:57:27 +0000 |
commit | a882a6f46779768f15d38e350781785d975e5007 (patch) | |
tree | 84a9524aa63cc8bfbf5cae69c4312ca778ce4bbb /graphics | |
parent | 531e7a8c78d1374e1a5aba606339fd8155eb3dee (diff) | |
download | scummvm-rg350-a882a6f46779768f15d38e350781785d975e5007.tar.gz scummvm-rg350-a882a6f46779768f15d38e350781785d975e5007.tar.bz2 scummvm-rg350-a882a6f46779768f15d38e350781785d975e5007.zip |
GUI: Replaced ThemeParser::_drawFunction hashmap by a static function getDrawingFunctionCallback which maps strings to draw funcs
svn-id: r41931
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VectorRenderer.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h index acc2f77357..136a8d55b3 100644 --- a/graphics/VectorRenderer.h +++ b/graphics/VectorRenderer.h @@ -37,6 +37,10 @@ namespace Graphics { class VectorRenderer; + +typedef void (VectorRenderer::*DrawingFunctionCallback)(const Common::Rect &, const Graphics::DrawStep &); + + struct DrawStep { struct Color { uint8 r, g, b; @@ -59,7 +63,10 @@ struct DrawStep { kVectorAlignBottom, kVectorAlignTop, kVectorAlignCenter - } xAlign, yAlign; + }; + + VectorAlignment xAlign; + VectorAlignment yAlign; uint8 shadow, stroke, factor, radius, bevel; /**< Misc options... */ @@ -68,7 +75,7 @@ struct DrawStep { uint32 scale; /**< scale of all the coordinates in FIXED POINT with 16 bits mantissa */ - void (VectorRenderer::*drawingCall)(const Common::Rect &, const DrawStep &); /** Pointer to drawing function */ + DrawingFunctionCallback drawingCall; /**< Pointer to drawing function */ Graphics::Surface *blitSrc; }; |