]> icculus.org git repositories - divverent/nexuiz.git/blob - data/scmenu/source/control/window/windows.qh
restructure
[divverent/nexuiz.git] / data / scmenu / source / control / window / windows.qh
1 // DP/Nex Menu
2 // control/window/windows.qh
3
4 // Item_Window
5 .keyEvent key;
6
7 bool( float pKey, float pAscii ) Item_Window_Key;
8 void() Item_Window_Draw;
9 void() Item_Window_Spawn;
10
11 // Item_Frame Item_Window
12 void() Item_Frame_Spawn;
13
14 // Item_EventWindow Item_Window
15 // has a few events
16 .keyEvent key;
17 .event init;
18 .event reinit;
19 .event destroy;
20 .event update;
21
22 void() Item_EventWindow_Spawn;
23
24 // Item_Reference [Item]
25 .string link; // window link
26
27 void() Item_Reference_Update;
28 void() Item_Reference_Draw;
29 void() Item_Reference_Destroy;
30 void() Item_Reference_Spawn;
31
32 // Item_Layout Item_Window
33 .vector direction; // space between the items
34 .float alignment;
35
36 void() Item_Layout_Spawn;
37 void() Item_Layout_Update;
38
39 // Item_Arrangement Item_Layout
40
41 void() Item_Arrangement_CalculateSize;
42 void() Item_Arrangement_Update;
43 void() Item_Arrangement_Spawn;
44
45 // Item_ScrollWindow Item_Window
46 // It will adapt its origin to always make the currently selected item visible
47 // There always has to be only *one* child window, that has a valid size
48 .vector direction; // first is space between frame and item
49 .entity _link; // used to determine changes of the ActiveItem
50
51 void() Item_ScrollWindow_Update;
52 void() Item_ScrollWindow_Spawn;