foreseen

A text-based gemini browser with prefetching
git clone git://git.laack.co/foreseen.git
Log | Files | Refs | README | LICENSE

quote.cpp (486B)


      1 #include "../include/quote.hpp"
      2 
      3 #include <cstdint>
      4 
      5 #include "../include/shared.hpp"
      6 #include "../include/utils.hpp"
      7 
      8 Quote::Quote(std::string input) {
      9     textToRender = input.substr(1);
     10     textToRender = stripLeadingWhiteSpace(textToRender);
     11     textToRender = "> " + textToRender;
     12 }
     13 
     14 std::string Quote::textToDraw() { return textToRender + "\n"; }
     15 
     16 uint8_t Quote::getColor() { return COLOR_QUOTE; }
     17 
     18 LineType Quote::type() { return QUOTE; }
     19 
     20 bool Quote::isBold() { return false; }