summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-17 22:53:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-17 22:53:42 +0300
commitfdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b (patch)
treeed1480de8c6ce998973ddeecea5baf15a07ee5ae /src/gui/widgets
parente50a003a016248c3df8e17dc331b878dbdf08b48 (diff)
downloadmanaverse-fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b.tar.gz
manaverse-fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b.tar.bz2
manaverse-fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b.tar.xz
manaverse-fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b.zip
Move mouseoverlink into separate file.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/browserbox.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 79de4f8ef..38c76bac6 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -26,6 +26,7 @@
#include "enums/gui/linkhighlightmode.h"
#include "gui/gui.h"
+#include "gui/mouseoverlink.h"
#include "gui/skin.h"
#include "gui/fonts/font.h"
@@ -50,30 +51,6 @@
#include "debug.h"
-namespace
-{
- struct MouseOverLink final
- {
- MouseOverLink(const int x,
- const int y) :
- mX(x),
- mY(y)
- { }
-
- A_DEFAULT_COPY(MouseOverLink)
-
- bool operator() (const BrowserLink &link) const
- {
- return (mX >= link.x1 &&
- mX < link.x2 &&
- mY >= link.y1 &&
- mY < link.y2);
- }
- const int mX;
- const int mY;
- };
-} // namespace
-
ImageSet *BrowserBox::mEmotes = nullptr;
int BrowserBox::mInstances = 0;