JMgui
Loading...
Searching...
No Matches
TabbedMenu Class Reference

#include <JMgui.h>

Public Member Functions

 TabbedMenu (JMwindow *Window, float x, float y, float sizeX, float sizeY)
 TabbedMenu (TabbedMenu &)=delete
TabbedMenuoperator= (const TabbedMenu &)=delete
 TabbedMenu (TabbedMenu &&)=default
TabbedMenuoperator= (TabbedMenu &&)=default
void addMenu (GuiElementHandler *menu, std::string label)
void addMenu (GuiElementHandler *menu, JMGraphics::Texture *icon)
void addMenu (GuiElementHandler *menu, JMGraphics::Buffer *icon)
void addMenu (GuiElementHandler *menu, JMGraphics::Texture *icon, std::string label)
void addMenu (GuiElementHandler *menu, JMGraphics::Buffer *icon, std::string label)
void addMenu (GuiElementHandler *menu, GLuint texture, std::string label)
void removeMenu (GuiElementHandler *menu)
void removeAllTabs ()
 removes all the tabs without deleting the attached menus.
void setSize (float x, float y)
float width () const
float height () const
bool mouseOver () const
void display ()

Public Attributes

float xOffset = 0.0f
float yOffset = 0.0f
bool reRender = false
 If set to true, the menu will be re-rendered once, then this is set to false.
bool bottomTabs = false
 if true, the tabs are displayed on the bottom. if false, they're displayed on the top.
float * xSizeRef = nullptr
 Set this to a float to dynamically resize and position all of the elements when it changes.
float * ySizeRef = nullptr
 Set this to a float to dynamically resize and position all of the elements when it changes.
float * xPosRef = nullptr
 Set this to a float to dynamically re-position the elements.
float * yPosRef = nullptr
 Set this to a float to dynamically re-position the elements.
JMwindowwindow = nullptr

Detailed Description

A box that contains several menus and has tabs to select which menu is displayed. Each tab can have a title, icon or both.


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