Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::SceneGUIElements Class Reference

#include <SceneGUIElements.h>

+ Inheritance diagram for Divide::SceneGUIElements:

Public Member Functions

 SceneGUIElements (Scene &parentScene, GUI &context)
 
const TextElementBatchupdateAndGetText ()
 
void onEnable ()
 
void onDisable ()
 
- Public Member Functions inherited from Divide::GUIInterface
 GUIInterface (GUI &context)
 
virtual ~GUIInterface ()
 
void onLanguageChange (std::string_view newLanguage)
 
GUIgetParentContext () noexcept
 
const GUIgetParentContext () 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 GUITextaddText (const char *name, const RelativePosition2D &position, const string &font, const UColour4 &colour, const string &text, bool multiLine=false, U8 fontSize=16u)
 
virtual GUITextmodifyText (const char *name, const string &text, bool multiLine)
 
virtual GUIMessageBoxaddMsgBox (const char *name, const string &title, const string &message, vec2< I32 > offsetFromCentre=vec2< I32 >(0))
 
virtual GUIButtonaddButton (const char *name, const string &text, const RelativePosition2D &offset, const RelativeScale2D &size, const string &rootSheetID="")
 
virtual GUIFlashaddFlash (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)
 
- Public Member Functions inherited from Divide::SceneComponent
 SceneComponent (Scene &parentScene) noexcept
 
SceneparentScene () noexcept
 
const SceneparentScene () const noexcept
 

Private Attributes

TextElementBatch _textBatch {}
 

Additional Inherited Members

- Public Types inherited from Divide::GUIInterface
using GUIMap = hashMap< U64, std::pair< GUIElement *, bool > >
 
using ButtonCallback = DELEGATE< void, I64 >
 
- Protected Member Functions inherited from Divide::GUIInterface
void addElement (U64 id, GUIElement *element)
 
virtual GUIElementgetGUIElementImpl (U64 elementName, GUIType type) const
 
virtual GUIElementgetGUIElementImpl (I64 elementID, GUIType type) const
 
- Protected Attributes inherited from Divide::GUIInterface
GUI_context
 
std::array< GUIMap, to_base(GUIType::COUNT)> _guiElements
 
- Protected Attributes inherited from Divide::SceneComponent
Scene_parentScene
 

Detailed Description

Definition at line 42 of file SceneGUIElements.h.

Constructor & Destructor Documentation

◆ SceneGUIElements()

Divide::SceneGUIElements::SceneGUIElements ( Scene parentScene,
GUI context 
)

Definition at line 13 of file SceneGUIElements.cpp.

Member Function Documentation

◆ onDisable()

void Divide::SceneGUIElements::onDisable ( )

Definition at line 43 of file SceneGUIElements.cpp.

◆ onEnable()

void Divide::SceneGUIElements::onEnable ( )

Definition at line 35 of file SceneGUIElements.cpp.

◆ updateAndGetText()

const TextElementBatch & Divide::SceneGUIElements::updateAndGetText ( )

Definition at line 19 of file SceneGUIElements.cpp.

Member Data Documentation

◆ _textBatch

TextElementBatch Divide::SceneGUIElements::_textBatch {}
private

Definition at line 55 of file SceneGUIElements.h.


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