mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
38 lines
826 B
C++
38 lines
826 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <Gdi/Region.h>
|
|
|
|
namespace Overlay
|
|
{
|
|
class ConfigWindow;
|
|
class StatsWindow;
|
|
}
|
|
|
|
namespace Gdi
|
|
{
|
|
namespace GuiThread
|
|
{
|
|
HWND createWindow(DWORD dwExStyle, LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle,
|
|
int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam);
|
|
void deleteTaskbarTab(HWND hwnd);
|
|
void destroyWindow(HWND hwnd);
|
|
void setWindowRgn(HWND hwnd, Gdi::Region rgn);
|
|
|
|
Overlay::ConfigWindow* getConfigWindow();
|
|
Overlay::StatsWindow* getStatsWindow();
|
|
|
|
template <typename Func>
|
|
void execute(const Func& func) { executeFunc(std::cref(func)); }
|
|
void executeFunc(const std::function<void()>& func);
|
|
|
|
bool isGuiThreadWindow(HWND hwnd);
|
|
bool isReady();
|
|
|
|
void start();
|
|
}
|
|
}
|