Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-01-06 21:49:29 +0000
committerStijn Buys <ingar@osirion.org>2015-01-06 21:49:29 +0000
commit7e3684dba968d2129caf4deff344c4f099640a68 (patch)
tree614763b8d4e5e73874df2603454bc886c176a330 /src/client/targeticonbutton.h
parent9626a5ce823fe94970b04dc504993583996e6074 (diff)
Fixed @goto and @dock buttons.
Diffstat (limited to 'src/client/targeticonbutton.h')
-rw-r--r--src/client/targeticonbutton.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/targeticonbutton.h b/src/client/targeticonbutton.h
index 9907f95..cb6a147 100644
--- a/src/client/targeticonbutton.h
+++ b/src/client/targeticonbutton.h
@@ -19,12 +19,16 @@ public:
/// special icon button that sends target '@' commands.
TargetIconButton(Widget *parent, const char *icon, const char *command, unsigned int flags = 0);
- /// called when the widget receives a key press
- virtual bool on_keypress(const int key, const unsigned int modifier);
-
protected:
- /// update enabled/disabled state and draw the IconButton
+ /**
+ * @brief draw event handler
+ * */
virtual void draw();
+
+ /**
+ * @brief mouse button press event handler
+ * */
+ virtual bool on_mousepress(const unsigned int button);
private:
unsigned int entity_flags;