diff options
author | Stephen Kennedy | 2008-07-09 11:30:49 +0000 |
---|---|---|
committer | Stephen Kennedy | 2008-07-09 11:30:49 +0000 |
commit | b035101732407ae7595d80162346f995242654f2 (patch) | |
tree | 2be605a7e511c2fcc85e8352587da5a0cae44aa7 /common/image-map.h | |
parent | d1bc01b1a9761cf1a45c99b22512b5c42cf3eb5b (diff) | |
download | scummvm-rg350-b035101732407ae7595d80162346f995242654f2.tar.gz scummvm-rg350-b035101732407ae7595d80162346f995242654f2.tar.bz2 scummvm-rg350-b035101732407ae7595d80162346f995242654f2.zip |
- keyboard fully tested with multiple modes - key press events successfully passed back to engine, mode switching also works
- added support to re-parse keyboard pack if overlay size changes (to find more suitable layouts)
svn-id: r32975
Diffstat (limited to 'common/image-map.h')
-rw-r--r-- | common/image-map.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/common/image-map.h b/common/image-map.h index eabc54adf3..1148d96764 100644 --- a/common/image-map.h +++ b/common/image-map.h @@ -33,32 +33,6 @@ namespace Common { -class MapArea { -public: - MapArea() : _shape(0), _target() {} - MapArea(const Rect& r, const String& t) : _target(t) { - _shape = new Rect(r); - } - MapArea(const Polygon& p, const String& t) : _target(t) { - _shape = new Polygon(p); - } - virtual ~MapArea() { - delete _shape; - } - - virtual bool contains(int x, int y) { - return _shape->contains(x, y); - } - - String getTarget() { return _target; } - -protected: - /* shape defining the MapArea's boundary */ - Shape *_shape; - /* string describing the target of MapArea */ - String _target; -}; - class ImageMap { public: @@ -67,6 +41,8 @@ public: Rect *createRectArea(const String& id); Polygon *createPolygonArea(const String& id); + void removeArea(const String& id); + void removeAllAreas(); //void addMapArea(Shape *shape, const String& target); /*void addRectMapArea(const Rect& rect, const String& target); |