Raylib C++  1.0.0
Encapsulates the raylib library
Public Member Functions | List of all members
raylib::builder::RlTextBuilder Class Reference

Builder to create a RlText easily. More...

#include <RlTextBuilder.hpp>

Inheritance diagram for raylib::builder::RlTextBuilder:
Inheritance graph
Collaboration diagram for raylib::builder::RlTextBuilder:
Collaboration graph

Public Member Functions

 RlTextBuilder ()
 Construct a new TextBuilder object. More...
 
raylib::text::RlText build () override
 Build the RlText. More...
 
RlTextBuildersetText (const std::string &text)
 Set the text. More...
 
RlTextBuildersetPosition (const Vector2f &position)
 Set the posisition. More...
 
RlTextBuildersetFont (const std::shared_ptr< raylib::text::RlFont > &font)
 Set the font. More...
 
RlTextBuildersetColor (const RlColor &color)
 Set the color. More...
 
RlTextBuildersetFontSize (const float &fontSize)
 Set the font size. More...
 
RlTextBuildersetSpacing (const float &spacing)
 Set the text spacing. More...
 
RlTextBuildersetRotation (const float &rotation)
 Set the rotation. More...
 
RlTextBuildersetOrigin (const Vector2f &origin)
 Set the origin. More...
 
RlTextBuildersetFontPath (const std::string &fontPath)
 Set the font path. More...
 

Detailed Description

Builder to create a RlText easily.

Constructor & Destructor Documentation

◆ RlTextBuilder()

raylib::builder::RlTextBuilder::RlTextBuilder ( )

Construct a new TextBuilder object.

Member Function Documentation

◆ build()

raylib::text::RlText raylib::builder::RlTextBuilder::build ( )
overridevirtual

Build the RlText.

Returns
the RlText

Implements raylib::builder::IBuilder< raylib::text::RlText >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setColor()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setColor ( const RlColor color)

Set the color.

Parameters
colorthe color
Returns
the TextBuilder object
Here is the caller graph for this function:

◆ setFont()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setFont ( const std::shared_ptr< raylib::text::RlFont > &  font)

Set the font.

Parameters
fontthe font
Returns
the TextBuilder object

◆ setFontPath()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setFontPath ( const std::string &  fontPath)

Set the font path.

Parameters
fontPaththe font path
Returns
the TextBuilder object

◆ setFontSize()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setFontSize ( const float &  fontSize)

Set the font size.

Parameters
fontSizethe font size
Returns
the TextBuilder object
Here is the caller graph for this function:

◆ setOrigin()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setOrigin ( const Vector2f origin)

Set the origin.

Parameters
originthe origin vector
Returns
the TextBuilder object

◆ setPosition()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setPosition ( const Vector2f position)

Set the posisition.

Parameters
positionthe position vector
Returns
the TextBuilder object
Here is the caller graph for this function:

◆ setRotation()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setRotation ( const float &  rotation)

Set the rotation.

Parameters
rotationthe rotation
Returns
the TextBuilder object

◆ setSpacing()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setSpacing ( const float &  spacing)

Set the text spacing.

Parameters
spacingthe text spacing
Returns
the TextBuilder object

◆ setText()

raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setText ( const std::string &  text)

Set the text.

Parameters
textthe text
Returns
the TextBuilder object
Here is the caller graph for this function:

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