2015-12-23 08:45:53 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Window : public Component
|
|
|
|
{
|
|
|
|
public:
|
2016-08-15 10:40:30 -04:00
|
|
|
Window();
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
2015-12-23 08:45:53 -05:00
|
|
|
const char* GetName() { return "Window"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
2015-12-23 08:45:53 -05:00
|
|
|
|
2016-01-01 09:17:59 -05:00
|
|
|
static int Width();
|
|
|
|
static int Height();
|
|
|
|
static int Width(HWND window);
|
|
|
|
static int Height(HWND window);
|
|
|
|
static void Dimension(RECT* rect);
|
|
|
|
static void Dimension(HWND window, RECT* rect);
|
|
|
|
|
|
|
|
static bool IsCursorWithin(HWND window);
|
2015-12-29 08:46:17 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
static BOOL CursorVisible;
|
2016-01-01 09:17:59 -05:00
|
|
|
static Dvar::Var NoBorder;
|
|
|
|
static Dvar::Var NativeCursor;
|
2015-12-29 08:46:17 -05:00
|
|
|
|
|
|
|
static HWND MainWindow;
|
|
|
|
|
2016-06-28 06:46:28 -04:00
|
|
|
static int IsNoBorder();
|
|
|
|
|
2016-01-01 09:17:59 -05:00
|
|
|
static int WINAPI ShowCursorHook(BOOL show);
|
|
|
|
static void DrawCursorStub(void *scrPlace, float x, float y, float w, float h, int horzAlign, int vertAlign, const float *color, Game::Material *material);
|
|
|
|
|
|
|
|
static void StyleHookStub();
|
2015-12-29 08:46:17 -05:00
|
|
|
static HWND WINAPI CreateMainWindow(DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam);
|
2015-12-23 08:45:53 -05:00
|
|
|
};
|
|
|
|
}
|