Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
35 lines
811 B
C++
35 lines
811 B
C++
#include "UI/Window/UIWindow.h"
|
|
#include "UI/Window/WindowRegistration.h"
|
|
|
|
// OFFSET: 0x00A8B060
|
|
// FUNCTION: fn_17120
|
|
void WindowRegistration::Add(WindowAncestry* window) {
|
|
for (WindowAncestry* existing : this->windows) {
|
|
if (existing == window) {
|
|
return;
|
|
}
|
|
}
|
|
|
|
this->windows.push_back(window);
|
|
}
|
|
|
|
// OFFSET: 0x00AA7200
|
|
// FUNCTION: fn_17236
|
|
void WindowRegistration::Remove(WindowAncestry* window) {
|
|
for (auto entry = this->windows.begin(); entry != this->windows.end(); ++entry) {
|
|
if (*entry == window) {
|
|
this->windows.erase(entry);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00AA6650
|
|
// FUNCTION: fn_17231
|
|
void WindowRegistration::InvalidateAll() {
|
|
for (WindowAncestry* window : this->windows) {
|
|
static_cast<UIWindow*>(window)->Invalidate();
|
|
}
|
|
|
|
this->windows.clear();
|
|
}
|