Public Member Functions

Button Class Reference

GUI Button. More...

#include <Button.h>

Inheritance diagram for Button:
Control IControl

List of all members.

Public Member Functions

 Button (pIGeometry geometry, pITexture texture, void callback(pIControl))
 ~Button (void)
 Destructor.
bool hitTest (int mouseX, int mouseY)
 Test if the mouse is over the controller.

Detailed Description

GUI Button.

Definition at line 3 of file Button.h.


Constructor & Destructor Documentation

Button::Button ( pIGeometry  geometry,
pITexture  texture,
void   callbackpIControl 
)

Create button with the specified geometry and texture and use 'callback' as callback function.

Definition at line 3 of file Button.cpp.

Button::~Button ( void   ) 

Destructor.

Definition at line 9 of file Button.cpp.


Member Function Documentation

bool Button::hitTest ( int  mouseX,
int  mouseY 
) [virtual]

Test if the mouse is over the controller.

Reimplemented from Control.

Definition at line 13 of file Button.cpp.


The documentation for this class was generated from the following files: