From 2c12c0652d2b8c8440e1e908f004826840ed14ab Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 18 Oct 2019 17:33:06 +0300 Subject: [texo] Semi-working. --- src/texo.hpp | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) (limited to 'src/texo.hpp') diff --git a/src/texo.hpp b/src/texo.hpp index 93cad3a..e2a7d86 100644 --- a/src/texo.hpp +++ b/src/texo.hpp @@ -1,5 +1,87 @@ #ifndef TEXO_INCLUDED_TEXO #define TEXO_INCLUDED_TEXO +#include + + +struct Texo { + Texo(char c); + char c; +}; + +/* + * Texo Blocks + */ +struct TexoHeader { + TexoHeader(int level, bool closing = false); + int level; // Number >= 1, bigger for bigger. + bool closing; +}; + +struct TexoParagraph { + TexoParagraph(bool closing = false); + bool closing; +}; + +struct TexoCode { + TexoCode(bool closing = false); + bool closing; +}; + +struct TexoQuote { + TexoQuote(bool closing = false); + bool closing; +}; + +/* + * Texo Decorators + */ +struct TexoMono { + TexoMono(bool closing = false); + bool closing; +}; + +struct TexoBold { + TexoBold(bool closing = false); + bool closing; +}; + +struct TexoItalic { + TexoItalic(bool closing = false); + bool closing; +}; + +struct TexoUnderline { + TexoUnderline(bool closing = false); + bool closing; +}; + +struct TexoStrike { + TexoStrike(bool closing = false); + bool closing; +}; + +/* + * Texo Signals + */ +struct TexoImage { + ScriptVariable path; + ScriptVariable title; + ScriptVariable alt; + ScriptVariable link; +}; + +struct TexoLink { + ScriptVariable text; + ScriptVariable link; + ScriptVariable title; +}; + +struct TexoLineBreak { +}; + +struct TexoHorizontalRule { +}; + #endif -- cgit v1.2.3