My Project
SallyAPI::GUI::CCheckbox Class Reference

Checkbox. More...

#include <Checkbox.h>

Inheritance diagram for SallyAPI::GUI::CCheckbox:
SallyAPI::GUI::CControl SallyAPI::GUI::CGUIBaseObject SallyAPI::Core::CBaseObject

List of all members.

Public Member Functions

 CCheckbox (SallyAPI::GUI::CGUIBaseObject *parent, int x, int y, int width, int controlId=0)
 Constructor.
virtual ~CCheckbox ()
 Destructor.
bool GetCheckStatus ()
 Gets the check status.
void SetCheckStatus (bool checked)
 Sets a check status.

Protected Member Functions

virtual void RenderControl ()
 Renders a control.
virtual bool ProcessMouseUp (int iX, int iY)
 Process a mouse up.

Protected Attributes

bool m_bChecked

Detailed Description

Checkbox.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

CCheckbox::CCheckbox ( SallyAPI::GUI::CGUIBaseObject parent,
int  x,
int  y,
int  width,
int  controlId = 0 
)

Constructor.

m_bChecked(false)

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]parentIf non-null, the parent.
xThe x coordinate.
yThe y coordinate.
widthThe width.
controlIdIdentifier for the control.
CCheckbox::~CCheckbox ( ) [virtual]

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

Gets the check status.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
true if it succeeds, false if it fails.
bool CCheckbox::ProcessMouseUp ( int  x,
int  y 
) [protected, virtual]

Process a mouse up.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if it succeeds, false if it fails.

Reimplemented from SallyAPI::GUI::CControl.

void CCheckbox::RenderControl ( ) [protected, virtual]

Renders a control.

Author:
Christian Knobloch
Date:
19.04.2010

Implements SallyAPI::GUI::CGUIBaseObject.

void CCheckbox::SetCheckStatus ( bool  checked)

Sets a check status.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
checkedtrue to checked.

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines