2021-01-30 20:32:08 +00:00
|
|
|
#ifndef SDLPP_HPP_FONT_CONFIGURATION
|
|
|
|
#define SDLPP_HPP_FONT_CONFIGURATION
|
|
|
|
|
|
|
|
#include "sdlpp_common.hpp"
|
|
|
|
#include "sdlpp_font.hpp"
|
2021-03-13 17:36:29 +00:00
|
|
|
#include <memory>
|
2021-01-30 20:32:08 +00:00
|
|
|
|
|
|
|
namespace SDLPP {
|
|
|
|
class SDLPPSCOPE FontConfiguration {
|
|
|
|
public:
|
|
|
|
FontConfiguration() = delete;
|
|
|
|
FontConfiguration( std::shared_ptr< Font > font, const std::string &color,
|
2021-03-15 13:18:41 +00:00
|
|
|
const std::string &outline_color, double outline_size );
|
|
|
|
const std::shared_ptr< Font > &getFont();
|
|
|
|
const std::string &getColor();
|
|
|
|
const std::string &getOutlineColor();
|
|
|
|
const double &getOutlineSize();
|
|
|
|
void setColor( const std::string &color );
|
|
|
|
void setOutlineColor( const std::string &outline_color );
|
2021-01-30 20:32:08 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::shared_ptr< Font > _font;
|
|
|
|
std::string _color;
|
|
|
|
std::string _outline_color;
|
|
|
|
double _outline_size;
|
|
|
|
};
|
|
|
|
} // namespace SDLPP
|
|
|
|
|
|
|
|
#endif
|