Move disable counter to NativeWindow from api::Window
This commit is contained in:
parent
946d246aea
commit
1866dbe608
8 changed files with 36 additions and 40 deletions
|
@ -673,14 +673,9 @@ bool NativeWindowMac::IsVisible() {
|
|||
return [window_ isVisible];
|
||||
}
|
||||
|
||||
void NativeWindowMac::Disable() {
|
||||
[window_ setDisableKeyOrMainWindow:YES];
|
||||
[window_ setDisableMouseEvents:YES];
|
||||
}
|
||||
|
||||
void NativeWindowMac::Enable() {
|
||||
[window_ setDisableKeyOrMainWindow:NO];
|
||||
[window_ setDisableMouseEvents:NO];
|
||||
void NativeWindowMac::SetEnabled(bool enable) {
|
||||
[window_ setDisableKeyOrMainWindow:!enable];
|
||||
[window_ setDisableMouseEvents:!enable];
|
||||
}
|
||||
|
||||
bool NativeWindowMac::IsEnabled() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue