mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add additional NSWindow methods
This commit is contained in:
+16
@@ -156,6 +156,22 @@ Window_makeKeyAndOrderFront :: proc(self: ^Window, key: ^NS.Object) {
|
|||||||
Window_setTitle :: proc(self: ^Window, title: ^NS.String) {
|
Window_setTitle :: proc(self: ^Window, title: ^NS.String) {
|
||||||
msgSend(nil, self, "setTitle:", title)
|
msgSend(nil, self, "setTitle:", title)
|
||||||
}
|
}
|
||||||
|
@(objc_type=Window, objc_name="setTitlebarAppearsTransparent")
|
||||||
|
Window_setTitlebarAppearsTransparent :: proc(self: ^Window, ok: NS.BOOL) {
|
||||||
|
msgSend(nil, self, "setTitlebarAppearsTransparent:", ok)
|
||||||
|
}
|
||||||
|
@(objc_type=Window, objc_name="setMovable")
|
||||||
|
Window_setMovable :: proc(self: ^Window, ok: NS.BOOL) {
|
||||||
|
msgSend(nil, self, "setMovable:", ok)
|
||||||
|
}
|
||||||
|
@(objc_type=Window, objc_name="setMovableByWindowBackground")
|
||||||
|
Window_setMovableByWindowBackground :: proc(self: ^Window, ok: NS.BOOL) {
|
||||||
|
msgSend(nil, self, "setMovableByWindowBackground:", ok)
|
||||||
|
}
|
||||||
|
@(objc_type=Window, objc_name="setStyleMask")
|
||||||
|
Window_setStyleMask :: proc(self: ^Window, style_mask: WindowStyleMask) {
|
||||||
|
msgSend(nil, self, "setStyleMask:", style_mask)
|
||||||
|
}
|
||||||
@(objc_type=Window, objc_name="close")
|
@(objc_type=Window, objc_name="close")
|
||||||
Window_close :: proc(self: ^Window) {
|
Window_close :: proc(self: ^Window) {
|
||||||
msgSend(nil, self, "close")
|
msgSend(nil, self, "close")
|
||||||
|
|||||||
Reference in New Issue
Block a user