Button Class Reference

#include <button.h>

Inheritance diagram for Button:

ButtonBitmapped ButtonBase List of all members.

Public Member Functions

 Button (TWindow *menu, char *identbranch, int asciicode=0, bool keepkey=0)
virtual void draw_default ()
virtual void draw_focus ()
virtual void draw_selected ()

Public Attributes

RLE_SPRITE * bmp_default
RLE_SPRITE * bmp_focus
RLE_SPRITE * bmp_selected

Detailed Description

A single button.

Naming:

The "default" image is used for auto-location.


Constructor & Destructor Documentation

Button::Button TWindow menu,
char *  identbranch,
int  asciicode = 0,
bool  keepkey = 0
 

constructor


Member Function Documentation

void Button::draw_default  )  [virtual]
 

draw routine when mouse is outside the button area

Reimplemented from ButtonBitmapped.

void Button::draw_focus  )  [virtual]
 

draw routine when mouse is inside the button area

Reimplemented from ButtonBitmapped.

void Button::draw_selected  )  [virtual]
 

draw routine when the mouse button is pressed

Reimplemented from ButtonBitmapped.


Member Data Documentation

RLE_SPRITE* Button::bmp_default
 

the bitmap that's shown by default, ie if there's no mouse nearby. This bitmap is required

RLE_SPRITE* Button::bmp_focus
 

the bitmap that's show when the mouse is over the area

RLE_SPRITE* Button::bmp_selected
 

the bitmap that's show when the mouse button is pressed


The documentation for this class was generated from the following files:
Generated on Tue Feb 14 13:48:44 2006 for Twgui by  doxygen 1.4.6-NO