#include "mzfc.h"#include "MzApp.h"#include "MzString.h"#include <vector>组合类型 | |
| class | UiWin |
| MZFC的UI控件基类 更多... | |
宏定义 | |
| #define | SP_NOMOVE 0x0002 |
| UiWin::SetPos() 's flag value: no moving | |
| #define | SP_NOSIZE 0x0001 |
| UiWin::SetPos() 's flag value: no resizing | |
| #define | UI_DRAGMODE_AUTO 1 |
| Drag mode:auto mode (drag-able when the content is longer than the window) | |
| #define | UI_DRAGMODE_FIXED 2 |
| Drag mode:fixed mode(not drag-able) | |
| #define | UI_DRAGMODE_FREE 0 |
| Drag mode:drag-able in any situation | |
| #define | UI_SCROLLTO_BOTTOM 1 |
| scroll to bottom | |
| #define | UI_SCROLLTO_POS 2 |
| scroll to position | |
| #define | UI_SCROLLTO_TOP 0 |
| scroll to top | |
类型定义 | |
| typedef vector< UiWin * > | UiWins |
函数 | |
| void MZFC_API | CalcRelativePos (UiWin *pWin, int &x, int &y, bool bRelative) |
| calculate a coordinate relative to the uiwin | |
| UiWin * | TraverseUiWin (UiWin *pWin, int x, int y) |
| #define SP_NOMOVE 0x0002 |
UiWin::SetPos() 's flag value: no moving
| #define SP_NOSIZE 0x0001 |
UiWin::SetPos() 's flag value: no resizing
| #define UI_DRAGMODE_AUTO 1 |
Drag mode:auto mode (drag-able when the content is longer than the window)
| #define UI_DRAGMODE_FIXED 2 |
Drag mode:fixed mode(not drag-able)
| #define UI_DRAGMODE_FREE 0 |
Drag mode:drag-able in any situation
| #define UI_SCROLLTO_BOTTOM 1 |
scroll to bottom
| #define UI_SCROLLTO_POS 2 |
scroll to position
| #define UI_SCROLLTO_TOP 0 |
scroll to top
| void MZFC_API CalcRelativePos | ( | UiWin * | pWin, | |
| int & | x, | |||
| int & | y, | |||
| bool | bRelative | |||
| ) |
calculate a coordinate relative to the uiwin
| pWin | the uiwin that is to be referenced | |
| bRelative | true: the input (x,y)is relative to the pWin,the output is relative to the pWin's container window false: the input (x,y)is relative to the the pWin's container window,the output is relative to the pWin | |
| x | [in,out] the x coordinate | |
| y | [in,out] the y coordinate |