26#ifndef TGUI_OBJECT_CONVERTER_HPP
27#define TGUI_OBJECT_CONVERTER_HPP
30#include <TGUI/Color.hpp>
31#include <TGUI/Borders.hpp>
32#include <TGUI/Texture.hpp>
126 const std::shared_ptr<sf::Font>&
getFont()
const;
195 Type m_type = Type::None;
197 std::shared_ptr<sf::Font> m_font;
Definition: Borders.hpp:38
Implicit converter for colors.
Definition: Color.hpp:40
Implicit converter for settable properties.
Definition: ObjectConverter.hpp:43
const sf::String & getString() const
Retrieve the saved string.
ObjectConverter(const Borders &borders)
Store a borders object for later retrieval.
ObjectConverter(float number)
Store a number for later retrieval.
const Texture & getTexture() const
Retrieve the saved texture.
ObjectConverter(const std::shared_ptr< sf::Font > &font)
Store a font object for later retrieval.
ObjectConverter(const sf::String &string)
Store a string for later retrieval.
const sf::Color & getColor() const
Retrieve the saved color.
ObjectConverter(const Texture &texture)
Store a texture object for later retrieval.
const Borders & getBorders() const
Retrieve the saved borders.
ObjectConverter()
Default constructor, to create an empty object.
Type getType() const
Retrieve the type of the object that has been stored.
ObjectConverter(const sf::Color &color)
Store a color object for later retrieval.
const std::shared_ptr< sf::Font > & getFont() const
Retrieve the saved font.
float getNumber() const
Retrieve the saved number.
Definition: Texture.hpp:45
Namespace that contains all TGUI functions and classes.
Definition: Animation.hpp:34