|
GlistEngine
|
#include <gGUIManager.h>
Public Types | |
| enum | { FONTTYPE_REGULAR , FONTTYPE_BOLD , FONTTYPE_ITALIC , FONTTYPE_BOLDITALIC } |
| enum | { FONT_FREESANS } |
Public Member Functions | |
| gGUIManager (gBaseApp *root, int width, int height) | |
| virtual | ~gGUIManager () |
| void | setTheme (int guiTheme) |
| int | getTheme () |
| gFont * | getFont (int fontNo, int fontType=FONTTYPE_REGULAR) |
| void | setCurrentFrame (gGUIFrame *currentFrame) |
| void | setCurrentFrame (gGUIFrame *currentFrame, int width, int height) |
| void | setupDialogue (gGUIDialogue *dialogue) |
| gGUIFrame * | getCurrentFrame () |
| bool | showDialogue (gGUIDialogue *dialogue) |
| bool | hideDialogue (gGUIDialogue *dialogue) |
| void | keyPressed (int key) |
| void | keyReleased (int key) |
| void | charPressed (unsigned int key) |
| void | mouseMoved (int x, int y) |
| void | mousePressed (int x, int y, int button) |
| void | mouseDragged (int x, int y, int button) |
| void | mouseReleased (int x, int y, int button) |
| void | mouseScrolled (int x, int y) |
| void | mouseEntered () |
| void | mouseExited () |
| void | windowResized (int w, int h) |
| void | update () |
| void | draw () |
| void | registerFrameForResizing (gGUIFrame *frame) |
| void | unregisterFrameForResizing (gGUIFrame *frame) |
| bool | isRegisteredFrameForResizing (gGUIFrame *frame) |
Public Attributes | |
| bool | isframeset |
Static Public Attributes | |
| static const int | GUITHEME_LIGHT = 0 |
| static const int | GUITHEME_DARK = 1 |
| static const int | GUITHEME_LIGHTBLUE = 2 |
| static const int | GUITHEME_DARKBLUE = 3 |
| static const int | fontnum = 1 |
| static const int | fonttypenum = 4 |
GUI Manager for GlistEngine
GUI is still in progress. Do not use in production.
In order to use gui, you should create a full window frame and set it in the guimanager. Then create a full window sizer and set it into the frame. Finally put your controls into the sizer. guimanager->frame->sizer->controls
| gGUIManager::gGUIManager | ( | gBaseApp * | root, |
| int | width, | ||
| int | height | ||
| ) |
|
virtual |
| void gGUIManager::charPressed | ( | unsigned int | key | ) |
| void gGUIManager::draw | ( | ) |
| gGUIFrame * gGUIManager::getCurrentFrame | ( | ) |
| gFont * gGUIManager::getFont | ( | int | fontNo, |
| int | fontType = FONTTYPE_REGULAR |
||
| ) |
| int gGUIManager::getTheme | ( | ) |
| bool gGUIManager::hideDialogue | ( | gGUIDialogue * | dialogue | ) |
| bool gGUIManager::isRegisteredFrameForResizing | ( | gGUIFrame * | frame | ) |
| void gGUIManager::keyPressed | ( | int | key | ) |
| void gGUIManager::keyReleased | ( | int | key | ) |
| void gGUIManager::mouseDragged | ( | int | x, |
| int | y, | ||
| int | button | ||
| ) |
| void gGUIManager::mouseEntered | ( | ) |
| void gGUIManager::mouseExited | ( | ) |
| void gGUIManager::mouseMoved | ( | int | x, |
| int | y | ||
| ) |
| void gGUIManager::mousePressed | ( | int | x, |
| int | y, | ||
| int | button | ||
| ) |
| void gGUIManager::mouseReleased | ( | int | x, |
| int | y, | ||
| int | button | ||
| ) |
| void gGUIManager::mouseScrolled | ( | int | x, |
| int | y | ||
| ) |
| void gGUIManager::registerFrameForResizing | ( | gGUIFrame * | frame | ) |
| void gGUIManager::setCurrentFrame | ( | gGUIFrame * | currentFrame | ) |
| void gGUIManager::setCurrentFrame | ( | gGUIFrame * | currentFrame, |
| int | width, | ||
| int | height | ||
| ) |
| void gGUIManager::setTheme | ( | int | guiTheme | ) |
| void gGUIManager::setupDialogue | ( | gGUIDialogue * | dialogue | ) |
| bool gGUIManager::showDialogue | ( | gGUIDialogue * | dialogue | ) |
| void gGUIManager::unregisterFrameForResizing | ( | gGUIFrame * | frame | ) |
| void gGUIManager::update | ( | ) |
| void gGUIManager::windowResized | ( | int | w, |
| int | h | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| bool gGUIManager::isframeset |