![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <SceneGUIElements.h>
Public Member Functions | |
SceneGUIElements (Scene &parentScene, GUI &context) | |
const TextElementBatch & | updateAndGetText () |
void | onEnable () |
void | onDisable () |
![]() | |
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) |
![]() | |
SceneComponent (Scene &parentScene) noexcept | |
Scene & | parentScene () noexcept |
const Scene & | parentScene () const noexcept |
Private Attributes | |
TextElementBatch | _textBatch {} |
Additional Inherited Members | |
![]() | |
using | GUIMap = hashMap< U64, std::pair< GUIElement *, bool > > |
using | ButtonCallback = DELEGATE< void, I64 > |
![]() | |
void | addElement (U64 id, GUIElement *element) |
virtual GUIElement * | getGUIElementImpl (U64 elementName, GUIType type) const |
virtual GUIElement * | getGUIElementImpl (I64 elementID, GUIType type) const |
![]() | |
GUI * | _context |
std::array< GUIMap, to_base(GUIType::COUNT)> | _guiElements |
![]() | |
Scene & | _parentScene |
Definition at line 42 of file SceneGUIElements.h.
Definition at line 13 of file SceneGUIElements.cpp.
void Divide::SceneGUIElements::onDisable | ( | ) |
Definition at line 43 of file SceneGUIElements.cpp.
void Divide::SceneGUIElements::onEnable | ( | ) |
Definition at line 35 of file SceneGUIElements.cpp.
const TextElementBatch & Divide::SceneGUIElements::updateAndGetText | ( | ) |
Definition at line 19 of file SceneGUIElements.cpp.
|
private |
Definition at line 55 of file SceneGUIElements.h.