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

#include <GUIText.h>

+ Inheritance diagram for Divide::GUIText:

Public Member Functions

 GUIText (const string &name, const string &text, bool multiLine, const RelativePosition2D &relativePosition, const string &font, const UColour4 &colour, CEGUI::Window *parent, U8 fontSize=16u)
 
const RelativePosition2DgetPosition () const noexcept
 
- Public Member Functions inherited from Divide::GUIElementBase< GUIType::GUI_TEXT >
 GUIElementBase (const string &name, CEGUI::Window *const parent)
 
GUIType type () const noexcept override
 
- Public Member Functions inherited from Divide::GUIElement
 GUIElement (string name, CEGUI::Window *parent) noexcept
 
virtual void setTooltip (const string &tooltipText)
 
 PROPERTY_RW (string, name, "")
 
 VIRTUAL_PROPERTY_RW (bool, visible, true)
 
 VIRTUAL_PROPERTY_RW (bool, active, false)
 
virtual GUIType type () const noexcept
 
- Public Member Functions inherited from Divide::GUIDWrapper
 GUIDWrapper () noexcept
 
 GUIDWrapper (const GUIDWrapper &old) noexcept
 
 GUIDWrapper (GUIDWrapper &&old) noexcept
 
virtual ~GUIDWrapper ()=default
 
FORCE_INLINE I64 getGUID () const noexcept
 
GUIDWrapperoperator= (const GUIDWrapper &old)=delete
 
GUIDWrapperoperator= (GUIDWrapper &&other)=delete
 
- Public Member Functions inherited from Divide::TextElement
 TextElement ()=default
 
 TextElement (const TextLabelStyle &textLabelStyle, const RelativePosition2D &position)
 
 TextElement (const size_t textLabelStyleHash, const RelativePosition2D &position)
 
void text (const char *text, const bool multiLine)
 
 PROPERTY_R (size_t, textLabelStyleHash, 0)
 
 PROPERTY_R (TextType, text)
 
 PROPERTY_RW (RelativePosition2D, position)
 

Friends

class GUIInterface
 

Additional Inherited Members

- Public Types inherited from Divide::TextElement
using TextType = vector< eastl::string >
 
- Static Public Member Functions inherited from Divide::GUIDWrapper
static I64 generateGUID () noexcept
 
- Static Public Attributes inherited from Divide::GUIElementBase< GUIType::GUI_TEXT >
static constexpr GUIType Type
 
- Static Public Attributes inherited from Divide::GUIElement
static constexpr GUIType Type = GUIType::COUNT
 
- Protected Attributes inherited from Divide::GUIElement
CEGUI::Window * _parent
 
- Protected Attributes inherited from Divide::GUIDWrapper
const I64 _guid
 

Detailed Description

Definition at line 41 of file GUIText.h.

Constructor & Destructor Documentation

◆ GUIText()

Divide::GUIText::GUIText ( const string name,
const string text,
bool  multiLine,
const RelativePosition2D relativePosition,
const string font,
const UColour4 colour,
CEGUI::Window *  parent,
U8  fontSize = 16u 
)

Definition at line 7 of file GUIText.cpp.

Member Function Documentation

◆ getPosition()

const RelativePosition2D & Divide::GUIText::getPosition ( ) const
noexcept

Definition at line 21 of file GUIText.cpp.

Friends And Related Function Documentation

◆ GUIInterface

friend class GUIInterface
friend

Definition at line 42 of file GUIText.h.


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