diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-22 21:10:04 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-22 21:10:04 +0200 |
| commit | 75ec461eeaa851cb5c53f4cfffc434e3e529ed1d (patch) | |
| tree | 3944737340718ca3675381aa06636045d397e780 /src/geminirenderer.hpp | |
| parent | 8dbfb0890560fd1cd698d06fa05ac868c4db8576 (diff) | |
| download | kristall-75ec461eeaa851cb5c53f4cfffc434e3e529ed1d.tar.gz | |
Restructures the project source and cleans up a bit
Diffstat (limited to 'src/geminirenderer.hpp')
| -rw-r--r-- | src/geminirenderer.hpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/geminirenderer.hpp b/src/geminirenderer.hpp deleted file mode 100644 index 7173d50..0000000 --- a/src/geminirenderer.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef GEMINIRENDERER_HPP -#define GEMINIRENDERER_HPP - -#include <memory> -#include <QTextDocument> -#include <QColor> -#include <QSettings> - -#include "documentoutlinemodel.hpp" - -#include "documentstyle.hpp" - -class GeminiDocument : - public QTextDocument -{ - Q_OBJECT -public: - explicit GeminiDocument(QObject * parent = nullptr); - ~GeminiDocument() override; - - QColor background_color; -}; - -struct GeminiRenderer -{ - GeminiRenderer() = delete; - - //! Renders the given byte sequence into a GeminiDocument. - //! @param input The utf8 encoded input string - //! @param root_url The url that is used to resolve relative links - //! @param style The style which is used to render the document - //! @param outline The extracted outline from the document - static std::unique_ptr<GeminiDocument> render( - QByteArray const & input, - QUrl const & root_url, - DocumentStyle const & style, - DocumentOutlineModel & outline - ); -}; - -#endif // GEMINIRENDERER_HPP |
