aboutsummaryrefslogtreecommitdiff
path: root/main/DisplayText.h
blob: 57a739e412cc0048ba97f611ad0bdd5bee54dd3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef DISPLAYTEXT_H
#define DISPLAYTEXT_H

#include <string>

class DisplayText {
    public:
        DisplayText(std::string text, int16_t y, uint16_t color, int16_t alignment);

        const char* getText();

        int16_t getX();

        int16_t getY();

        uint16_t getColor();

        void step();

    private:
        int16_t x, y, width;
        uint16_t color;
        bool scroll;
        std::string text;
};

#endif