#include <CUI.h>
Inheritance diagram for CButton::

Public Methods | |
| CButton (int x, int y, string caption, Callback OnClick, void *app, int style=BTNS_FLAT, int tstyle=TS_NOSTYLE) | |
| Constructor. Takes (x,y), caption on button, callback function to be called when clicked, pointer to container application, and optional style. More... | |
| ~CButton () | |
| virtual int | update (CInputEvent *e) |
| Standard update method. More... | |
| virtual void | draw (CGfxScreen *s) |
| Standard draw method. More... | |
| int | hitTest (CInputEvent *e) |
Public Attributes | |
| string | m_caption |
| Callback | m_OnClick |
| int | m_state |
| int | m_style |
| int | m_tstyle |
| void * | m_app |
|
||||||||||||||||||||||||||||||||
|
Constructor. Takes (x,y), caption on button, callback function to be called when clicked, pointer to container application, and optional style.
|
|
|
|
|
|
Standard draw method.
Reimplemented from CWidget. |
|
|
|
|
|
Standard update method.
Reimplemented from CWidget. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001