Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CButton Class Reference

CButton - Regluar pushbutton widget. More...

#include <CUI.h>

Inheritance diagram for CButton::

CWidget List of all members.

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

Detailed Description

CButton - Regluar pushbutton widget.


Constructor & Destructor Documentation

CButton::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.

CButton::~CButton  
 


Member Function Documentation

void CButton::draw CGfxScreen   s [virtual]
 

Standard draw method.

Reimplemented from CWidget.

int CButton::hitTest CInputEvent   e
 

int CButton::update CInputEvent   e [virtual]
 

Standard update method.

Reimplemented from CWidget.


Member Data Documentation

void* CButton::m_app
 

string CButton::m_caption
 

Callback CButton::m_OnClick
 

int CButton::m_state
 

int CButton::m_style
 

int CButton::m_tstyle
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:51 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001