Files
Odin/core/sys/darwin/Foundation/NSImage.odin
2026-02-27 09:54:26 -03:00

20 lines
567 B
Odin

package objc_Foundation
@(objc_class="NSImage")
Image :: struct { using _: Object }
@(objc_type=Image, objc_name="alloc", objc_is_class_method=true)
Image_alloc :: proc "c" () -> ^Image {
return msgSend(^Image, Image, "alloc")
}
@(objc_type=Image, objc_name="initWithSize")
Image_initWithSize :: proc "c" (self: ^Image, size: Size) -> ^Image {
return msgSend(^Image, self, "initWithSize:", size)
}
@(objc_type=Image, objc_name="addRepresentation")
Image_addRepresentation :: proc(self: ^Image, rep: ^ImageRep) {
msgSend(nil, self, "addRepresentation:", rep)
}