diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-07 17:14:27 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-07 17:14:27 +0000 |
commit | f54bd48a884e4e3c95818f042a4b2418a6e070a4 (patch) | |
tree | 73e82729a2f97b58e94ffd6944ac1ad47bf8314e /src/ui/button.h | |
parent | f8d1ee921c83b7b148883b3ee16e4ec9c776d6db (diff) |
working button click
Diffstat (limited to 'src/ui/button.h')
-rw-r--r-- | src/ui/button.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/button.h b/src/ui/button.h index a9fee13..bdf310b 100644 --- a/src/ui/button.h +++ b/src/ui/button.h @@ -25,9 +25,16 @@ public: /// print button description virtual void print(size_t indent); + /// handle keyboard input + virtual void event_keypress(unsigned int key, unsigned int modifier); + virtual void event_keyrelease(unsigned int key, unsigned int modifier); + protected: virtual void draw(); + /// draw the button + virtual void draw_text(); + private: std::string button_command; }; |