draft gemtext route

This commit is contained in:
yggverse 2024-08-18 15:19:36 +03:00
parent af6b1efe32
commit a73bb3aea6
8 changed files with 118 additions and 9 deletions

View file

@ -0,0 +1,21 @@
#include "gemini.hpp"
using namespace app::browser::main::tab::page::content::text;
Gemini::Gemini(
const Glib::ustring & gemtext
) {
set_wrap(
true
);
set_selectable(
true
);
set_markup(
gemtext // @TODO
);
}
Gemini::~Gemini() = default;

View file

@ -0,0 +1,21 @@
#ifndef APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_HPP
#define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_HPP
#include <glibmm/ustring.h>
#include <gtkmm/label.h>
namespace app::browser::main::tab::page::content::text
{
class Gemini : public Gtk::Label
{
public:
Gemini(
const Glib::ustring & gemtext
);
~Gemini();
};
}
#endif // APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_HPP