add window isMinimized
This commit is contained in:
parent
1a14e5241b
commit
77653ebde5
|
@ -378,6 +378,12 @@ namespace SHADE
|
|||
{
|
||||
wndData.width = static_cast<unsigned>(size.cx);
|
||||
wndData.height = static_cast<unsigned>(size.cy);
|
||||
|
||||
if (type == SIZE_MINIMIZED)
|
||||
{
|
||||
wndData.isMinimised = true;
|
||||
}
|
||||
|
||||
for (auto const& entry : windowResizeCallbacks)
|
||||
{
|
||||
entry.second(static_cast<uint32_t>(wndData.width), static_cast<uint32_t>(wndData.height));
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace SHADE
|
|||
};
|
||||
|
||||
struct WindowData
|
||||
{
|
||||
{
|
||||
unsigned x = 0;
|
||||
|
||||
unsigned y = 0;
|
||||
|
@ -42,7 +42,7 @@ namespace SHADE
|
|||
bool closable = true;
|
||||
|
||||
bool minimizable = true;
|
||||
|
||||
|
||||
bool maximizable = true;
|
||||
|
||||
//bool canFullscreen = true;
|
||||
|
@ -56,11 +56,13 @@ namespace SHADE
|
|||
bool shadowEnabled = true;
|
||||
|
||||
bool isVisible = true;
|
||||
|
||||
|
||||
bool isFullscreen = false;
|
||||
|
||||
bool modal = false;
|
||||
|
||||
bool isMinimised = false;
|
||||
|
||||
std::wstring title = L"SHADE ENGINE";
|
||||
|
||||
std::wstring name = L"SHADEEngineApp";
|
||||
|
@ -103,7 +105,7 @@ namespace SHADE
|
|||
void SetMousePosition(unsigned x, unsigned y);
|
||||
|
||||
//unsigned GetBGColor();
|
||||
|
||||
|
||||
void SetBGColor(unsigned color);
|
||||
|
||||
void Minimize();
|
||||
|
@ -163,6 +165,7 @@ namespace SHADE
|
|||
void OnSize(UINT msg, UINT type, SIZE size);
|
||||
void OnPosChange(LPWINDOWPOS pos);
|
||||
void OnPaint(HDC hdc, LPPAINTSTRUCT paint);
|
||||
bool IsMinimized() const { return wndData.isMinimised; }
|
||||
};
|
||||
static SHWindowMap windowMap;
|
||||
static SHWindow* windowBeingCreated = nullptr;
|
||||
|
|
Loading…
Reference in New Issue