List of all members.
Detailed Description
A GUI object.
- Note:
- The GUI does not use bitmap fonts of any sort, only TrueType fonts.
Member Typedef Documentation
Constructor & Destructor Documentation
| Gui::Gui |
( |
const Gui & |
|
) |
[private] |
Member Function Documentation
| void Gui::add |
( |
Control * |
control |
) |
|
Adds a Control to the Gui.
- Parameters:
-
- Returns:
NULL on error. Otherwise a pointer to the added Control.
- Todo:
- This is currently hard-coded but should instead be set via an internal skin descriptor.
Cleans up all GUI elements and refreshes the GUI in a clean state with no Controls.
| bool Gui::controlHasFocus |
( |
|
) |
[private] |
Scans through all Control's to check for focus.
- Returns:
true if any Controls have focus, otherwise false.
- Todo:
- I hate the name of this function. We need to come up with a better name.
| Control* Gui::find |
( |
const std::string & |
controlName |
) |
const |
| Font* Gui::getFont |
( |
const std::string & |
fontName |
) |
const |
Returns a list of Font names currently loaded into the Gui system.
- Returns:
- Vector of strings containing the names of fonts. If there are no fonts in the system an empty vector is returned.
| int Gui::getMouseX |
( |
|
) |
const [inline] |
| int Gui::getMouseY |
( |
|
) |
const [inline] |
| void Gui::grabMouseMotion |
( |
Event * |
event |
) |
[private] |
Grabs mouse motion events and sets internal mouse pointer coords.
| Gui& Gui::operator= |
( |
const Gui & |
|
) |
[private] |
| void Gui::push |
( |
Event * |
event |
) |
[virtual] |
| void Gui::remove |
( |
Control * |
control |
) |
|
| void Gui::scanFonts |
( |
const std::string & |
searchPath |
) |
[private] |
| void Gui::sendToFront |
( |
Control * |
control |
) |
|
Brings the specified Control to the top of the Control stack.
- Parameters:
-
- Note:
- This function does not set focus.
| void Gui::setFocus |
( |
bool |
focus |
) |
|
Sets whether or not the GUI has focus.
| void Gui::testForFocus |
( |
|
) |
[private] |
Tests to see if a mouse click occured within a Control in the Control List and, if yes, sets focus for that Control.
| Event * Gui::translateMouse |
( |
Event |
event |
) |
[private] |
Translates mouse input into higher-level Event messages.
Updated the GUI state.
- Returns:
- Returns
false if the GUI received an EVENT_SYS_QUIT message.
Member Data Documentation
Internal list of Child Control's
Stores a message should any errors occur.
List of fonts found in the specified fonts directory.
Flag indicating that the GUI is still in an active state.
Flag indicating that the left mouse button is pressed.
Flag indicating that the left mouse button is pressed.
Previous mouse coordinates.
Flag indicating that the left mouse button is pressed.
Current mouse coordinates.
Number of Control objects being managed by the GUI.
Internal Skin used to render controls.
The documentation for this class was generated from the following files:
- C:/Development/LoM/client/src/Gui/Gui.h
- C:/Development/LoM/client/src/Gui/Gui.cpp