diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-17 22:53:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-17 22:53:42 +0300 |
commit | fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b (patch) | |
tree | ed1480de8c6ce998973ddeecea5baf15a07ee5ae /src/gui/widgets | |
parent | e50a003a016248c3df8e17dc331b878dbdf08b48 (diff) | |
download | plus-fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b.tar.gz plus-fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b.tar.bz2 plus-fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b.tar.xz plus-fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b.zip |
Move mouseoverlink into separate file.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 25 |
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; |