Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/mapwidget.h')
-rw-r--r--src/client/mapwidget.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/client/mapwidget.h b/src/client/mapwidget.h
index 0482330..38485fd 100644
--- a/src/client/mapwidget.h
+++ b/src/client/mapwidget.h
@@ -10,7 +10,8 @@
#include "core/zone.h"
#include "ui/widget.h"
-namespace client {
+namespace client
+{
class MapWidget : public ui::Widget
{
@@ -25,23 +26,31 @@ public:
void set_target(const core::Entity *entity);
- inline unsigned int hover() const {
+ inline unsigned int hover() const
+ {
return mapwidget_hover_id;
}
- inline const core::Entity *target() const {
+ inline const core::Entity *target() const
+ {
return mapwidget_target;
}
- inline core::Zone *zone() const {
+ inline core::Zone *zone() const
+ {
return mapwidget_zone;
}
protected:
+ /**
+ * @brief draw event handler
+ * */
virtual void draw();
- /// called when the widget receives a key press
- virtual bool on_keypress(const int key, const unsigned int modifier);
+ /**
+ * @brief mouse button press event handler
+ * */
+ virtual bool on_mousepress(const unsigned int button);
private:
float mapwidget_zoom;
@@ -53,4 +62,5 @@ private:
}; // class MapWidget
} // namespace client
+
#endif // __INCLUDED_CLIENT_MAPWIDGET_H__