#include <GuiWrapper.h>

Public Member Functions | |
| GuiWrapper (GUIEventListener *eventHandler) | |
| ~GuiWrapper () | |
| bool | MouseClicked (int button, bool isDown, int x, int y) |
| bool | MouseMoved (int x, int y) |
| bool | AsciiKeyDown (unsigned char key) |
| bool | SpecialKeyDown (int key) |
| bool | Init (const char *dataPath) |
| void | SetDimensions (int width, int height) |
| void | RenderScene () |
| void | Update (double dt) |
| bool | IsActive () |
| void | SetActive (bool active) |
Private Member Functions | |
| void | Enter2DMode (int width, int height) |
| void | Exit2DMode () |
Private Attributes | |
| GUIEventListener * | handler |
| GUILabel * | fpsDisplay |
| GUIFrame * | guiFrame |
| bool | isActive |
| double | dt |
| double | elapsed |
| double | fps |
| int | frames |
Definition at line 10 of file GuiWrapper.h.
| GuiWrapper::GuiWrapper | ( | GUIEventListener * | eventHandler | ) |
Definition at line 7 of file GuiWrapper.cpp.
References dt, elapsed, fpsDisplay, frames, guiFrame, handler, and isActive.
| GuiWrapper::~GuiWrapper | ( | ) |
| bool GuiWrapper::MouseClicked | ( | int | button, | |
| bool | isDown, | |||
| int | x, | |||
| int | y | |||
| ) |
Definition at line 48 of file GuiWrapper.cpp.
References GUIPanel::checkMouseEvents(), GUIRectangle::getHeight(), guiFrame, MB_BUTTON1, MB_BUTTON2, MB_BUTTON3, ME_CLICKED, and ME_RELEASED.
Referenced by main(), MouseClicked(), and MyCallback().
| bool GuiWrapper::MouseMoved | ( | int | x, | |
| int | y | |||
| ) |
Definition at line 59 of file GuiWrapper.cpp.
References GUIPanel::checkMouseEvents(), GUIRectangle::getHeight(), guiFrame, MB_UNKNOWN_BUTTON, and ME_MOVED.
Referenced by main(), MouseMoved(), and MyCallback().
| bool GuiWrapper::AsciiKeyDown | ( | unsigned char | key | ) |
Definition at line 66 of file GuiWrapper.cpp.
References GUIPanel::checkKeyboardEvents(), guiFrame, KE_PRESSED, and SetActive().
Referenced by KeyTyped(), main(), and MyCallback().
| bool GuiWrapper::SpecialKeyDown | ( | int | key | ) |
| bool GuiWrapper::Init | ( | const char * | dataPath | ) |
Initializes GLWX
| dataPath | A character string to the data directory containing the Layouts and Textures directories. |
Definition at line 28 of file GuiWrapper.cpp.
References Logger::flush(), fpsDisplay, GUIPanel::getWidgetByCallbackString(), guiFrame, handler, Logger::initialize(), MediaPathManager::registerPath(), and GUIFrame::setGUIEventListener().
Referenced by main().
| void GuiWrapper::SetDimensions | ( | int | width, | |
| int | height | |||
| ) |
Definition at line 80 of file GuiWrapper.cpp.
References GUIFrame::forceUpdate(), guiFrame, and GUIRectangle::setDimensions().
Referenced by main(), ResizeWindow(), and SetPerspective().
| void GuiWrapper::RenderScene | ( | ) |
Definition at line 86 of file GuiWrapper.cpp.
References dt, Enter2DMode(), Exit2DMode(), fps, fpsDisplay, GUIRectangle::getHeight(), GUIRectangle::getWidth(), guiFrame, GUIFrame::render(), and GUIAlphaElement::setLabelString().
Referenced by glwxWidgetMapper::RenderGui(), and RenderScene().
| void GuiWrapper::Update | ( | double | dt | ) |
Definition at line 103 of file GuiWrapper.cpp.
References elapsed, fps, and frames.
Referenced by glwxWidgetMapper::RenderGui(), and RenderScene().
| bool GuiWrapper::IsActive | ( | ) |
Definition at line 117 of file GuiWrapper.cpp.
References isActive.
Referenced by glwxWidgetMapper::RenderGui(), and RenderScene().
| void GuiWrapper::SetActive | ( | bool | active | ) |
| void GuiWrapper::Enter2DMode | ( | int | width, | |
| int | height | |||
| ) | [private] |
| void GuiWrapper::Exit2DMode | ( | ) | [private] |
GUIEventListener* GuiWrapper::handler [private] |
GUILabel* GuiWrapper::fpsDisplay [private] |
GUIFrame* GuiWrapper::guiFrame [private] |
Definition at line 36 of file GuiWrapper.h.
Referenced by AsciiKeyDown(), GuiWrapper(), Init(), MouseClicked(), MouseMoved(), RenderScene(), and SetDimensions().
bool GuiWrapper::isActive [private] |
Definition at line 38 of file GuiWrapper.h.
Referenced by GuiWrapper(), IsActive(), and SetActive().
double GuiWrapper::dt [private] |
double GuiWrapper::elapsed [private] |
double GuiWrapper::fps [private] |
int GuiWrapper::frames [private] |
1.5.3