RWindow::IsVisible Windoze
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m33s

This commit is contained in:
2025-01-30 00:43:05 -05:00
parent a77a8a3754
commit 515d428168

View File

@@ -147,6 +147,15 @@ bool open = false;
void RWindow::Raise() { SetWindowPos(platform->hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); }
void RWindow::Lower() { SetWindowPos(platform->hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); }
//TODO somehow check if our window is entirely obscured by other windows.
bool RWindow::IsVisible() const {
if (!IsWindow(platform->hwnd))
return false;
if (IsIconic(platform->hwnd))
return false;
return true;
}
void RWindow::Flash() {
if (!GetFlag(WindowFlag::IN_FOCUS)) {
FLASHWINFO fi;