Nebula
Loading...
Searching...
No Matches
CoreGraphics::TextElement Class Reference

#include <textelement.h>

Detailed Description

Describes a text element for the text renderer.

Public Member Functions

 TextElement ()
 default constructor
 
 TextElement (Threading::ThreadId threadId, const Util::String &text, const Math::vec4 &color, const Math::vec2 &pos, const float size)
 constructor
 
Threading::ThreadId GetThreadId () const
 get thread id
 
const Util::StringGetText () const
 get text
 
const Math::vec4GetColor () const
 get color
 
const Math::vec2GetPosition () const
 get position
 
const float GetSize () const
 get size
 

Private Attributes

Threading::ThreadId threadId
 
Util::String text
 
Math::vec4 color
 
Math::vec2 pos
 
float size
 

Constructor & Destructor Documentation

◆ TextElement() [1/2]

CoreGraphics::TextElement::TextElement ( )

default constructor

◆ TextElement() [2/2]

CoreGraphics::TextElement::TextElement ( Threading::ThreadId threadId,
const Util::String & text,
const Math::vec4 & color,
const Math::vec2 & pos,
const float size )

constructor

Member Function Documentation

◆ GetColor()

const Math::vec4 & CoreGraphics::TextElement::GetColor ( ) const
inline

get color

◆ GetPosition()

const Math::vec2 & CoreGraphics::TextElement::GetPosition ( ) const
inline

get position

◆ GetSize()

const float CoreGraphics::TextElement::GetSize ( ) const
inline

get size

◆ GetText()

const Util::String & CoreGraphics::TextElement::GetText ( ) const
inline

get text

◆ GetThreadId()

Threading::ThreadId CoreGraphics::TextElement::GetThreadId ( ) const
inline

get thread id

Member Data Documentation

◆ color

Math::vec4 CoreGraphics::TextElement::color
private

◆ pos

Math::vec2 CoreGraphics::TextElement::pos
private

◆ size

float CoreGraphics::TextElement::size
private

◆ text

Util::String CoreGraphics::TextElement::text
private

◆ threadId

Threading::ThreadId CoreGraphics::TextElement::threadId
private

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