From fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Jun 2017 22:53:42 +0300 Subject: Move mouseoverlink into separate file. --- src/gui/widgets/browserbox.cpp | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src/gui/widgets/browserbox.cpp') 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; -- cgit v1.2.3-70-g09d2