RWindow::IsVisible Windoze
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m33s
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m33s
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user