game/sdlpp/sdlpp_fontconfiguration.cpp
2021-03-15 14:50:40 +01:00

38 lines
983 B
C++

#include "sdlpp_fontconfiguration.hpp"
namespace SDLPP {
FontConfiguration::FontConfiguration( std::shared_ptr< Font > font,
const std::string &color,
const std::string &outline_color,
double outline_size ) {
_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;
}
} // namespace SDLPP