diff options
| author | Glenn <terids@gmail.com> | 2025-11-03 23:05:26 +0000 |
|---|---|---|
| committer | Glenn <terids@gmail.com> | 2025-11-03 23:05:26 +0000 |
| commit | 4485a45866f2e0ca50e197822c54e085fbafcaea (patch) | |
| tree | 129ec316f65bc34c31d633cbcc8e6f2957bf22cc /core/sys/darwin | |
| parent | 65ee1339b9309464fb3a1cae991ae058ac5f7938 (diff) | |
Add Window_center
Diffstat (limited to 'core/sys/darwin')
| -rw-r--r-- | core/sys/darwin/Foundation/NSWindow.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/sys/darwin/Foundation/NSWindow.odin b/core/sys/darwin/Foundation/NSWindow.odin index 173826c79..e5bc10074 100644 --- a/core/sys/darwin/Foundation/NSWindow.odin +++ b/core/sys/darwin/Foundation/NSWindow.odin @@ -728,6 +728,10 @@ Window_setFrame :: proc "c" (self: ^Window, frame: Rect, display: BOOL) { Window_setFrameOrigin :: proc "c" (self: ^Window, origin: Point) { msgSend(nil, self, "setFrameOrigin:", origin) } +@(objc_type=Window, objc_name="center") +Window_center :: proc "c" (self: ^Window) { + msgSend(nil, self, "center") +} @(objc_type=Window, objc_name="opaque") Window_opaque :: proc "c" (self: ^Window) -> BOOL { return msgSend(BOOL, self, "opaque") |