preformatted.cpp (389B)
1 #include "../include/preformatted.hpp" 2 3 #include <cstdint> 4 5 #include "../include/shared.hpp" 6 7 Preformatted::Preformatted(std::string input) : text(input) {} 8 9 std::string Preformatted::textToDraw() { return text + "\n"; } 10 11 uint8_t Preformatted::getColor() { return COLOR_PREFORMATTED; } 12 13 LineType Preformatted::type() { return PREFORMATTED; } 14 15 bool Preformatted::isBold() { return false; }