1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #import "../ui/toolkit.h"
30 #import "toolkit.h"
31
32 typedef void(*ui_container_add_f)(UiContainer*, NSView*);
33
34 struct UiContainer {
35 NSView* widget;
36 void (*add)(UiContainer*, NSView*);
37 NSRect (*getframe)(UiContainer*);
38 };
39
40 UiContainer* ui_window_container(UiObject *obj, NSWindow *window);
41
42 NSRect ui_container_getframe(UiContainer *ct);
43 void ui_container_add(UiContainer *ct, NSView *view);
44
45