Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/button.h')
-rw-r--r--src/ui/button.h7
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;
};