#include <GUIInterface.h>
|
| GUIInterface (GUI &context) |
|
virtual | ~GUIInterface () |
|
void | onLanguageChange (std::string_view newLanguage) |
|
GUI & | getParentContext () noexcept |
|
const GUI & | getParentContext () const noexcept |
|
template<typename T >
requires std::is_base_of_v<GUIElement, T> |
T * | getGUIElement (const U64 elementName) const |
| Get a pointer to an element by name/id.
|
|
template<typename T >
requires std::is_base_of_v<GUIElement, T> |
T * | getGUIElement (const I64 elementID) const |
|
virtual GUIText * | addText (const char *name, const RelativePosition2D &position, const string &font, const UColour4 &colour, const string &text, bool multiLine=false, U8 fontSize=16u) |
|
virtual GUIText * | modifyText (const char *name, const string &text, bool multiLine) |
|
virtual GUIMessageBox * | addMsgBox (const char *name, const string &title, const string &message, vec2< I32 > offsetFromCentre=vec2< I32 >(0)) |
|
virtual GUIButton * | addButton (const char *name, const string &text, const RelativePosition2D &offset, const RelativeScale2D &size, const string &rootSheetID="") |
|
virtual GUIFlash * | addFlash (const char *name, const RelativePosition2D &position, const RelativeScale2D &size) |
|
virtual CEGUI::Window * | createWindow (const CEGUI::String &type, const CEGUI::String &name) |
|
virtual CEGUI::Window * | loadWindowFromLayoutFile (const char *layoutFileName) |
|
virtual bool | unloadWindow (CEGUI::Window *&window) |
|
Definition at line 51 of file GUIInterface.h.
◆ ButtonCallback
◆ GUIMap
◆ GUIInterface()
Divide::GUIInterface::GUIInterface |
( |
GUI & |
context | ) |
|
|
explicit |
◆ ~GUIInterface()
Divide::GUIInterface::~GUIInterface |
( |
| ) |
|
|
virtual |
◆ addButton()
◆ addElement()
void Divide::GUIInterface::addElement |
( |
U64 |
id, |
|
|
GUIElement * |
element |
|
) |
| |
|
protected |
◆ addFlash()
◆ addMsgBox()
◆ addText()
◆ createWindow()
CEGUI::Window * Divide::GUIInterface::createWindow |
( |
const CEGUI::String & |
type, |
|
|
const CEGUI::String & |
name |
|
) |
| |
|
virtual |
◆ getGUIElement() [1/2]
template<typename T >
requires std::is_base_of_v<
GUIElement, T>
T * Divide::GUIInterface::getGUIElement |
( |
const I64 |
elementID | ) |
const |
|
inline |
◆ getGUIElement() [2/2]
template<typename T >
requires std::is_base_of_v<
GUIElement, T>
T * Divide::GUIInterface::getGUIElement |
( |
const U64 |
elementName | ) |
const |
|
inline |
Get a pointer to an element by name/id.
Definition at line 66 of file GUIInterface.h.
◆ getGUIElementImpl() [1/2]
◆ getGUIElementImpl() [2/2]
◆ getParentContext() [1/2]
const GUI & Divide::GUIInterface::getParentContext |
( |
| ) |
const |
|
inlinenoexcept |
◆ getParentContext() [2/2]
GUI & Divide::GUIInterface::getParentContext |
( |
| ) |
|
|
inlinenoexcept |
◆ loadWindowFromLayoutFile()
CEGUI::Window * Divide::GUIInterface::loadWindowFromLayoutFile |
( |
const char * |
layoutFileName | ) |
|
|
virtual |
◆ modifyText()
GUIText * Divide::GUIInterface::modifyText |
( |
const char * |
name, |
|
|
const string & |
text, |
|
|
bool |
multiLine |
|
) |
| |
|
virtual |
◆ onLanguageChange()
void Divide::GUIInterface::onLanguageChange |
( |
std::string_view |
newLanguage | ) |
|
◆ unloadWindow()
bool Divide::GUIInterface::unloadWindow |
( |
CEGUI::Window *& |
window | ) |
|
|
virtual |
◆ _context
GUI* Divide::GUIInterface::_context |
|
protected |
◆ _guiElements
The documentation for this class was generated from the following files: