|
GlistEngine
|
#include <gBaseGUIObject.h>


Public Types | |
| enum | { TEXTALIGNMENT_LEFT , TEXTALIGNMENT_MIDDLE , TEXTALIGNMENT_RIGHT } |
Public Member Functions | |
| gBaseGUIObject () | |
| virtual | ~gBaseGUIObject () |
| int | getId () |
| int | getType () |
| void | setEnabled (bool isEnabled) |
| bool | isEnabled () |
| void | setTitleOn (bool isTitleOn) |
| bool | isTitleOn () |
| virtual void | setTopParent (gBaseGUIObject *parentGUIObject) |
| gBaseGUIObject * | getTopParent () |
| virtual void | setParent (gBaseGUIObject *parentGUIObject) |
| gBaseGUIObject * | getParent () |
| void | setParentSlotNo (int parentSlotLineNo, int parentSlotColumnNo) |
| int | getParentSlotLineNo () |
| int | getParentSlotColumnNo () |
| void | setTitle (std::string title) |
| std::string | getTitle () |
| virtual void | update ()=0 |
| virtual void | draw ()=0 |
| virtual int | getCursor (int x, int y) |
| virtual void | keyPressed (int key) |
| virtual void | keyReleased (int key) |
| virtual void | charPressed (unsigned int codepoint) |
| virtual void | mouseMoved (int x, int y) |
| virtual void | mousePressed (int x, int y, int button) |
| virtual void | mouseDragged (int x, int y, int button) |
| virtual void | mouseReleased (int x, int y, int button) |
| virtual void | mouseScrolled (int x, int y) |
| virtual void | mouseEntered () |
| virtual void | mouseExited () |
| virtual void | windowResized (int w, int h) |
| virtual void | onGUIEvent (int guiObjectId, int eventType, int sourceEventType, std::string value1="", std::string value2="") |
| void | setRootApp (gBaseApp *root) |
| virtual void | setCursorOn (bool isOn) |
Public Member Functions inherited from gRenderObject | |
| gRenderObject () | |
| int | getScreenWidth () |
| int | getScreenHeight () |
| void | pushMatrix () |
| void | popMatrix () |
Public Member Functions inherited from gObject | |
| gObject () | |
| void | logi (std::string message) |
| void | logd (std::string message) |
| void | logw (std::string message) |
| void | loge (std::string message) |
| void | logi (std::string tag, std::string message) |
| void | logd (std::string tag, std::string message) |
| void | logw (std::string tag, std::string message) |
| void | loge (std::string tag, std::string message) |
Static Public Member Functions | |
| static void | setBackgroundColor (gColor *backgroundColor) |
| static gColor * | getBackgroundColor () |
| static void | setMiddlegroundColor (gColor *middlegroundColor) |
| static gColor * | getMiddlegroundColor () |
| static void | setForegroundColor (gColor *foregroundColor) |
| static gColor * | getForegroundColor () |
| static void | setTextBackgroundColor (gColor *textBackgroundColor) |
| static gColor * | getTextBackgroundColor () |
| static void | setNavigationBackgroundColor (gColor *navigationBackgroundColor) |
| static gColor * | getNavigationBackgroundColor () |
| static void | setFont (gFont *font) |
| static gFont * | getFont () |
| static void | setFontColor (gColor *fontColor) |
| static gColor * | getFontColor () |
| static void | setNavigationFontColor (gColor *navigationFontColor) |
| static gColor * | getNavigationFontColor () |
| static void | setButtonColor (gColor *color) |
| static gColor * | getButtonColor () |
| static void | setPressedButtonColor (gColor *color) |
| static gColor * | getPressedButtonColor () |
| static void | setDisabledButtonColor (gColor *color) |
| static gColor * | getDisabledButtonColor () |
| static void | setButtonFontColor (gColor *color) |
| static gColor * | getButtonFontColor () |
| static void | setPressedButtonFontColor (gColor *color) |
| static gColor * | getPressedButtonFontColor () |
| static void | setDisabledButtonFontColor (gColor *color) |
| static gColor * | getDisabledButtonFontColor () |
Static Public Member Functions inherited from gRenderObject | |
| static void | setScreenSize (int screenWidth, int screenHeight) |
| static void | setUnitScreenSize (int unitWidth, int unitHeight) |
| static void | setScreenScaling (int screenScaling) |
| static void | enableShadowMapping () |
| static void | disableShadowMapping () |
| static bool | isShadowMappingEnabled () |
| static gRenderer * | getRenderer () |
| static void | destroyRenderer () |
| static void | createRenderer () |
Static Public Member Functions inherited from gObject | |
| static std::string | gGetAppDir () |
| static std::string | gGetAssetsDir () |
| static void | gSetAssetsDir (std::string assetsDir) |
| static std::string | gGetFilesDir () |
| static std::string | gGetImagesDir () |
| static std::string | gGetFontsDir () |
| static std::string | gGetModelsDir () |
| static std::string | gGetTexturesDir () |
| static std::string | gGetShadersDir () |
| static std::string | gGetSoundsDir () |
| static std::string | gGetDatabasesDir () |
| static std::string | gGetVideosDir () |
| static void | setCurrentResolution (int scalingNo, int currentResolutionNo) |
Public Attributes | |
| int | id |
| int | type |
| int | left |
| int | top |
| int | right |
| int | bottom |
| int | width |
| int | height |
| int | titlex |
| int | titley |
| int | titleheight |
| bool | isfocused |
| bool | iscursoron |
| bool | issizer |
| bool | iscontainer |
| bool | isresizable |
Static Public Attributes | |
| static const int | GUIEVENT_FOCUSED = -1 |
| static const int | GUIEVENT_UNFOCUSED = -2 |
| static const int | CURSOR_ARROW = 0 |
| static const int | CURSOR_IBEAM = 1 |
| static const int | CURSOR_CROSSHAIR = 2 |
| static const int | CURSOR_HAND = 3 |
| static const int | CURSOR_HRESIZE = 4 |
| static const int | CURSOR_VRESIZE = 5 |
| static int | focusid |
| static int | previousfocusid |
Static Public Attributes inherited from gObject | |
| static const int | LOGLEVEL_SILENT |
| static const int | LOGLEVEL_DEBUG |
| static const int | LOGLEVEL_INFO |
| static const int | LOGLEVEL_WARNING |
| static const int | LOGLEVEL_ERROR |
Protected Attributes | |
| std::string | title |
| gBaseApp * | root |
| gBaseGUIObject * | topparent |
| gBaseGUIObject * | parent |
| bool | isenabled |
| bool | istitleon |
| int | parentslotlineno |
| int | parentslotcolumnno |
Static Protected Attributes | |
| static gColor * | backgroundcolor |
| static gColor * | middlegroundcolor |
| static gColor * | foregroundcolor |
| static gColor * | textbackgroundcolor |
| static gColor * | navigationbackgroundcolor |
| static gFont * | font |
| static gColor * | fontcolor |
| static gColor * | navigationfontcolor |
| static gColor * | buttoncolor |
| static gColor * | pressedbuttoncolor |
| static gColor * | disabledbuttoncolor |
| static gColor * | buttonfontcolor |
| static gColor * | pressedbuttonfontcolor |
| static gColor * | disabledbuttonfontcolor |
| static gGUIActionManager | actionmanager |
| static gGUIResources | res |
Static Protected Attributes inherited from gRenderObject | |
| static bool | isshadowmappingenabled |
Static Protected Attributes inherited from gObject | |
| static int | renderpassnum |
| static int | renderpassno |
| static int | releasescaling |
| static int | releaseresolution |
Friends | |
| class | gAppManager |
| gBaseGUIObject::gBaseGUIObject | ( | ) |
|
virtual |
|
virtual |
Reimplemented in gGUIContainer, gGUIDialogue, gGUIForm, gGUIGrid, gGUINumberBox, gGUISizer, gGUITextbox, and gGUITimebox.
|
pure virtual |
Implemented in gGUIBitmap, gGUIButton, gGUIColorbox, gGUIColorPicker, gGUIColumnChart, gGUIContainer, gGUIContextMenu, gGUIControl, gGUIDate, gGUIDialogue, gGUIFrame, gGUIGraph, gGUIImageButton, gGUIMenuItem, gGUIMenubar, gGUINavigation, gGUINumberBox, gGUIPane, gGUIPanel, gGUIPieGraph, gGUIProgressBar, gGUIRadioButton, gGUIScrollable, gGUISizer, gGUISlider, gGUIStatusBar, gGUISwitchButton, gGUITable, gGUIText, gGUITextbox, gGUITimebox, gGUIToolbar, gGUIToolbarButton, gGUITooltipText, gGUICheckbox, gGUIDropdownList, gGUINotebook, and gGUIRadarChart.
|
static |
|
static |
|
static |
|
virtual |
Reimplemented in gGUIContainer, gGUIControl, gGUIDialogue, gGUIForm, gGUIGrid, gGUISizer, and gGUITextbox.
|
static |
|
static |
|
static |
|
static |
|
static |
| int gBaseGUIObject::getId | ( | ) |
|
static |
|
static |
|
static |
| gBaseGUIObject * gBaseGUIObject::getParent | ( | ) |
| int gBaseGUIObject::getParentSlotColumnNo | ( | ) |
| int gBaseGUIObject::getParentSlotLineNo | ( | ) |
|
static |
|
static |
|
static |
| std::string gBaseGUIObject::getTitle | ( | ) |
| gBaseGUIObject * gBaseGUIObject::getTopParent | ( | ) |
| int gBaseGUIObject::getType | ( | ) |
| bool gBaseGUIObject::isEnabled | ( | ) |
| bool gBaseGUIObject::isTitleOn | ( | ) |
|
virtual |
Reimplemented in gGUIContainer, gGUIDialogue, gGUIForm, gGUIGrid, gGUINumberBox, gGUISizer, gGUIStatusBar, gGUITextbox, and gGUITimebox.
|
virtual |
Reimplemented in gGUIContainer, gGUIDialogue, gGUIForm, gGUIGrid, gGUINumberBox, gGUISizer, gGUIStatusBar, gGUITextbox, and gGUITimebox.
|
virtual |
Reimplemented in gGUIButton, gGUIContainer, gGUIDialogue, gGUIForm, gGUIGrid, gGUINavigation, gGUINumberBox, gGUIScrollable, gGUISizer, gGUISlider, gGUIStatusBar, gGUITextbox, and gGUITimebox.
|
virtual |
Reimplemented in gGUIButton, gGUIForm, gGUINavigation, and gGUISizer.
|
virtual |
Reimplemented in gGUIButton, gGUIForm, gGUINavigation, and gGUISizer.
|
virtual |
Reimplemented in gGUIButton, gGUIColumnChart, gGUIContainer, gGUIContextMenuItem, gGUIDialogue, gGUIForm, gGUIMenuItem, gGUINavigation, gGUIPane, gGUIScrollable, gGUISizer, gGUITable, and gGUITooltipText.
|
virtual |
Reimplemented in gGUIButton, gGUIColorPicker, gGUIContainer, gGUIContextMenuItem, gGUIDialogue, gGUIForm, gGUIGrid, gGUIListbox, gGUIMenuItem, gGUINavigation, gGUINumberBox, gGUIPane, gGUIRadioButton, gGUIScrollable, gGUISizer, gGUISlider, gGUIStatusBar, gGUISwitchButton, gGUITable, gGUITextbox, gGUITimebox, gGUITreelist, gGUICheckbox, and gGUIDropdownList.
|
virtual |
Reimplemented in gGUIButton, gGUIContainer, gGUIContextMenuItem, gGUIDialogue, gGUIForm, gGUIGrid, gGUIListbox, gGUIMenuItem, gGUINavigation, gGUINumberBox, gGUIPane, gGUIRadioButton, gGUIScrollable, gGUISizer, gGUISlider, gGUIStatusBar, gGUITextbox, gGUITimebox, gGUITreelist, gGUICheckbox, and gGUIDropdownList.
|
virtual |
Reimplemented in gGUIContainer, gGUIForm, gGUIGrid, gGUIScrollable, gGUISizer, and gGUIDropdownList.
|
virtual |
Reimplemented in gGUIPane, and gGUIDropdownList.
|
static |
|
static |
|
static |
|
virtual |
Reimplemented in gGUIContainer.
|
static |
|
static |
| void gBaseGUIObject::setEnabled | ( | bool | isEnabled | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
virtual |
| void gBaseGUIObject::setParentSlotNo | ( | int | parentSlotLineNo, |
| int | parentSlotColumnNo | ||
| ) |
|
static |
|
static |
| void gBaseGUIObject::setRootApp | ( | gBaseApp * | root | ) |
|
static |
| void gBaseGUIObject::setTitle | ( | std::string | title | ) |
| void gBaseGUIObject::setTitleOn | ( | bool | isTitleOn | ) |
|
virtual |
|
pure virtual |
Implemented in gGUIButton, gGUIContainer, gGUIControl, gGUIDialogue, gGUIFrame, gGUIGrid, gGUIMenuItem, gGUINavigation, gGUINumberBox, gGUIRadioButton, gGUISizer, gGUISlider, gGUITable, gGUITextbox, gGUITimebox, gGUITooltipText, gGUICheckbox, and gGUIRadarChart.
|
virtual |
Reimplemented in gGUIContainer, gGUIForm, gGUIScrollable, gGUISizer, and gGUIStatusBar.
|
friend |
|
staticprotected |
|
staticprotected |
| int gBaseGUIObject::bottom |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticprotected |
|
staticprotected |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
| int gBaseGUIObject::height |
| int gBaseGUIObject::id |
| bool gBaseGUIObject::iscontainer |
| bool gBaseGUIObject::iscursoron |
|
protected |
| bool gBaseGUIObject::isfocused |
| bool gBaseGUIObject::isresizable |
| bool gBaseGUIObject::issizer |
|
protected |
| int gBaseGUIObject::left |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
static |
|
staticprotected |
| int gBaseGUIObject::right |
|
protected |
|
staticprotected |
|
protected |
| int gBaseGUIObject::titleheight |
| int gBaseGUIObject::titlex |
| int gBaseGUIObject::titley |
| int gBaseGUIObject::top |
|
protected |
| int gBaseGUIObject::type |
| int gBaseGUIObject::width |