Browse Source

Merge pull request #2203 from janivanecky/content_layout_rect

Add NSWindow::content_layout_rect
gingerBill 2 years ago
parent
commit
a3d53a6288
1 changed files with 4 additions and 0 deletions
  1. 4 0
      vendor/darwin/Foundation/NSWindow.odin

+ 4 - 0
vendor/darwin/Foundation/NSWindow.odin

@@ -124,6 +124,10 @@ Window_contentView :: proc(self: ^Window) -> ^View {
 Window_setContentView :: proc(self: ^Window, content_view: ^View) {
 	msgSend(nil, self, "setContentView:", content_view)
 }
+@(objc_type=Window, objc_name="contentLayoutRect")
+Window_contentLayoutRect :: proc(self: ^Window) -> Rect {
+	return msgSend(Rect, self, "contentLayoutRect")
+}
 @(objc_type=Window, objc_name="frame")
 Window_frame :: proc(self: ^Window) -> Rect {
 	return msgSend(Rect, self, "frame")