]> icculus.org git repositories - divverent/nexuiz.git/blob - data/scmenu/source/util/rect.qh
restructure
[divverent/nexuiz.git] / data / scmenu / source / util / rect.qh
1 // NG Menu
2 // util/rect.qh
3
4 // rect utils
5 // a rect def. consists of 2 vectors (pos & size)
6 bool( vector pPoint, vector pPos, vector pSize ) Util_InRect;
7 vector( vector pPoint, vector pClipPos, vector pClipSize ) Util_GetClipDelta;
8 //vector( vector pPoint, vector pPos, vector pSize ) Util_ClipPoint;
9 // clips the rect [pPos, pSize] against [pClipPos, pClipSize] retuns the clipped size
10 vector( vector pPos, vector pSize, vector pClipPos, vector pClipSize ) Util_ClipRect;
11
12 bool( vector pPos1, vector pSize1, vector pPos2, vector pSize2 ) Util_RectInRect;
13
14 // clip stack functions
15 string( string pStack ) Util_ClipStack_Reset;
16 string( string pStack, vector pPos, vector pSize ) Util_ClipStack_Push;
17 string( string pStack ) Util_ClipStack_Pop;
18
19 vector( string pStack ) Util_ClipStack_GetPosition;
20 vector( string pStack ) Util_ClipStack_GetSize;
21
22 // origin stack functions
23 string( string pStack ) Util_OriginStack_Reset;
24 string( string pStack, vector pOrigin ) Util_OriginStack_Push;
25 string( string pStack ) Util_OriginStack_Pop;
26
27 vector( string pStack ) Util_OriginStack_Get;