GuiButton Class Reference
Display, manage, and manipulate buttons in the GUI. Buttons can have images, icons, text, and sound set (all of which are optional).
More...
#include <gui.h>
List of all members.
Detailed Description
Display, manage, and manipulate buttons in the GUI. Buttons can have images, icons, text, and sound set (all of which are optional).
Constructor & Destructor Documentation
GuiButton::GuiButton |
( |
int |
w, |
|
|
int |
h | |
|
) |
| | |
Constructor
- Parameters:
-
Constructor for the
GuiButton class.
GuiButton::~GuiButton |
( |
|
) |
|
Destructor.
Destructor for the GuiButton class.
Member Function Documentation
void GuiButton::Draw |
( |
|
) |
[virtual] |
Constantly called to draw the GuiButton.
Draw the button on screen
Reimplemented from GuiElement.
void GuiButton::SetIcon |
( |
GuiImage * |
i |
) |
|
Sets the button's icon
- Parameters:
-
void GuiButton::SetIconClick |
( |
GuiImage * |
i |
) |
|
Sets the button's icon on click
- Parameters:
-
void GuiButton::SetIconHold |
( |
GuiImage * |
i |
) |
|
Sets the button's icon on hold
- Parameters:
-
void GuiButton::SetIconOver |
( |
GuiImage * |
i |
) |
|
Sets the button's icon on over
- Parameters:
-
void GuiButton::SetImage |
( |
GuiImage * |
i |
) |
|
Sets the button's image
- Parameters:
-
void GuiButton::SetImageClick |
( |
GuiImage * |
i |
) |
|
Sets the button's image on click
- Parameters:
-
void GuiButton::SetImageHold |
( |
GuiImage * |
i |
) |
|
Sets the button's image on hold
- Parameters:
-
void GuiButton::SetImageOver |
( |
GuiImage * |
i |
) |
|
Sets the button's image on over
- Parameters:
-
void GuiButton::SetLabel |
( |
GuiText * |
t, |
|
|
int |
n = 0 | |
|
) |
| | |
Sets the button's label
- Parameters:
-
| t | Pointer to GuiText object |
| n | Index of label to set (optional, default is 0) |
void GuiButton::SetLabelClick |
( |
GuiText * |
t, |
|
|
int |
n = 0 | |
|
) |
| | |
Sets the button's label on click
- Parameters:
-
| t | Pointer to GuiText object |
| n | Index of label to set (optional, default is 0) |
void GuiButton::SetLabelHold |
( |
GuiText * |
t, |
|
|
int |
n = 0 | |
|
) |
| | |
Sets the button's label on hold
- Parameters:
-
| t | Pointer to GuiText object |
| n | Index of label to set (optional, default is 0) |
void GuiButton::SetLabelOver |
( |
GuiText * |
t, |
|
|
int |
n = 0 | |
|
) |
| | |
Sets the button's label on over (eg: different colored text)
- Parameters:
-
| t | Pointer to GuiText object |
| n | Index of label to set (optional, default is 0) |
void GuiButton::SetSoundClick |
( |
GuiSound * |
s |
) |
|
Sets the sound to play on click
- Parameters:
-
void GuiButton::SetSoundHold |
( |
GuiSound * |
s |
) |
|
Sets the sound to play on hold
- Parameters:
-
void GuiButton::SetSoundOver |
( |
GuiSound * |
s |
) |
|
Sets the sound to play on over
- Parameters:
-
void GuiButton::Update |
( |
GuiTrigger * |
t |
) |
[virtual] |
Constantly called to allow the GuiButton to respond to updated input data
- Parameters:
-
| t | Pointer to a GuiTrigger, containing the current input data from PAD/WPAD |
Reimplemented from GuiElement.
The documentation for this class was generated from the following files: