SDLPP: Split fontconfiguration into 2 files
This commit is contained in:
@@ -10,36 +10,13 @@ class SDLPPSCOPE FontConfiguration {
|
||||
public:
|
||||
FontConfiguration() = delete;
|
||||
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 > &getFont() {
|
||||
return _font;
|
||||
}
|
||||
|
||||
const std::string &getColor() {
|
||||
return _color;
|
||||
}
|
||||
|
||||
const std::string &getOutlineColor() {
|
||||
return _outline_color;
|
||||
}
|
||||
|
||||
const double &getOutlineSize() {
|
||||
return _outline_size;
|
||||
}
|
||||
|
||||
void setColor( const std::string &color ) {
|
||||
_color = color;
|
||||
}
|
||||
|
||||
void setOutlineColor( const std::string &outline_color ) {
|
||||
_outline_color = outline_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;
|
||||
|
||||
Reference in New Issue
Block a user