2021-03-15 13:18:41 +00:00
|
|
|
#include "sdlpp_fontconfiguration.hpp"
|
|
|
|
|
|
|
|
namespace SDLPP {
|
2021-03-15 13:50:40 +00:00
|
|
|
FontConfiguration::FontConfiguration( std::shared_ptr< Font > font,
|
|
|
|
const std::string &color,
|
|
|
|
const std::string &outline_color,
|
|
|
|
double outline_size ) {
|
2021-03-15 13:18:41 +00:00
|
|
|
_font = font;
|
|
|
|
_color = color;
|
|
|
|
_outline_color = outline_color;
|
|
|
|
_outline_size = outline_size;
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::shared_ptr< Font > &FontConfiguration::getFont() {
|
|
|
|
return _font;
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::string &FontConfiguration::getColor() {
|
|
|
|
return _color;
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::string &FontConfiguration::getOutlineColor() {
|
|
|
|
return _outline_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
const double &FontConfiguration::getOutlineSize() {
|
|
|
|
return _outline_size;
|
|
|
|
}
|
|
|
|
|
|
|
|
void FontConfiguration::setColor( const std::string &color ) {
|
|
|
|
_color = color;
|
|
|
|
}
|
|
|
|
|
|
|
|
void FontConfiguration::setOutlineColor( const std::string &outline_color ) {
|
|
|
|
_outline_color = outline_color;
|
|
|
|
}
|
2021-03-15 13:50:40 +00:00
|
|
|
} // namespace SDLPP
|