Add View alloc

This commit is contained in:
Glenn
2025-11-03 23:03:33 +00:00
parent 332653ca24
commit 65ee1339b9

View File

@@ -654,6 +654,10 @@ Responder :: struct {using _: Object}
@(objc_class="NSView")
View :: struct {using _: Responder}
@(objc_type=View, objc_name="alloc", objc_is_class_method=true)
View_alloc :: proc "c" () -> ^View {
return msgSend(^View, View, "alloc")
}
@(objc_type=View, objc_name="initWithFrame")
View_initWithFrame :: proc "c" (self: ^View, frame: Rect) -> ^View {