GuiWindow Class Reference
Allows GuiElements to be grouped together into a "window".
More...
#include <gui.h>
List of all members.
Detailed Description
Allows GuiElements to be grouped together into a "window".
Constructor & Destructor Documentation
GuiWindow::GuiWindow |
( |
int |
w, |
|
|
int |
h | |
|
) |
| | |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Parameters:
-
| w | Width of window |
| h | Height of window |
Member Function Documentation
Change the focus to the specified element This is intended for the primary GuiWindow only
- Parameters:
-
GuiElement * GuiWindow::GetGuiElementAt |
( |
u32 |
index |
) |
const |
Returns the GuiElement at the specified index
- Parameters:
-
| index | The index of the element |
- Returns:
- A pointer to the element at the index, NULL on error (eg: out of bounds)
int GuiWindow::GetSelected |
( |
|
) |
[virtual] |
u32 GuiWindow::GetSize |
( |
|
) |
|
Returns the size of the list of elements
- Returns:
- The size of the current element list
Inserts a GuiElement into the GuiWindow at the specified index
- Parameters:
-
| e | The GuiElement to insert. If it is already in the GuiWindow, it is removed first |
| i | Index in which to insert the element |
void GuiWindow::MoveSelectionHor |
( |
int |
d |
) |
|
Moves the selected element to the element to the left or right
- Parameters:
-
| d | Direction to move (-1 = left, 1 = right) |
void GuiWindow::MoveSelectionVert |
( |
int |
d |
) |
|
Moves the selected element to the element above or below
- Parameters:
-
| d | Direction to move (-1 = up, 1 = down) |
void GuiWindow::SetFocus |
( |
int |
f |
) |
[virtual] |
Sets the window focus
- Parameters:
-
Reimplemented from GuiElement.
void GuiWindow::SetState |
( |
int |
s |
) |
|
Sets the window's state
- Parameters:
-
void GuiWindow::SetVisible |
( |
bool |
v |
) |
[virtual] |
Sets the visibility of the window
- Parameters:
-
| v | visibility (true = visible) |
Reimplemented from GuiElement.
Changes window focus to the next focusable window or element If no element is in focus, changes focus to the first available element If B or 1 button is pressed, changes focus to the next available element This is intended for the primary GuiWindow only
- Parameters:
-
| t | Pointer to a GuiTrigger, containing the current input data from PAD/WPAD |
void GuiWindow::Update |
( |
GuiTrigger * |
t |
) |
[virtual] |
Updates the window and all elements contains within Allows the GuiWindow and all elements to respond to the input data specified
- Parameters:
-
| t | Pointer to a GuiTrigger, containing the current input data from PAD/WPAD |
Reimplemented from GuiElement.
Reimplemented in GuiKeyboard.
The documentation for this class was generated from the following files: