mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 05:20:28 +00:00
Add View alloc
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user