foreseen

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

heading.hpp (406B)


      1 #pragma once
      2 
      3 #include <cstdint>
      4 #include <optional>
      5 #include <string>
      6 
      7 #include "../vendor/uri.hpp"
      8 #include "line.hpp"
      9 
     10 class Heading : public Line {
     11     int headingLevel = 1;
     12     std::string actualText;
     13     std::string toDraw;
     14 
     15    public:
     16     Heading(std::string text);
     17     std::string textToDraw() override;
     18     uint8_t getColor() override;
     19     LineType type() override;
     20     bool isBold() override;
     21 };