add documentation
This commit is contained in:
parent
ae632193c0
commit
faf08b2b77
2 changed files with 9 additions and 3 deletions
|
@ -1136,10 +1136,10 @@ bool NativeWindowMac::IsEnabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowMac::SetEnabled(bool enable) {
|
void NativeWindowMac::SetEnabled(bool enable) {
|
||||||
if (enable == false){
|
if (enable){
|
||||||
[window_ attachedSheet] = nil;
|
// TODO(codebytere): figure out how to implement window enabling
|
||||||
} else {
|
} else {
|
||||||
[window_ beginSheet:window_];
|
[window_ attachedSheet] = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -847,6 +847,12 @@ the supplied bounds.
|
||||||
|
|
||||||
Returns [`Rectangle`](structures/rectangle.md)
|
Returns [`Rectangle`](structures/rectangle.md)
|
||||||
|
|
||||||
|
### `win.setEnabled(enabled)`
|
||||||
|
|
||||||
|
* `enabled` Boolean
|
||||||
|
|
||||||
|
Disable or enable the window.
|
||||||
|
|
||||||
#### `win.setSize(width, height[, animate])`
|
#### `win.setSize(width, height[, animate])`
|
||||||
|
|
||||||
* `width` Integer
|
* `width` Integer
|
||||||
|
|
Loading…
Add table
Reference in a new issue