Skip to content

File evabScreenSerialText.h

File List > src > evabScreenSerialText.h

Go to the documentation of this file

#pragma once

#include <evabScreen.h>

namespace evab
{

    class ScreenSerialText : public Screen
    {
    public:
        ScreenSerialText();

        void Clear();

        void PrintToSerial();

        Coor Size() override;

        unsigned short Serialize(const Coor &aPos, const Coor &aSize, bool isFocused);

        void Deserialize(unsigned short aSerialized, Coor &aPos, Coor &aSize, bool &isFocused);

        void DrawSymbol(Coor aPosition, Coor aSize, char aCharcode, unsigned char aColor) override;

    private:
        char mBuffer[128]; 
    };

}