24 Commits

Author SHA1 Message Date
Tohei Ichikawa
85e2e3244b Create new core:sys/darwin/CoreGraphics package (#6147)
* Add Darwin mouse cursor-related bindings

Create CoreGraphics package in the process

* Remove unneeded semicolons

* Define some CG types in CoreFoundation instead

This matches where Darwin's C header files defines these types
2026-01-23 17:45:24 +01:00
Jacob Evelyn
11afefeedc Add NSWindow layout information method bindings to darwin/Foundation (#6040)
This commit adds bindings for `NSWindow`'s
["Getting Layout Information"](https://developer.apple.com/documentation/appkit/nswindow?language=objc#Getting-Layout-Information)
methods to the `core:sys/darwin/Foundation` package.

Co-authored-by: Jacob Evelyn <j@cob.land>
2026-01-13 21:13:59 +01:00
Lucas Perlind
b97e1fff9e More bindings for darwin 2025-12-19 13:34:45 +11:00
Tohei Ichikawa
67cc04b1da Added more NSApplication and NSWindow bindings 2025-12-05 17:20:15 -05:00
Tohei Ichikawa
b2a42ac14f Add NSWindow coordinate space conversion bindings 2025-11-18 22:38:25 -05:00
Glenn
4485a45866 Add Window_center 2025-11-03 23:05:26 +00:00
Glenn
65ee1339b9 Add View alloc 2025-11-03 23:03:33 +00:00
Glenn
332653ca24 Add additional window bindings 2025-11-03 18:06:43 +00:00
Glenn
916e8810cc Add orderFront and orderOut 2025-11-03 18:06:15 +00:00
Glenn
8b3d74f797 Add getter for the WindowDelegate from the Window 2025-11-03 17:54:42 +00:00
Glenn
406eb9c7f5 Add WindowCollectionBehaviour, WindowLevel, WindowTabbingMode 2025-11-03 17:28:51 +00:00
Stanislav Ch. Nikolov
ed389c188c Fixed and added obj-c methods for NSWindow 2025-08-28 12:39:15 +03:00
Steve Waddicor
9c5e577792 Additional obj-c methods for darwin Foundation
Added support for NSBitmapImageRep class.
Added ability to set contents to a CALayer.
I needed these to support a port of Handmade Hero, but they are of general use.
2025-07-29 21:01:22 +01:00
Zach Clark
78d83288a0 Add missing SEL _cmd argument to objc class_addMethod IMPs
When trying to grab the window pointer off the notification in a
windowDidBecomeKey implementation, I kept getting segfaults calling
notification->object(). The second argument of these needs to be a SEL.

https://developer.apple.com/documentation/objectivec/class_addmethod(_:_:_:_:)?language=objc#Discussion

I imagine existing code is getting by by setting the window information
in the delegate's context userdata, which works fine when you only have
one window as you can avoid needing to call notification->object(),
until you want one delegate assigned to two windows, hard to work around.
2025-05-27 17:04:19 -07:00
Samuel Elgozi
19d6c01f0f Added Foundation bindings 2025-01-17 10:42:32 +02:00
Vitalii Kravchenko
004036dc59 More Foundation bindings. 2024-08-16 00:00:29 +01:00
Laytan Laats
108b8feb35 Add vendor:wgpu 2024-06-12 17:22:02 +02:00
gingerBill
ef82f3e71e Move vendor:darwin/Foundation to core:sys/darwin/Foundation 2024-04-08 13:47:46 +01:00
gingerBill
a3bcacee27 Move Objective-C libraries located in core:sys/darwin/* to vendor:darwin/* 2022-02-16 00:06:25 +00:00
gingerBill
803648be89 Minor aesthetic clean ups of Foundation 2022-02-15 15:34:07 +00:00
gingerBill
2958c1d6aa Add new shorthand 2022-02-13 16:56:27 +00:00
gingerBill
9dc83bc1b3 Add more methods 2022-02-13 16:32:31 +00:00
gingerBill
88b1b2c629 Correct types 2022-02-13 15:11:45 +00:00
gingerBill
41854bacf5 Add utility classes for dealing with Windows
Most for GLFW and SDL only
2022-02-13 11:54:40 +00:00