|
JMgui
|
Classes | |
| class | elementNode |
| The linked list node containing one GuiElement. This system will probably be changed in the future. More... | |
Public Member Functions | |
| GuiElementHandler (JMwindow *Window) | |
| GuiElementHandler (GuiElement &)=delete | |
| GuiElementHandler & | operator= (const GuiElementHandler &)=delete |
| GuiElementHandler (GuiElementHandler &&)=default | |
| GuiElementHandler & | operator= (GuiElementHandler &&)=default |
| void | display () |
| Updates and draws all the gui elements. | |
| void | addElement (GuiElement *Element) |
| Add a new GuiElement derived object. | |
| void | removeElement (GuiElement *Element) |
| Remove a specifiv GuiElement derived object. Note: It will now not be deleted by this GuiElementHandler when it is deleted. | |
| void | removeAllElements () |
| void | setXSizeRef (float *size) |
| If the input float reference changes, all of the elements will be re-sized accordingly. | |
| void | setYSizeRef (float *size) |
| If the input float reference changes, all of the elements will be re-sized accordingly. | |
Public Attributes | |
| bool | allowInput = true |
| freezes all of the gui elements user imputs if false. | |
| bool | staggerSetup = true |
| If true, the gui elements are set up in random order instead of all on the first frame. | |
| JMwindow * | window |
| float | xOffset = 0.0f |
| Moves all the elements on the X axis. | |
| float | yOffset = 0.0f |
| Moves all the elements on the Y axis. | |
| float | xSize = 0.0f |
| Used to dynamically re-size and position elements. | |
| float | ySize = 0.0f |
| Used to dynamically re-size and position elements. | |
| float * | xPosRef = nullptr |
| Set this to a float to dynamically re-position the elements when that float changes. | |
| float * | yPosRef = nullptr |
| Set this to a float to dynamically re-position the elements when that float changes. | |
| std::string | helpMessage = "" |
| the message to display at the mouse coordinates until the mouse moves. this is usualy set by the gui elements. | |