GlistEngine
Loading...
Searching...
No Matches
gGUIForm Class Reference

#include <gGUIForm.h>

Inheritance diagram for gGUIForm:
Collaboration diagram for gGUIForm:

Public Types

enum  { RESIZE_MENUBAR , RESIZE_STATUSBAR , RESIZE_TOOLBAR_HORIZONTAL , RESIZE_TOOLBAR_VERTICAL }
 
- Public Types inherited from gBaseGUIObject
enum  { TEXTALIGNMENT_LEFT , TEXTALIGNMENT_MIDDLE , TEXTALIGNMENT_RIGHT }
 

Public Member Functions

 gGUIForm ()
 
virtual ~gGUIForm ()
 
void setMenuBar (gGUIMenubar *menuBar)
 
void resizeMenuBar ()
 
void addToolBar (gGUIToolbar *toolBar)
 
void resizeToolbars ()
 
void resizeVerticalToolbars ()
 
void setStatusBar (gGUIStatusBar *statusBar)
 
void resizeStatusBar ()
 
void addContextMenu (gGUIContextMenu *contextMenu)
 
void addTreelist (gGUITreelist *treeList, int treeListx, int treeListy, int treeListw)
 
void resizeAll (int resizeCode)
 
void setToolbarHeight (int toolbarHeight)
 
int getToolbarHeight ()
 
void setVerticalToolbarWidth (int verticalToolbarWidth)
 
int getVerticalToolbarWidth ()
 
void setSizer (gGUISizer *guiSizer)
 
void updateSizer ()
 
gGUISizergetSizer ()
 
virtual int getCursor (int x, int y)
 
int getFocusId ()
 
int getPreviousFocusId ()
 
void show ()
 
void hide ()
 
void keyPressed (int key)
 
void keyReleased (int key)
 
void charPressed (unsigned int codepoint)
 
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 setTooltipText (gGUITooltipText *tooltiptext)
 
void showProgressBar (int style=0, gColor col=gColor(1.0f, 1.0f, 1.0f), float speed=1.0f)
 
void hideProgressBar ()
 
bool isProgressShown ()
 
- Public Member Functions inherited from gBaseGUIObject
 gBaseGUIObject ()
 
virtual ~gBaseGUIObject ()
 
int getId ()
 
int getType ()
 
void setEnabled (bool isEnabled)
 
bool isEnabled ()
 
void setTitleOn (bool isTitleOn)
 
bool isTitleOn ()
 
virtual void setTopParent (gBaseGUIObject *parentGUIObject)
 
gBaseGUIObjectgetTopParent ()
 
virtual void setParent (gBaseGUIObject *parentGUIObject)
 
gBaseGUIObjectgetParent ()
 
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 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)
 

Protected Attributes

gGUISizerguisizer
 
gGUISizertemporaryemptysizer
 
bool isshown
 
gGUIMenubarmenubar
 
gGUIToolbartoolbars [maxtoolbarnum]
 
gGUIToolbarverticaltoolbars [maxtoolbarnum]
 
gGUIStatusBarstatusbar
 
int toolbarnum
 
int verticaltoolbarnum
 
int menuh
 
int toolbarh
 
int verticaltoolbarw
 
int statusw
 
int statush
 
int sizerh
 
gGUIContextMenucontextmenu
 
int contextmenuw
 
int contextmenuh
 
int contextmenux
 
int contextmenuy
 
gGUITreelisttreelist
 
int treelistw
 
int treelisth
 
std::vector< gGUITooltipText * > vectooltiptext
 
bool isprogressshown
 
float cprdeg
 
int cpx
 
int cpy
 
int cpw
 
int cph
 
gColor cpcolor
 
float cpspeed
 
- Protected Attributes inherited from gBaseGUIObject
std::string title
 
gBaseApproot
 
gBaseGUIObjecttopparent
 
gBaseGUIObjectparent
 
bool isenabled
 
bool istitleon
 
int parentslotlineno
 
int parentslotcolumnno
 

Static Protected Attributes

static const int maxtoolbarnum = 9
 
- Static Protected Attributes inherited from gBaseGUIObject
static gColorbackgroundcolor
 
static gColormiddlegroundcolor
 
static gColorforegroundcolor
 
static gColortextbackgroundcolor
 
static gColornavigationbackgroundcolor
 
static gFontfont
 
static gColorfontcolor
 
static gColornavigationfontcolor
 
static gColorbuttoncolor
 
static gColorpressedbuttoncolor
 
static gColordisabledbuttoncolor
 
static gColorbuttonfontcolor
 
static gColorpressedbuttonfontcolor
 
static gColordisabledbuttonfontcolor
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from gBaseGUIObject
static void setBackgroundColor (gColor *backgroundColor)
 
static gColorgetBackgroundColor ()
 
static void setMiddlegroundColor (gColor *middlegroundColor)
 
static gColorgetMiddlegroundColor ()
 
static void setForegroundColor (gColor *foregroundColor)
 
static gColorgetForegroundColor ()
 
static void setTextBackgroundColor (gColor *textBackgroundColor)
 
static gColorgetTextBackgroundColor ()
 
static void setNavigationBackgroundColor (gColor *navigationBackgroundColor)
 
static gColorgetNavigationBackgroundColor ()
 
static void setFont (gFont *font)
 
static gFontgetFont ()
 
static void setFontColor (gColor *fontColor)
 
static gColorgetFontColor ()
 
static void setNavigationFontColor (gColor *navigationFontColor)
 
static gColorgetNavigationFontColor ()
 
static void setButtonColor (gColor *color)
 
static gColorgetButtonColor ()
 
static void setPressedButtonColor (gColor *color)
 
static gColorgetPressedButtonColor ()
 
static void setDisabledButtonColor (gColor *color)
 
static gColorgetDisabledButtonColor ()
 
static void setButtonFontColor (gColor *color)
 
static gColorgetButtonFontColor ()
 
static void setPressedButtonFontColor (gColor *color)
 
static gColorgetPressedButtonFontColor ()
 
static void setDisabledButtonFontColor (gColor *color)
 
static gColorgetDisabledButtonFontColor ()
 
- 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 gRenderergetRenderer ()
 
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 inherited from gBaseGUIObject
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 inherited from gBaseGUIObject
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
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
RESIZE_MENUBAR 
RESIZE_STATUSBAR 
RESIZE_TOOLBAR_HORIZONTAL 
RESIZE_TOOLBAR_VERTICAL 

Constructor & Destructor Documentation

◆ gGUIForm()

gGUIForm::gGUIForm ( )

◆ ~gGUIForm()

virtual gGUIForm::~gGUIForm ( )
virtual

Member Function Documentation

◆ addContextMenu()

void gGUIForm::addContextMenu ( gGUIContextMenu contextMenu)

◆ addToolBar()

void gGUIForm::addToolBar ( gGUIToolbar toolBar)

◆ addTreelist()

void gGUIForm::addTreelist ( gGUITreelist treeList,
int  treeListx,
int  treeListy,
int  treeListw 
)

◆ charPressed()

void gGUIForm::charPressed ( unsigned int  codepoint)
virtual

Reimplemented from gBaseGUIObject.

◆ getCursor()

virtual int gGUIForm::getCursor ( int  x,
int  y 
)
virtual

Reimplemented from gBaseGUIObject.

Reimplemented in gGUIDialogue.

◆ getFocusId()

int gGUIForm::getFocusId ( )

◆ getPreviousFocusId()

int gGUIForm::getPreviousFocusId ( )

◆ getSizer()

gGUISizer * gGUIForm::getSizer ( )

◆ getToolbarHeight()

int gGUIForm::getToolbarHeight ( )

◆ getVerticalToolbarWidth()

int gGUIForm::getVerticalToolbarWidth ( )

◆ hide()

void gGUIForm::hide ( )

◆ hideProgressBar()

void gGUIForm::hideProgressBar ( )

◆ isProgressShown()

bool gGUIForm::isProgressShown ( )

◆ keyPressed()

void gGUIForm::keyPressed ( int  key)
virtual

Reimplemented from gBaseGUIObject.

◆ keyReleased()

void gGUIForm::keyReleased ( int  key)
virtual

Reimplemented from gBaseGUIObject.

◆ mouseDragged()

void gGUIForm::mouseDragged ( int  x,
int  y,
int  button 
)
virtual

Reimplemented from gBaseGUIObject.

◆ mouseEntered()

void gGUIForm::mouseEntered ( )
virtual

Reimplemented from gBaseGUIObject.

◆ mouseExited()

void gGUIForm::mouseExited ( )
virtual

Reimplemented from gBaseGUIObject.

◆ mouseMoved()

void gGUIForm::mouseMoved ( int  x,
int  y 
)
virtual

Reimplemented from gBaseGUIObject.

◆ mousePressed()

void gGUIForm::mousePressed ( int  x,
int  y,
int  button 
)
virtual

Reimplemented from gBaseGUIObject.

◆ mouseReleased()

void gGUIForm::mouseReleased ( int  x,
int  y,
int  button 
)
virtual

Reimplemented from gBaseGUIObject.

◆ mouseScrolled()

void gGUIForm::mouseScrolled ( int  x,
int  y 
)
virtual

Reimplemented from gBaseGUIObject.

◆ resizeAll()

void gGUIForm::resizeAll ( int  resizeCode)

◆ resizeMenuBar()

void gGUIForm::resizeMenuBar ( )

◆ resizeStatusBar()

void gGUIForm::resizeStatusBar ( )

◆ resizeToolbars()

void gGUIForm::resizeToolbars ( )

◆ resizeVerticalToolbars()

void gGUIForm::resizeVerticalToolbars ( )

◆ setMenuBar()

void gGUIForm::setMenuBar ( gGUIMenubar menuBar)

◆ setSizer()

void gGUIForm::setSizer ( gGUISizer guiSizer)

◆ setStatusBar()

void gGUIForm::setStatusBar ( gGUIStatusBar statusBar)

◆ setToolbarHeight()

void gGUIForm::setToolbarHeight ( int  toolbarHeight)

◆ setTooltipText()

void gGUIForm::setTooltipText ( gGUITooltipText tooltiptext)

◆ setVerticalToolbarWidth()

void gGUIForm::setVerticalToolbarWidth ( int  verticalToolbarWidth)

◆ show()

void gGUIForm::show ( )

◆ showProgressBar()

void gGUIForm::showProgressBar ( int  style = 0,
gColor  col = gColor(1.0f, 1.0f, 1.0f),
float  speed = 1.0f 
)

◆ updateSizer()

void gGUIForm::updateSizer ( )

◆ windowResized()

void gGUIForm::windowResized ( int  w,
int  h 
)
virtual

Reimplemented from gBaseGUIObject.

Member Data Documentation

◆ contextmenu

gGUIContextMenu* gGUIForm::contextmenu
protected

◆ contextmenuh

int gGUIForm::contextmenuh
protected

◆ contextmenuw

int gGUIForm::contextmenuw
protected

◆ contextmenux

int gGUIForm::contextmenux
protected

◆ contextmenuy

int gGUIForm::contextmenuy
protected

◆ cpcolor

gColor gGUIForm::cpcolor
protected

◆ cph

int gGUIForm::cph
protected

◆ cprdeg

float gGUIForm::cprdeg
protected

◆ cpspeed

float gGUIForm::cpspeed
protected

◆ cpw

int gGUIForm::cpw
protected

◆ cpx

int gGUIForm::cpx
protected

◆ cpy

int gGUIForm::cpy
protected

◆ guisizer

gGUISizer* gGUIForm::guisizer
protected

◆ isprogressshown

bool gGUIForm::isprogressshown
protected

◆ isshown

bool gGUIForm::isshown
protected

◆ maxtoolbarnum

const int gGUIForm::maxtoolbarnum = 9
staticprotected

◆ menubar

gGUIMenubar* gGUIForm::menubar
protected

◆ menuh

int gGUIForm::menuh
protected

◆ sizerh

int gGUIForm::sizerh
protected

◆ statusbar

gGUIStatusBar* gGUIForm::statusbar
protected

◆ statush

int gGUIForm::statush
protected

◆ statusw

int gGUIForm::statusw
protected

◆ temporaryemptysizer

gGUISizer * gGUIForm::temporaryemptysizer
protected

◆ toolbarh

int gGUIForm::toolbarh
protected

◆ toolbarnum

int gGUIForm::toolbarnum
protected

◆ toolbars

gGUIToolbar* gGUIForm::toolbars[maxtoolbarnum]
protected

◆ treelist

gGUITreelist* gGUIForm::treelist
protected

◆ treelisth

int gGUIForm::treelisth
protected

◆ treelistw

int gGUIForm::treelistw
protected

◆ vectooltiptext

std::vector<gGUITooltipText*> gGUIForm::vectooltiptext
protected

◆ verticaltoolbarnum

int gGUIForm::verticaltoolbarnum
protected

◆ verticaltoolbars

gGUIToolbar* gGUIForm::verticaltoolbars[maxtoolbarnum]
protected

◆ verticaltoolbarw

int gGUIForm::verticaltoolbarw
protected

The documentation for this class was generated from the following file: