diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-20 00:36:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-20 00:36:06 +0300 |
commit | ea97f2a46deabd2beb3d0c6713735a51d9472740 (patch) | |
tree | 22349dabe7182338f1545b89e51ddc34bb42fe8b /src/gui/gui.h | |
parent | 0664fee5aeae578dd3d5d6f02332719c3e9af1cb (diff) | |
download | manaverse-ea97f2a46deabd2beb3d0c6713735a51d9472740.tar.gz manaverse-ea97f2a46deabd2beb3d0c6713735a51d9472740.tar.bz2 manaverse-ea97f2a46deabd2beb3d0c6713735a51d9472740.tar.xz manaverse-ea97f2a46deabd2beb3d0c6713735a51d9472740.zip |
Improve gui class.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index 8805f2518..7ecb56b21 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -316,9 +316,12 @@ class Gui final void handleMouseInput(); - void distributeMouseEvent(Widget* source, int type, int button, - int x, int y, bool force = false, - bool toSourceOnly = false); + void distributeMouseEvent(Widget *const source, + const int type, + const int button, + const int x, const int y, + const bool force = false, + const bool toSourceOnly = false); /** * @@ -343,7 +346,7 @@ class Gui final * @return The widget at a certain position. * @since 0.6.0 */ - Widget* getWidgetAt(int x, int y) A_WARN_UNUSED; + Widget* getWidgetAt(const int x, const int y) const A_WARN_UNUSED; /** * Gets the source of the mouse event. @@ -351,7 +354,8 @@ class Gui final * @return The source widget of the mouse event. * @since 0.6.0 */ - Widget* getMouseEventSource(int x, int y) A_WARN_UNUSED; + Widget* getMouseEventSource(const int x, + const int y) const A_WARN_UNUSED; /** * Gets the source of the key event. @@ -359,7 +363,7 @@ class Gui final * @return The source widget of the key event. * @since 0.6.0 */ - Widget* getKeyEventSource() A_WARN_UNUSED; + Widget* getKeyEventSource() const A_WARN_UNUSED; /** * Distributes a key event. @@ -368,7 +372,7 @@ class Gui final * @since 0.6.0 */ - void distributeKeyEvent(KeyEvent& keyEvent) const; + void distributeKeyEvent(KeyEvent &keyEvent) const; /** * Distributes a key event to the global key listeners. |