|
| Text (const ::Font &font, const std::string &text="", float fontSize=10, float spacing=0, const ::Color &color=WHITE) |
| Initializes a new Text object with a custom font. More...
|
|
| Text (const std::string &text="", float fontSize=10, const ::Color &color=WHITE, const ::Font &font=::GetFontDefault(), float spacing=0) |
| Initializes a new Text object. More...
|
|
void | Draw (const ::Vector2 &position) const |
| Draw text with values in class.
|
|
void | Draw (const ::Vector2 &position, float rotation, const ::Vector2 &origin={0, 0}) const |
| Draw text using Font and pro parameters (rotation). More...
|
|
void | Draw (int posX, int posY) const |
| Draw text with values in class.
|
|
::Color | GetColor () const |
| Retrieves the color value for the object. More...
|
|
::Font | GetFont () const |
| Retrieves the font value for the object. More...
|
|
float | GetFontSize () const |
| Retrieves the fontSize value for the object. More...
|
|
float | GetSpacing () const |
| Retrieves the spacing value for the object. More...
|
|
std::string | GetText () const |
| Retrieves the text value for the object. More...
|
|
int | Measure () const |
| Measure string width for default font.
|
|
Vector2 | MeasureEx () const |
| Measure string size for Font.
|
|
Text & | operator= (const Text &other) |
|
void | SetColor (::Color value) |
| Sets the color value for the object. More...
|
|
void | SetFont (::Font value) |
| Sets the font value for the object. More...
|
|
void | SetFontSize (float value) |
| Sets the fontSize value for the object. More...
|
|
void | SetSpacing (float value) |
| Sets the spacing value for the object. More...
|
|
void | SetText (std::string value) |
| Sets the text value for the object. More...
|
|
|
static void | Draw (const ::Font &font, const std::string &text, const ::Vector2 &position, const ::Vector2 &origin, const float rotation, const float fontSize, const float spacing, const ::Color &color) |
| Draw text using font, color, position, origin, font size and spacing. More...
|
|
static void | Draw (const ::Font &font, const std::string &text, const ::Vector2 &position, const float fontSize, const float spacing, const ::Color &color) |
| Draw text using font, color, position, font size and spacing. More...
|
|
static void | Draw (const std::string &text, const ::Vector2 &pos, const int fontSize, const ::Color &color) |
| Draw text using font and color, with position defined as Vector2. More...
|
|
static void | Draw (const std::string &text, const int posX, const int posY, const int fontSize, const ::Color &color) |
| Draw text using font and color. More...
|
|
Text Functions.
Definition at line 14 of file Text.hpp.
static void raylib::Text::Draw |
( |
const ::Font & |
font, |
|
|
const std::string & |
text, |
|
|
const ::Vector2 & |
position, |
|
|
const ::Vector2 & |
origin, |
|
|
const float |
rotation, |
|
|
const float |
fontSize, |
|
|
const float |
spacing, |
|
|
const ::Color & |
color |
|
) |
| |
|
inlinestatic |
static void raylib::Text::Draw |
( |
const ::Font & |
font, |
|
|
const std::string & |
text, |
|
|
const ::Vector2 & |
position, |
|
|
const float |
fontSize, |
|
|
const float |
spacing, |
|
|
const ::Color & |
color |
|
) |
| |
|
inlinestatic |