26#ifndef TGUI_BACKEND_TEXT_SFML_HPP
27#define TGUI_BACKEND_TEXT_SFML_HPP
29#include <TGUI/Backend/Renderer/BackendText.hpp>
30#include <SFML/Graphics/Text.hpp>
36#ifndef TGUI_REMOVE_DEPRECATED_CODE
37TGUI_IGNORE_DEPRECATED_WARNINGS_START
91 void setFont(
const std::shared_ptr<BackendFont>& font)
override;
98 TGUI_DEPRECATED(
"Function should no longer be used") sf::
Text& getInternalText();
105 TGUI_DEPRECATED("Function should no longer be used") const sf::
Text& getInternalText() const;
114 TGUI_DEPRECATED("Function should no longer be used")
void recalculateSize() {};
120 TGUI_DEPRECATED(
"Function should no longer be used") float calculateExtraLineSpace(const sf::
Font* font,
unsigned int characterSize,
unsigned int style);
126 TGUI_DEPRECATED("Member should no longer be used") sf::
Text m_text;
128TGUI_IGNORE_DEPRECATED_WARNINGS_END
Text implementation that makes use of SFML.
Definition: BackendTextSFML.hpp:42
void setCharacterSize(unsigned int characterSize) override
Sets the size of the characters.
void setOutlineThickness(float thickness) override
Changes the thickness of the text outline.
void setFont(const std::shared_ptr< BackendFont > &font) override
Changes the font used by the text.
void setStyle(TextStyles style) override
Changes the text style.
void setString(const String &string) override
Changes the text.
void setFillColor(const Color &color) override
Changes the color of the text.
void setOutlineColor(const Color &color) override
Changes the color of the text outline.
Base class for text implementations that depend on the backend.
Definition: BackendText.hpp:41
Wrapper for colors.
Definition: Color.hpp:63
Wrapper class to store strings.
Definition: String.hpp:79
Wrapper for text styles.
Definition: TextStyle.hpp:58
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36