Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: manager/EAHitBox.h
- Revision:
- 3:24fbf4dbd7e5
- Parent:
- 1:f04bcaea1d60
--- a/manager/EAHitBox.h Sun Mar 28 20:15:15 2010 +0000 +++ b/manager/EAHitBox.h Wed Mar 31 22:22:21 2010 +0000 @@ -8,6 +8,7 @@ #include "../widgets/EAWidget.h" class EAHitBox; +class EAHitHandler; /** * Class to handle detection of a hit in an area of the screen. @@ -41,13 +42,16 @@ inline void setAction(EAHitBox::ActionFunction action) { _action = action; } - inline EAWidget* widget() const { return _widget; } - inline void setWidget(EAWidget* value) { _widget = value; } + inline EAHitHandler* handler() const { return _handler; } + inline void setHandler(EAHitHandler* value) { _handler = value; } + + inline bool enabled() { return _enabled; } + inline void setEnabled(bool yes) { _enabled = yes; } private: EAHitBox* _next; - EAWidget* _widget; + EAHitHandler* _handler; unsigned short _width; unsigned short _height; @@ -55,6 +59,8 @@ short _x; short _y; + bool _enabled; + ActionFunction _action; };