Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_WINDOW_WINDOWMOUSEHIT_H
|
|
#define RAGNAROK_SOURCE_UI_WINDOW_WINDOWMOUSEHIT_H
|
|
|
|
#include <array>
|
|
#include <cstdint>
|
|
#include <deque>
|
|
#include <list>
|
|
#include <map>
|
|
|
|
class UIWindow;
|
|
class CMouse;
|
|
struct WindowAncestry;
|
|
struct WindowOrdering;
|
|
class WindowManagerWindows;
|
|
struct WindowDropDown;
|
|
|
|
struct WindowMouseHit {
|
|
std::list<UIWindow*>& rendered;
|
|
std::map<int, UIWindow*>& overlays;
|
|
std::uint32_t& previous;
|
|
std::uint32_t& current;
|
|
|
|
UIWindow* FindUid(std::uint32_t uid);
|
|
UIWindow* HitTest(int x, int y);
|
|
};
|
|
|
|
struct WindowMouseCapture {
|
|
WindowAncestry*& capture;
|
|
WindowOrdering& ordering;
|
|
const CMouse& mouse;
|
|
const int& previousX;
|
|
const int& previousY;
|
|
const int& doubleClickGate;
|
|
const int& alternateDoubleClickGate;
|
|
|
|
bool Dispatch();
|
|
};
|
|
|
|
struct WindowMouseUncaptured {
|
|
WindowMouseHit& hit;
|
|
WindowOrdering& ordering;
|
|
WindowDropDown& dropdown;
|
|
WindowManagerWindows& windows;
|
|
const std::deque<UIWindow*>& modal;
|
|
const CMouse& mouse;
|
|
const int& previousX;
|
|
const int& previousY;
|
|
const int& doubleClickGate;
|
|
const int& alternateDoubleClickGate;
|
|
UIWindow*& pressedRoot;
|
|
UIWindow* const& dismiss26;
|
|
UIWindow* const& dismiss260;
|
|
WindowAncestry*& hover;
|
|
|
|
std::array<UIWindow**, 7> refresh;
|
|
const int& refreshGate;
|
|
|
|
int Dispatch();
|
|
};
|
|
|
|
#endif
|