migrate to virtual void and start mac impl

This commit is contained in:
Shelley Vohr 2018-02-06 08:21:53 -05:00
parent 97589bbe33
commit ae632193c0
No known key found for this signature in database
GPG key ID: F13993A75599653C
4 changed files with 11 additions and 3 deletions

View file

@ -1135,6 +1135,14 @@ bool NativeWindowMac::IsEnabled() {
return [window_ attachedSheet] == nil;
}
void NativeWindowMac::SetEnabled(bool enable) {
if (enable == false){
[window_ attachedSheet] = nil;
} else {
[window_ beginSheet:window_];
}
}
void NativeWindowMac::Maximize() {
if (IsMaximized())
return;