#include <Button.h>
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. |
GUI Button.
Definition at line 3 of file Button.h.
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.
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.