Public Member Functions | Public Attributes

Control Class Reference

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 ()
IControlPosition (int x, int y)
IControlLeft (int x)
IControlTop (int y)
IControlWidth (int w)
IControlHeight (int h)
IControlSize (int w, int h)
IControlPosition (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

IControlparent
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 (  ) 
Control ( int  left,
int  top,
int  width,
int  height 
)
Control ( int  left,
int  top,
int  width,
int  height 
)

Member Function Documentation

bool IsVisible (  ) 

Implements IControl.

bool IsActive (  ) 

Implements IControl.

int Left (  ) 

Implements IControl.

Reimplemented in InjectLabel, ButtonGroup, and InjectButton.

int Top (  ) 

Implements IControl.

Reimplemented in InjectLabel, ButtonGroup, and InjectButton.

int Right (  ) 

Implements IControl.

int Bottom (  ) 

Implements IControl.

int Height (  ) 

Implements IControl.

int Width (  ) 

Implements IControl.

IControl@ Position ( int  x,
int  y 
)

Implements IControl.

IControl@ Left ( int  x  ) 

Implements IControl.

IControl@ Top ( int  y  ) 

Implements IControl.

IControl@ Width ( int  w  ) 

Implements IControl.

IControl@ Height ( int  h  ) 

Implements IControl.

IControl@ Size ( int  w,
int  h 
)

Implements IControl.

IControl@ Position ( string iniKey  ) 

Implements IControl.

bool IsInside ( int  x,
int  y 
)
void SetParent ( IControl control  ) 

Implements IControl.

void Enable (  ) 

Implements IControl.

void Disable (  ) 

Implements IControl.

void Show ( bool  showAll = false  ) 

Implements IControl.

void Show ( int  left,
int  top 
)

Implements IControl.

Reimplemented in CCrtypeMenu.

void Hide (  ) 

Implements IControl.

void ShowWindow (  ) 

Implements IControl.

void ShowWindow ( int  x,
int  y 
)

Implements IControl.

void HideWindow (  ) 

Implements IControl.

void Center (  ) 

Centers control in parent control.

Implements IControl.

void Init (  ) 
void SetFocus ( bool  focused  ) 
void AddControl ( IControl control  ) 
bool MouseDown ( int  x,
int  y,
int  click 
)

Implements IControl.

Reimplemented in RegCust.

bool MouseUp ( int  x,
int  y,
int  click 
)

Implements IControl.

void MouseMove ( int  fromX,
int  fromY,
int  toX,
int  toY 
)

Implements IControl.

Reimplemented in COSButton.

bool KeyDown ( uint8  key  ) 

Implements IControl.

Reimplemented in CTextBox, and CTextBox.

void KeyUp ( uint8  key  ) 

Implements IControl.

void Draw (  ) 
void Update (  ) 

Implements IControl.

Reimplemented in FilterButton.

void Click (  ) 
void GotFocus (  ) 
void LostFocus (  ) 
void OnShow (  ) 

Reimplemented in COSButton.

void OnHide (  ) 

Reimplemented in COSButton.

void OnEnabled (  ) 

Reimplemented in COSButton.

void OnDisabled (  ) 

Reimplemented in COSButton.

bool IsVisible (  ) 

Implements IControl.

bool IsActive (  ) 

Implements IControl.

int Left (  ) 

Implements IControl.

Reimplemented in InjectLabel, ButtonGroup, and InjectButton.

int Top (  ) 

Implements IControl.

Reimplemented in InjectLabel, ButtonGroup, and InjectButton.

int Right (  ) 

Implements IControl.

int Bottom (  ) 

Implements IControl.

int Height (  ) 

Implements IControl.

int Width (  ) 

Implements IControl.

bool IsInside ( int  x,
int  y 
)
void SetParent ( IControl control  ) 

Implements IControl.

void Enable (  ) 

Implements IControl.

void Disable (  ) 

Implements IControl.

void Show (  ) 

Implements IControl.

void Show ( int  dx,
int  dy 
)

Implements IControl.

Reimplemented in CCrtypeMenu.

void Hide (  ) 

Implements IControl.

void SetFocus ( bool  focused  ) 
void AddControl ( IControl control  ) 
bool MouseDown ( int  click  ) 

Implements IControl.

Reimplemented in CCrtypeMenu.

bool MouseUp ( int  click  ) 

Implements IControl.

void MouseMove ( int  x,
int  y 
)

Implements IControl.

bool KeyDown ( uint8  key  ) 

Implements IControl.

Reimplemented in CTextBox, and CTextBox.

void KeyUp ( uint8  key  ) 

Implements IControl.

void Draw (  ) 
void Update (  ) 

Implements IControl.

Reimplemented in FilterButton.

void Click (  ) 
void GotFocus (  ) 
void LostFocus (  ) 

Member Data Documentation

array< IControl@> controls
int left
int top
int width
int height
bool active
bool visible
bool focus
int mouseX
int mouseY