Support Forum       G3D Web Page     
Public Member Functions | Friends | List of all members
G3D::GuiText::Element Struct Reference

Public Member Functions

 Element (const String &text="", const shared_ptr< GFont > &font=shared_ptr< GFont >(), float size=-1, const Color4 &color=Color4(-1,-1,-1,-1), const Color4 &outlineColor=Color4(-1,-1,-1,-1), const Vector2 &offset=Vector2::zero())
 
const Color4color (const Color4 &_default) const
 
const shared_ptr< GFont > & font (const shared_ptr< GFont > &_default) const
 If this element specifies a font, returns that font, otherwise returns the default font. More...
 
const Vector2offset () const
 Offset from the baseline of the end of the previous element. More...
 
const Color4outlineColor (const Color4 &_default) const
 
void setDefault (const shared_ptr< GFont > &dfont, float dsize, const Color4 &dcolor, const Color4 &doutline)
 Provides the value of default values; called by Gui to overwrite the illegal values. More...
 
float size (float _default) const
 
const Stringtext () const
 

Friends

class GuiText
 

Constructor & Destructor Documentation

◆ Element()

G3D::GuiText::Element::Element ( const String text = "",
const shared_ptr< GFont > &  font = shared_ptr<GFont>(),
float  size = -1,
const Color4 color = Color4(-1,-1,-1,-1),
const Color4 outlineColor = Color4(-1,-1,-1,-1),
const Vector2 offset = Vector2::zero() 
)
inline

Member Function Documentation

◆ color()

const Color4& G3D::GuiText::Element::color ( const Color4 _default) const
inline

◆ font()

const shared_ptr<GFont>& G3D::GuiText::Element::font ( const shared_ptr< GFont > &  _default) const
inline

If this element specifies a font, returns that font, otherwise returns the default font.

◆ offset()

const Vector2& G3D::GuiText::Element::offset ( ) const
inline

Offset from the baseline of the end of the previous element.

◆ outlineColor()

const Color4& G3D::GuiText::Element::outlineColor ( const Color4 _default) const
inline

◆ setDefault()

void G3D::GuiText::Element::setDefault ( const shared_ptr< GFont > &  dfont,
float  dsize,
const Color4 dcolor,
const Color4 doutline 
)

Provides the value of default values; called by Gui to overwrite the illegal values.

◆ size()

float G3D::GuiText::Element::size ( float  _default) const
inline

◆ text()

const String& G3D::GuiText::Element::text ( ) const
inline

Friends And Related Function Documentation

◆ GuiText

friend class GuiText
friend

documentation generated on Wed Nov 24 2021 08:01:56 using doxygen 1.8.15