chardacters render
This commit is contained in:
@@ -270,7 +270,7 @@ namespace Render{
|
||||
void setRadius(uint16_t radius) { _radius = radius; };
|
||||
const uint16_t getRadius() { return _radius; };
|
||||
void setOutline(bool outline) { _outline = outline; };
|
||||
const getOutline() { return _outline; };
|
||||
const bool getOutline() { return _outline; };
|
||||
|
||||
private:
|
||||
void render();
|
||||
@@ -296,7 +296,7 @@ namespace Render{
|
||||
// members
|
||||
private:
|
||||
Font _fontEnum;
|
||||
_tFont _font;
|
||||
const _tFont* _font;
|
||||
char _char;
|
||||
};
|
||||
|
||||
@@ -307,12 +307,13 @@ namespace Render{
|
||||
|
||||
public:
|
||||
void setString(std::string& s) { _s = s; };
|
||||
const std::string& getString() { return &s; };
|
||||
const std::string& getString() { return _s; };
|
||||
void setFont(Font f) { _fontEnum = f; };
|
||||
const Font getFont() { return _fontEnum; };
|
||||
void setRotation(TextRotation rotation) { _rotation = rotation; };
|
||||
const TextRotation getRotation() { return _rotation; };
|
||||
|
||||
void setSpacing(uint8_t hSpace, uint8_t vSpace) {_vSpace= vSpace; _hSpace=hSpace;}
|
||||
const pos_t getSpacing() { return {_hSpace,_vSpace}; };
|
||||
private:
|
||||
void render();
|
||||
|
||||
@@ -322,6 +323,7 @@ namespace Render{
|
||||
TextRotation _rotation;
|
||||
std::string _s;
|
||||
std::vector<DrawableChar*> _chars;
|
||||
uint8_t _hSpace=2, _vSpace=2;
|
||||
};
|
||||
|
||||
class DrawableCustom: public Drawable {
|
||||
|
||||
Reference in New Issue
Block a user