mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Add View alloc
This commit is contained in:
@@ -654,6 +654,10 @@ Responder :: struct {using _: Object}
|
|||||||
@(objc_class="NSView")
|
@(objc_class="NSView")
|
||||||
View :: struct {using _: Responder}
|
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")
|
@(objc_type=View, objc_name="initWithFrame")
|
||||||
View_initWithFrame :: proc "c" (self: ^View, frame: Rect) -> ^View {
|
View_initWithFrame :: proc "c" (self: ^View, frame: Rect) -> ^View {
|
||||||
|
|||||||
Reference in New Issue
Block a user