game/sdlpp/sdlpp_fontconfiguration.hpp

30 lines
831 B
C++
Raw Normal View History

#ifndef SDLPP_HPP_FONT_CONFIGURATION
#define SDLPP_HPP_FONT_CONFIGURATION
#include "sdlpp_common.hpp"
#include "sdlpp_font.hpp"
#include <memory>
namespace SDLPP {
class SDLPPSCOPE FontConfiguration {
public:
FontConfiguration() = delete;
FontConfiguration( std::shared_ptr< Font > font, const std::string &color,
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 );
private:
std::shared_ptr< Font > _font;
std::string _color;
std::string _outline_color;
double _outline_size;
};
} // namespace SDLPP
#endif