Main Page | Class Hierarchy | Class List | File List | Class Members

aedButton Class Reference

#include <aedButton.h>

List of all members.

Public Member Functions

 aedButton (aedButtonType type=ROUND)
virtual void render (void)
virtual int wm_update (Uint32 msdelta)
virtual int wm_lbuttondown (Uint16 x, Uint16 y)
virtual int wm_lbuttonup (Uint16 x, Uint16 y)
virtual int wm_keydown (aedKeyEvent &event)
virtual int wm_mouseenter ()
virtual int wm_mouseleave ()
void setCaption (const std::string &caption)
void setImage (aedImage image)
bool getButtonState (void)
void setButtonState (bool s)
void setButtonType (aedButtonType type)
void setToggleMode (bool mode)
void click ()

Protected Attributes

bool m_ButtonDown
bool m_ToggleMode
aedButtonType m_ButtonType
aedImage * m_Image
aedStaticText m_Label


Detailed Description

The button class. Implements ordinary and toggled buttons.


Constructor & Destructor Documentation

aedButton::aedButton aedButtonType  type = ROUND  ) 
 

The constructor.

Parameters:
type type of the button you wish to create


Member Function Documentation

void aedButton::click  ) 
 

Simulate a button down and button up event.

bool aedButton::getButtonState void   )  [inline]
 

Get button state (pressed or not).

void aedButton::setButtonState bool  s  ) 
 

Change button state (true means button is pressed).

void aedButton::setButtonType aedButtonType  type  )  [inline]
 

Set button type.

void aedButton::setCaption const std::string &  caption  ) 
 

Set button's caption.

void aedButton::setImage aedImage  image  ) 
 

Set button's image.

void aedButton::setToggleMode bool  mode  ) 
 

Set toggle mode.


The documentation for this class was generated from the following file:
Generated on Mon Mar 1 19:56:18 2004 for aedGUI by doxygen 1.3.6