25#ifndef SFML_STRING_HPP
26#define SFML_STRING_HPP
175 void RecomputeRect();
183 unsigned long myStyle;
185 bool myNeedRectUpdate;
Drawable(const Vector2f &Position=Vector2f(0, 0), const Vector2f &Scale=Vector2f(1, 1), float Rotation=0.f, const Color &Col=Color(255, 255, 255, 255))
Default constructor.
friend class RenderTarget
Font is the low-level class for loading and manipulating character fonts.
static const Font & GetDefaultFont()
Get the SFML default built-in font (Arial).
Safe pointer to a T resource (inheriting from sf::Resource<T>), its pointer is automatically reseted ...
const Unicode::Text & GetText() const
Get the text (the returned text can be converted implicitely to any kind of string).
const Font & GetFont() const
Get the font used by the string.
void SetFont(const Font &CharFont)
Set the font of the string.
void SetSize(float Size)
Set the size of the string The default size is 30.
String(const Unicode::Text &Text, const Font &CharFont=Font::GetDefaultFont(), float Size=30.f)
Construct the string from any kind of text.
virtual void Render(RenderTarget &Target) const
/see Drawable::Render
FloatRect GetRect() const
Get the string rectangle on screen.
void SetStyle(unsigned long TextStyle)
Set the style of the text The default style is Regular.
String()
Default constructor.
float GetSize() const
Get the size of the characters.
void SetText(const Unicode::Text &Text)
Set the text (from any kind of string).
sf::Vector2f GetCharacterPos(std::size_t Index) const
Return the visual position of the Index-th character of the string, in coordinates relative to the st...
unsigned long GetStyle() const
Get the style of the text.
Style
Enumerate the string drawing styles.
@ Regular
Regular characters, no style.
@ Bold
Characters are bold.
@ Underlined
Characters are underlined.
@ Italic
Characters are in italic.
This class is an abstract definition of a unicode text, it can be converted from and to any kind of s...
Vector2< float > Vector2f