P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
RayText Class Reference

Raylib Text class - references a RayFont, does not own it. Deleting the text never touches the font. More...

#include <RayText.hpp>

Inheritance diagram for RayText:
Collaboration diagram for RayText:

Public Member Functions

 RayText (std::string data, RayFont &font)
 ~RayText () override=default
bool isReady () const override
void setText (const std::string text) override
 Set the Text value.
std::string getText () const override
 Get the Text value.
void setFont (graphic::IFont *font) override
 Set the Font value - a loaded IFont, not a path, so changing font never implies a reload from disk.
void setFontSize (unsigned int size) override
 Set the Font Size text.
unsigned int getFontSize () const override
 Get the Font Size text.
void setTextColor (Color color) override
 Set the Text Color text.
Color getTextColor () const override
 Get the Text Color text.
void setPosition (Vector2f position) override
 Set the Position text.
Vector2f getPosition () const override
 Get the Position text.
void setRotation (float angle) override
 Set the Rotation object.
float getRotation () const override
 Get the Rotation object.
Public Member Functions inherited from graphic::IText
virtual ~IText ()=default
 Destroy the IText object.

Friends

class RayWindow

Detailed Description

Raylib Text class - references a RayFont, does not own it. Deleting the text never touches the font.

Constructor & Destructor Documentation

◆ RayText()

RayText::RayText ( std::string data,
RayFont & font )
inline

◆ ~RayText()

RayText::~RayText ( )
overridedefault

Member Function Documentation

◆ getFontSize()

unsigned int RayText::getFontSize ( ) const
inlineoverridevirtual

Get the Font Size text.

Returns
unsigned int

Implements graphic::IText.

◆ getPosition()

Vector2f RayText::getPosition ( ) const
inlineoverridevirtual

Get the Position text.

Returns
Vector2f

Implements graphic::IText.

◆ getRotation()

float RayText::getRotation ( ) const
inlineoverridevirtual

Get the Rotation object.

Returns
float

Implements graphic::IText.

◆ getText()

std::string RayText::getText ( ) const
inlineoverridevirtual

Get the Text value.

Returns
std::string

Implements graphic::IText.

◆ getTextColor()

Color RayText::getTextColor ( ) const
inlineoverridevirtual

Get the Text Color text.

Returns
Color

Implements graphic::IText.

◆ isReady()

bool RayText::isReady ( ) const
inlineoverridevirtual

Implements graphic::IText.

◆ setFont()

void RayText::setFont ( graphic::IFont * font)
inlineoverridevirtual

Set the Font value - a loaded IFont, not a path, so changing font never implies a reload from disk.

Parameters
font

Implements graphic::IText.

◆ setFontSize()

void RayText::setFontSize ( unsigned int size)
inlineoverridevirtual

Set the Font Size text.

Parameters
size

Implements graphic::IText.

◆ setPosition()

void RayText::setPosition ( Vector2f position)
inlineoverridevirtual

Set the Position text.

Parameters
position

Implements graphic::IText.

◆ setRotation()

void RayText::setRotation ( float angle)
inlineoverridevirtual

Set the Rotation object.

Parameters
angle

Implements graphic::IText.

◆ setText()

void RayText::setText ( const std::string text)
inlineoverridevirtual

Set the Text value.

Parameters
text

Implements graphic::IText.

◆ setTextColor()

void RayText::setTextColor ( Color color)
inlineoverridevirtual

Set the Text Color text.

Parameters
color

Implements graphic::IText.

◆ RayWindow

friend class RayWindow
friend

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