Inherits IControl, and IControl.
Inherited by ButtonGroup, CButton, CButton, CContextMenu, CCrButton, CCrtypeMenu, CDialogRedButton, CDialogRedButton, CElevatorButton, CLabel, CLabel, CListBox, CListBox, COSButton, CSmallArrowDown, CSmallArrowDown, CSmallArrowUp, CSmallArrowUp, CSmallButton, CSmallButton, CSprite, CSprite, CTextBox, CTextBox, FilterButton, InjectButton, RegChaRegion, RegCust, and Window.
List of all members.
Public Member Functions |
| Control () |
| Control (int left, int top, int width, int height) |
bool | IsVisible () |
bool | IsActive () |
int | Left () |
int | Top () |
int | Right () |
int | Bottom () |
int | Height () |
int | Width () |
IControl@ | Position (int x, int y) |
IControl@ | Left (int x) |
IControl@ | Top (int y) |
IControl@ | Width (int w) |
IControl@ | Height (int h) |
IControl@ | Size (int w, int h) |
IControl@ | Position (string& iniKey) |
bool | IsInside (int x, int y) |
void | SetParent (IControl@ control) |
void | Enable () |
void | Disable () |
void | Show (bool showAll=false) |
void | Show (int left, int top) |
void | Hide () |
void | ShowWindow () |
void | ShowWindow (int x, int y) |
void | HideWindow () |
void | Center () |
| Centers control in parent control.
|
void | Init () |
void | SetFocus (bool focused) |
void | AddControl (IControl@ control) |
bool | MouseDown (int x, int y, int click) |
bool | MouseUp (int x, int y, int click) |
void | MouseMove (int fromX, int fromY, int toX, int toY) |
bool | KeyDown (uint8 key) |
void | KeyUp (uint8 key) |
void | Draw () |
void | Update () |
void | Click () |
void | GotFocus () |
void | LostFocus () |
void | OnShow () |
void | OnHide () |
void | OnEnabled () |
void | OnDisabled () |
| Control (int left, int top, int width, int height) |
bool | IsVisible () |
bool | IsActive () |
int | Left () |
int | Top () |
int | Right () |
int | Bottom () |
int | Height () |
int | Width () |
bool | IsInside (int x, int y) |
void | SetParent (IControl@ control) |
void | Enable () |
void | Disable () |
void | Show () |
void | Show (int dx, int dy) |
void | Hide () |
void | SetFocus (bool focused) |
void | AddControl (IControl@ control) |
bool | MouseDown (int click) |
bool | MouseUp (int click) |
void | MouseMove (int x, int y) |
bool | KeyDown (uint8 key) |
void | KeyUp (uint8 key) |
void | Draw () |
void | Update () |
void | Click () |
void | GotFocus () |
void | LostFocus () |
Public Attributes |
IControl@ | parent |
array< IControl@> | controls |
int | left |
int | top |
int | width |
int | height |
bool | active |
bool | visible |
bool | focus |
bool | mousePressed |
int | mouseX |
int | mouseY |
Constructor & Destructor Documentation
Control |
( |
int |
left, |
|
|
int |
top, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
Control |
( |
int |
left, |
|
|
int |
top, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
Member Function Documentation
bool IsInside |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
void Show |
( |
bool |
showAll = false |
) |
|
void Show |
( |
int |
left, |
|
|
int |
top | |
|
) |
| | |
void ShowWindow |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
Centers control in parent control.
Implements IControl.
void SetFocus |
( |
bool |
focused |
) |
|
bool MouseDown |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
click | |
|
) |
| | |
bool MouseUp |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
click | |
|
) |
| | |
void MouseMove |
( |
int |
fromX, |
|
|
int |
fromY, |
|
|
int |
toX, |
|
|
int |
toY | |
|
) |
| | |
bool KeyDown |
( |
uint8 |
key |
) |
|
Implements IControl.
Reimplemented in InjectLabel, FilterButton, CElevatorButton, CButton, CDialogRedButton, CSmallButton, CSmallArrowUp, CSmallArrowDown, CLabel, CTextBox, CSprite, CSpriteEx, CListBox, RegChaRegion, RegCust, COSButton, InjectButton, CCrButton, CButton, CDialogRedButton, CSmallButton, CSmallArrowUp, CSmallArrowDown, CLabel, CTextBox, CSprite, and CListBox.
Reimplemented in CKillerButton, CNeutralizeButton, CCleanButton, CPossessButton, CPickButton, CAttackButton, CMoveToButton, CStopButton, CTradeButton, CTeleportButton, CAirstrikeButton, CXpButton, CXpOKButton, CXpCancelButton, CSpawnNpcButton, CFollowersAttackButton, CFollowersAttackHPButton, CFollowersMoveToButton, CFollowersMoveToHPButton, CFollowersStopButton, CFollowersFollowButton, CFollowersRegroupButton, CFollowersFleeButton, CFollowersMoveManualButton, CFollowersMoveAutoButton, CFollowersPushButton, CButtonEx, FilterButton, CElevatorButton, CListBox, Tag, ArrowUp, ArrowDn, COSButton, InjectButton, CSpawnNpcOKButton, CSpawnNpcCancelButton, CSpawnNpcList, CSpawnNpcScrollDown, CSpawnNpcScrollUp, CSomeButton, CCrButton, and CListBox.
bool IsInside |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
void Show |
( |
int |
dx, |
|
|
int |
dy | |
|
) |
| | |
void SetFocus |
( |
bool |
focused |
) |
|
bool MouseDown |
( |
int |
click |
) |
|
bool MouseUp |
( |
int |
click |
) |
|
void MouseMove |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
bool KeyDown |
( |
uint8 |
key |
) |
|
Implements IControl.
Reimplemented in InjectLabel, FilterButton, CElevatorButton, CButton, CDialogRedButton, CSmallButton, CSmallArrowUp, CSmallArrowDown, CLabel, CTextBox, CSprite, CSpriteEx, CListBox, RegChaRegion, RegCust, COSButton, InjectButton, CCrButton, CButton, CDialogRedButton, CSmallButton, CSmallArrowUp, CSmallArrowDown, CLabel, CTextBox, CSprite, and CListBox.
Reimplemented in CKillerButton, CNeutralizeButton, CCleanButton, CPossessButton, CPickButton, CAttackButton, CMoveToButton, CStopButton, CTradeButton, CTeleportButton, CAirstrikeButton, CXpButton, CXpOKButton, CXpCancelButton, CSpawnNpcButton, CFollowersAttackButton, CFollowersAttackHPButton, CFollowersMoveToButton, CFollowersMoveToHPButton, CFollowersStopButton, CFollowersFollowButton, CFollowersRegroupButton, CFollowersFleeButton, CFollowersMoveManualButton, CFollowersMoveAutoButton, CFollowersPushButton, CButtonEx, FilterButton, CElevatorButton, CListBox, Tag, ArrowUp, ArrowDn, COSButton, InjectButton, CSpawnNpcOKButton, CSpawnNpcCancelButton, CSpawnNpcList, CSpawnNpcScrollDown, CSpawnNpcScrollUp, CSomeButton, CCrButton, and CListBox.
Member Data Documentation