SDLPP: Split fontconfiguration into 2 files
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user