|
Raylib C++
1.0.0
Encapsulates the raylib library
|
Builder to create a RlText easily. More...
#include <RlTextBuilder.hpp>


Public Member Functions | |
| RlTextBuilder () | |
| Construct a new TextBuilder object. More... | |
| raylib::text::RlText | build () override |
| Build the RlText. More... | |
| RlTextBuilder & | setText (const std::string &text) |
| Set the text. More... | |
| RlTextBuilder & | setPosition (const Vector2f &position) |
| Set the posisition. More... | |
| RlTextBuilder & | setFont (const std::shared_ptr< raylib::text::RlFont > &font) |
| Set the font. More... | |
| RlTextBuilder & | setColor (const RlColor &color) |
| Set the color. More... | |
| RlTextBuilder & | setFontSize (const float &fontSize) |
| Set the font size. More... | |
| RlTextBuilder & | setSpacing (const float &spacing) |
| Set the text spacing. More... | |
| RlTextBuilder & | setRotation (const float &rotation) |
| Set the rotation. More... | |
| RlTextBuilder & | setOrigin (const Vector2f &origin) |
| Set the origin. More... | |
| RlTextBuilder & | setFontPath (const std::string &fontPath) |
| Set the font path. More... | |
Builder to create a RlText easily.
| raylib::builder::RlTextBuilder::RlTextBuilder | ( | ) |
Construct a new TextBuilder object.
|
overridevirtual |
Build the RlText.
Implements raylib::builder::IBuilder< raylib::text::RlText >.


| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setColor | ( | const RlColor & | color | ) |
Set the color.
| color | the color |

| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setFont | ( | const std::shared_ptr< raylib::text::RlFont > & | font | ) |
Set the font.
| font | the font |
| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setFontPath | ( | const std::string & | fontPath | ) |
Set the font path.
| fontPath | the font path |
| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setFontSize | ( | const float & | fontSize | ) |
Set the font size.
| fontSize | the font size |

| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setOrigin | ( | const Vector2f & | origin | ) |
Set the origin.
| origin | the origin vector |
| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setPosition | ( | const Vector2f & | position | ) |
Set the posisition.
| position | the position vector |

| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setRotation | ( | const float & | rotation | ) |
Set the rotation.
| rotation | the rotation |
| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setSpacing | ( | const float & | spacing | ) |
Set the text spacing.
| spacing | the text spacing |
| raylib::builder::RlTextBuilder & raylib::builder::RlTextBuilder::setText | ( | const std::string & | text | ) |
Set the text.
| text | the text |

1.8.17