LeviLamina
Loading...
Searching...
No Matches
WindowStatePlatform.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
6public:
7 // virtual functions
8 // NOLINTBEGIN
9 virtual ~WindowStatePlatform() = default;
10
11#ifdef LL_PLAT_S
12 virtual bool getWindowRect(::HWND__*, ::tagRECT&) const;
13#else // LL_PLAT_C
14 virtual bool getWindowRect(::HWND__* window, ::tagRECT& result) const;
15#endif
16
17#ifdef LL_PLAT_S
18 virtual bool getClientRect(::HWND__*, ::tagRECT&) const;
19#else // LL_PLAT_C
20 virtual bool getClientRect(::HWND__* window, ::tagRECT& result) const;
21#endif
22
23#ifdef LL_PLAT_S
24 virtual bool getWindowShowCommand(::HWND__*, int&) const;
25#else // LL_PLAT_C
26 virtual bool getWindowShowCommand(::HWND__* window, int& result) const;
27#endif
28
29 virtual bool getClosestMonitorRect(::tagRECT const& closestToRect, ::tagRECT& result) const = 0;
30
31#ifdef LL_PLAT_S
32 virtual bool getAdjustedWindowRect(::tagRECT const&, ::tagRECT&) const;
33#else // LL_PLAT_C
34 virtual bool getAdjustedWindowRect(::tagRECT const& clientRect, ::tagRECT& windowRect) const;
35#endif
36
37 virtual ::tagRECT _fitClientToScreen(::tagRECT const& client, ::tagRECT const& window, ::tagRECT const& screen) = 0;
38 // NOLINTEND
39
40public:
41 // virtual function thunks
42 // NOLINTBEGIN
43#ifdef LL_PLAT_C
44 MCNAPI bool $getWindowRect(::HWND__* window, ::tagRECT& result) const;
45
46 MCNAPI bool $getClientRect(::HWND__* window, ::tagRECT& result) const;
47
48 MCNAPI bool $getWindowShowCommand(::HWND__* window, int& result) const;
49
50 MCNAPI bool $getAdjustedWindowRect(::tagRECT const& clientRect, ::tagRECT& windowRect) const;
51#endif
52
53
54 // NOLINTEND
55};
Definition WindowStatePlatform.h:5
Definition window.h:5