diff options
| author | Glenn <terids@gmail.com> | 2025-11-03 18:06:15 +0000 |
|---|---|---|
| committer | Glenn <terids@gmail.com> | 2025-11-03 18:06:15 +0000 |
| commit | 916e8810cc978d64f0649bd9575cedfd4c00ab33 (patch) | |
| tree | 980d7adc33c0beeba3ff36649eb81f09f5e73064 | |
| parent | 8b3d74f797e118b165c7669d0249291a56a1a2a5 (diff) | |
Add orderFront and orderOut
| -rw-r--r-- | core/sys/darwin/Foundation/NSWindow.odin | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/sys/darwin/Foundation/NSWindow.odin b/core/sys/darwin/Foundation/NSWindow.odin index 2e51d7b64..f66228890 100644 --- a/core/sys/darwin/Foundation/NSWindow.odin +++ b/core/sys/darwin/Foundation/NSWindow.odin @@ -740,6 +740,14 @@ Window_backgroundColor :: proc "c" (self: ^Window) -> ^Color { Window_setBackgroundColor :: proc "c" (self: ^Window, color: ^Color) { msgSend(nil, self, "setBackgroundColor:", color) } +@(objc_type = Window, objc_name = "orderFront") +Window_orderFront :: proc "c" (self: ^Window, sender: id) { + msgSend(nil, self, "orderFront:", sender) +} +@(objc_type = Window, objc_name = "orderOut") +Window_orderOut :: proc "c" (self: ^Window, sender: id) { + msgSend(nil, self, "orderOut:", sender) +} @(objc_type=Window, objc_name="makeKeyAndOrderFront") Window_makeKeyAndOrderFront :: proc "c" (self: ^Window, key: ^Object) { msgSend(nil, self, "makeKeyAndOrderFront:", key) |