|
GlistEngine
|
#include <gGUIGrid.h>


Classes | |
| struct | Cell |
Public Types | |
| enum | { TEXTLINE_NONE , TEXTLINE_UNDER , TEXTLINE_DOUBLEUNDER , TEXTLINE_STRIKE } |
| enum | { FUNCTIONTYPE_NONE , FUNCTIONTYPE_COPY , FUNCTIONTYPE_SUM , FUNCTIONTYPE_ADD , FUNCTIONTYPE_SUB , FUNCTIONTYPE_DIVIDE , FUNCTIONTYPE_MULTIPLY } |
| enum | { FUNCTION_TYPE , FUNCTION_SENDER , FUNCTION_FIRSTINDEX } |
| enum | { PROCESS_TEXT , PROCESS_FONT , PROCESS_FONTSTATE , PROCESS_FONTSIZE , PROCESS_ALIGNMENT , PROCESS_COLOR , PROCESS_LINE , PROCESS_ALL } |
Public Types inherited from gBaseGUIObject | |
| enum | { TEXTALIGNMENT_LEFT , TEXTALIGNMENT_MIDDLE , TEXTALIGNMENT_RIGHT } |
Public Member Functions | |
| gGUIGrid () | |
| virtual | ~gGUIGrid () |
| void | set (gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h) |
| void | setGrid (int rowNum, int columnNum) |
| void | setRowNum (int rowNum) |
| int | getRowNum () |
| void | setColumnNum (int columnNum) |
| int | getColumnNum () |
| void | setCellFont (int fontNo) |
| void | setCellFont (Cell *cell, int fontNo) |
| void | setCellFont (const std::string &cell, int fontNo) |
| void | setCellsFont (std::deque< Cell * > cells, int fontNo) |
| void | setCellsFont (Cell *cell1, Cell *cell2, int fontNo) |
| void | setCellsFont (const std::string &cell1, const std::string &cell2, int fontNo) |
| void | setCellFontBold () |
| void | setCellFontBold (Cell *cell) |
| void | setCellFontBold (const std::string &cell) |
| void | setCellsFontBold (std::deque< Cell * > cells) |
| void | setCellsFontBold (Cell *cell1, Cell *cell2) |
| void | setCellsFontBold (const std::string &cell1, const std::string &cell2) |
| void | setCellFontItalic () |
| void | setCellFontItalic (Cell *cell) |
| void | setCellFontItalic (const std::string &cell) |
| void | setCellsFontItalic (std::deque< Cell * > cells) |
| void | setCellsFontItalic (Cell *cell1, Cell *cell2) |
| void | setCellsFontItalic (const std::string &cell1, const std::string &cell2) |
| void | setCellFontSize (int fontSize) |
| void | setCellFontSize (Cell *cell, int fontSize) |
| void | setCellFontSize (const std::string &cell, int fontSize) |
| void | setCellsFontSize (std::deque< Cell * > cells, int fontSize) |
| void | setCellsFontSize (Cell *cell1, Cell *cell2, int fontSize) |
| void | setCellsFontSize (const std::string &cell1, const std::string &cell2, int fontSize) |
| void | setCellFontColor (gColor *fontColor=fontcolor) |
| void | setCellFontColor (Cell *cell, gColor *fontColor=fontcolor) |
| void | setCellFontColor (const std::string &cell, gColor *fontColor=fontcolor) |
| void | setCellsFontColor (std::deque< Cell * > cells, gColor *fontColor=fontcolor) |
| void | setCellsFontColor (Cell *cell1, Cell *cell2, gColor *fontColor=fontcolor) |
| void | setCellsFontColor (const std::string &cell1, const std::string &cell2, gColor *fontColor=fontcolor) |
| void | setCellLine (int lineNo, bool clicked=true) |
| void | setCellLine (Cell *cell, int lineNo, bool clicked=true) |
| void | setCellLine (const std::string &cell, int lineNo, bool clicked=true) |
| void | setCellsLine (std::deque< Cell * > cells, int lineNo, bool clicked=true) |
| void | setCellsLine (Cell *cell1, Cell *cell2, int lineNo, bool clicked=true) |
| void | setCellsLine (const std::string &cell1, const std::string &cell2, int lineNo, bool clicked=true) |
| void | setCellContent (Cell *cell, const std::string &cellContent) |
| void | setCellContent (int rowNo, int columnNo, const std::string &cellContent) |
| void | setCellContent (const std::string &cell, const std::string &cellContent) |
| void | setCellsContent (std::deque< Cell * > cells, std::vector< std::string > contents) |
| void | setCellsContent (Cell *cell1, Cell *cell2, std::vector< std::string > contents) |
| void | setCellsContent (const std::string &cell1, const std::string &cell2, std::vector< std::string > contents) |
| void | setCellAlignment (int cellAlignment, bool clicked=true) |
| void | setCellAlignment (Cell *cell, int cellAlignment) |
| void | setCellAlignment (const std::string &cell, int cellAlignment) |
| void | setCellsAlignment (std::deque< Cell * > cells, int cellAlignment) |
| void | setCellsAlignment (Cell *cell1, Cell *cell2, int cellAlignment) |
| void | setCellsAlignment (const std::string &cell1, const std::string &cell2, int cellAlignment) |
| void | setCellReadOnly (Cell *cell, bool readonly) |
| void | setCellReadOnly (int rowNo, int columnNo, bool readonly) |
| void | setCellReadOnly (const std::string &cell, bool readonly) |
| void | setSelectedFrameColor (gColor *selectedFrameColor) |
| void | setSelectedAreaColor (gColor *selectedAreaColor) |
| void | setColumnWidth (int columnNo, float width) |
| void | setRowHeight (int rowNo, float height) |
| void | selectCell (Cell *cell) |
| void | selectCell (int rowNo, int columnNo) |
| void | selectCell (Cell *cell1, Cell *cell2) |
| void | selectCell (const std::string &cell) |
| void | selectCell (const std::string &cell1, const std::string &cell2) |
| Cell * | getCell (const std::string &cellID) |
| Cell * | getCell (int rowNo, int columnNo) |
| gColor * | getSelectedFrameColor () |
| gColor * | getSelectedAreaColor () |
| std::deque< Cell * > | getSelectedCells () |
| std::string | getColumnName (int columnNo) |
| int | getColumnNo (const std::string &columnName) |
| float | getColumnWidth (int columnNo) |
| float | getRowHeight (int rowNo) |
| void | digitToString () |
| void | drawContent () |
| void | drawCellBackground () |
| void | drawRowHeader () |
| void | drawRowLines () |
| void | drawColumnHeader () |
| void | drawColumnLines () |
| void | drawCellContents () |
| void | drawSelectedArea () |
| void | update () |
| void | keyPressed (int key) |
| void | keyReleased (int key) |
| void | charPressed (unsigned int codepoint) |
| void | mousePressed (int x, int y, int button) |
| void | mouseReleased (int x, int y, int button) |
| void | mouseDragged (int x, int y, int button) |
| void | mouseScrolled (int x, int y) |
| int | getCursor (int x, int y) |
| void | clear () |
Public Member Functions inherited from gGUIScrollable | |
| gGUIScrollable () | |
| virtual | ~gGUIScrollable () |
| void | enableScrollbars (bool isVerticalEnabled, bool isHorizontalEnabled) |
| void | updateScrollbar () |
| void | draw () |
| virtual void | drawScrollbars () |
| virtual void | windowResized (int w, int h) |
| virtual void | mouseMoved (int x, int y) |
| int | getVerticalScroll () |
| gFbo * | getFbo () |
| int | getTitleTop () |
| void | setToolbarSpace (int toolbarW, int toolbarH) |
Public Member Functions inherited from gGUIControl | |
| gGUIControl () | |
| virtual | ~gGUIControl () |
| virtual int | calculateContentHeight () |
| virtual bool | countAsSpace () |
| void | setCountAsSpace (bool isSpace) |
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) |
| 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 | mouseEntered () |
| virtual void | mouseExited () |
| 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) |
Public Attributes | |
| const int | maxcolumnnum = 16384 |
| const int | maxrownum = 131071 |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from gBaseGUIObject | |
| 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) |
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 |
Protected Member Functions inherited from gGUIScrollable | |
| bool | isPointInsideVerticalScrollbar (int x, int y, bool checkFullSize=false) |
| bool | isPointInsideHorizontalScrollbar (int x, int y, bool checkFullSize=false) |
| void | setDimensions (int width, int height) |
Protected Attributes inherited from gGUIScrollable | |
| const int | barsize = 12 |
| int | scrollamount = 8 |
| int | boxw = 0 |
| int | boxh = 0 |
| int | totalw = 0 |
| int | totalh = 0 |
| int | verticalscroll = 0 |
| int | horizontalscroll = 0 |
| int | verticalscrollbarpos = 0 |
| int | horizontalscrollbarpos = 0 |
| int | scrollbarverticalsize = 0 |
| int | scrollbarhorizontalsize = 0 |
| bool | isdraggingverticalscroll = false |
| int | verticalscrolldragstart = 0 |
| float | verticalscrollclickedtime = 0.0f |
| bool | isdragginghorizontalscroll = false |
| int | horizontalscrolldragstart = 0 |
| float | horizontalscrollclickedtime = 0.0f |
Protected Attributes inherited from gGUIControl | |
| bool | countasspace |
| int | oldwidth |
| int | oldheight |
Protected Attributes inherited from gBaseGUIObject | |
| std::string | title |
| gBaseApp * | root |
| gBaseGUIObject * | topparent |
| gBaseGUIObject * | parent |
| bool | isenabled |
| bool | istitleon |
| int | parentslotlineno |
| int | parentslotcolumnno |
Static Protected Attributes inherited from gBaseGUIObject | |
| 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 |
| anonymous enum |
| anonymous enum |
| gGUIGrid::gGUIGrid | ( | ) |
|
virtual |
|
virtual |
Reimplemented from gBaseGUIObject.
| void gGUIGrid::clear | ( | ) |
| void gGUIGrid::digitToString | ( | ) |
| void gGUIGrid::drawCellBackground | ( | ) |
| void gGUIGrid::drawCellContents | ( | ) |
| void gGUIGrid::drawColumnHeader | ( | ) |
| void gGUIGrid::drawColumnLines | ( | ) |
|
virtual |
Reimplemented from gGUIScrollable.
| void gGUIGrid::drawRowHeader | ( | ) |
| void gGUIGrid::drawRowLines | ( | ) |
| void gGUIGrid::drawSelectedArea | ( | ) |
| Cell * gGUIGrid::getCell | ( | const std::string & | cellID | ) |
| Cell * gGUIGrid::getCell | ( | int | rowNo, |
| int | columnNo | ||
| ) |
| std::string gGUIGrid::getColumnName | ( | int | columnNo | ) |
| int gGUIGrid::getColumnNo | ( | const std::string & | columnName | ) |
| int gGUIGrid::getColumnNum | ( | ) |
| float gGUIGrid::getColumnWidth | ( | int | columnNo | ) |
|
virtual |
Reimplemented from gGUIControl.
| float gGUIGrid::getRowHeight | ( | int | rowNo | ) |
| int gGUIGrid::getRowNum | ( | ) |
| gColor * gGUIGrid::getSelectedAreaColor | ( | ) |
| std::deque< Cell * > gGUIGrid::getSelectedCells | ( | ) |
| gColor * gGUIGrid::getSelectedFrameColor | ( | ) |
|
virtual |
Reimplemented from gBaseGUIObject.
|
virtual |
Reimplemented from gBaseGUIObject.
|
virtual |
Reimplemented from gGUIScrollable.
|
virtual |
Reimplemented from gGUIScrollable.
|
virtual |
Reimplemented from gGUIScrollable.
|
virtual |
Reimplemented from gGUIScrollable.
| void gGUIGrid::selectCell | ( | Cell * | cell | ) |
| void gGUIGrid::selectCell | ( | const std::string & | cell | ) |
| void gGUIGrid::selectCell | ( | const std::string & | cell1, |
| const std::string & | cell2 | ||
| ) |
| void gGUIGrid::selectCell | ( | int | rowNo, |
| int | columnNo | ||
| ) |
|
virtual |
Reimplemented from gGUIControl.
| void gGUIGrid::setCellAlignment | ( | Cell * | cell, |
| int | cellAlignment | ||
| ) |
| void gGUIGrid::setCellAlignment | ( | const std::string & | cell, |
| int | cellAlignment | ||
| ) |
| void gGUIGrid::setCellAlignment | ( | int | cellAlignment, |
| bool | clicked = true |
||
| ) |
| void gGUIGrid::setCellContent | ( | Cell * | cell, |
| const std::string & | cellContent | ||
| ) |
| void gGUIGrid::setCellContent | ( | const std::string & | cell, |
| const std::string & | cellContent | ||
| ) |
| void gGUIGrid::setCellContent | ( | int | rowNo, |
| int | columnNo, | ||
| const std::string & | cellContent | ||
| ) |
| void gGUIGrid::setCellFont | ( | Cell * | cell, |
| int | fontNo | ||
| ) |
| void gGUIGrid::setCellFont | ( | const std::string & | cell, |
| int | fontNo | ||
| ) |
| void gGUIGrid::setCellFont | ( | int | fontNo | ) |
| void gGUIGrid::setCellFontBold | ( | ) |
| void gGUIGrid::setCellFontBold | ( | Cell * | cell | ) |
| void gGUIGrid::setCellFontBold | ( | const std::string & | cell | ) |
| void gGUIGrid::setCellFontItalic | ( | ) |
| void gGUIGrid::setCellFontItalic | ( | Cell * | cell | ) |
| void gGUIGrid::setCellFontItalic | ( | const std::string & | cell | ) |
| void gGUIGrid::setCellFontSize | ( | Cell * | cell, |
| int | fontSize | ||
| ) |
| void gGUIGrid::setCellFontSize | ( | const std::string & | cell, |
| int | fontSize | ||
| ) |
| void gGUIGrid::setCellFontSize | ( | int | fontSize | ) |
| void gGUIGrid::setCellLine | ( | Cell * | cell, |
| int | lineNo, | ||
| bool | clicked = true |
||
| ) |
| void gGUIGrid::setCellLine | ( | const std::string & | cell, |
| int | lineNo, | ||
| bool | clicked = true |
||
| ) |
| void gGUIGrid::setCellLine | ( | int | lineNo, |
| bool | clicked = true |
||
| ) |
| void gGUIGrid::setCellReadOnly | ( | Cell * | cell, |
| bool | readonly | ||
| ) |
| void gGUIGrid::setCellReadOnly | ( | const std::string & | cell, |
| bool | readonly | ||
| ) |
| void gGUIGrid::setCellReadOnly | ( | int | rowNo, |
| int | columnNo, | ||
| bool | readonly | ||
| ) |
| void gGUIGrid::setCellsAlignment | ( | const std::string & | cell1, |
| const std::string & | cell2, | ||
| int | cellAlignment | ||
| ) |
| void gGUIGrid::setCellsAlignment | ( | std::deque< Cell * > | cells, |
| int | cellAlignment | ||
| ) |
| void gGUIGrid::setCellsContent | ( | const std::string & | cell1, |
| const std::string & | cell2, | ||
| std::vector< std::string > | contents | ||
| ) |
| void gGUIGrid::setCellsContent | ( | std::deque< Cell * > | cells, |
| std::vector< std::string > | contents | ||
| ) |
| void gGUIGrid::setCellsFont | ( | const std::string & | cell1, |
| const std::string & | cell2, | ||
| int | fontNo | ||
| ) |
| void gGUIGrid::setCellsFont | ( | std::deque< Cell * > | cells, |
| int | fontNo | ||
| ) |
| void gGUIGrid::setCellsFontBold | ( | const std::string & | cell1, |
| const std::string & | cell2 | ||
| ) |
| void gGUIGrid::setCellsFontBold | ( | std::deque< Cell * > | cells | ) |
| void gGUIGrid::setCellsFontColor | ( | const std::string & | cell1, |
| const std::string & | cell2, | ||
| gColor * | fontColor = fontcolor |
||
| ) |
| void gGUIGrid::setCellsFontItalic | ( | const std::string & | cell1, |
| const std::string & | cell2 | ||
| ) |
| void gGUIGrid::setCellsFontItalic | ( | std::deque< Cell * > | cells | ) |
| void gGUIGrid::setCellsFontSize | ( | const std::string & | cell1, |
| const std::string & | cell2, | ||
| int | fontSize | ||
| ) |
| void gGUIGrid::setCellsFontSize | ( | std::deque< Cell * > | cells, |
| int | fontSize | ||
| ) |
| void gGUIGrid::setCellsLine | ( | const std::string & | cell1, |
| const std::string & | cell2, | ||
| int | lineNo, | ||
| bool | clicked = true |
||
| ) |
| void gGUIGrid::setCellsLine | ( | std::deque< Cell * > | cells, |
| int | lineNo, | ||
| bool | clicked = true |
||
| ) |
| void gGUIGrid::setColumnNum | ( | int | columnNum | ) |
| void gGUIGrid::setColumnWidth | ( | int | columnNo, |
| float | width | ||
| ) |
| void gGUIGrid::setGrid | ( | int | rowNum, |
| int | columnNum | ||
| ) |
| void gGUIGrid::setRowHeight | ( | int | rowNo, |
| float | height | ||
| ) |
| void gGUIGrid::setRowNum | ( | int | rowNum | ) |
| void gGUIGrid::setSelectedAreaColor | ( | gColor * | selectedAreaColor | ) |
| void gGUIGrid::setSelectedFrameColor | ( | gColor * | selectedFrameColor | ) |
|
virtual |
Reimplemented from gGUIControl.
| const int gGUIGrid::maxcolumnnum = 16384 |
| const int gGUIGrid::maxrownum = 131071 |