mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
update markup builder api
This commit is contained in:
parent
e10b693bbf
commit
849bc2459b
2 changed files with 122 additions and 74 deletions
|
|
@ -12,15 +12,46 @@ namespace app::browser::main::tab::page::content::text
|
|||
{
|
||||
class Gemini : public Gtk::Viewport
|
||||
{
|
||||
/*
|
||||
* Tools (currently is private)
|
||||
*/
|
||||
struct Line
|
||||
{
|
||||
struct Match
|
||||
{
|
||||
static bool link(
|
||||
const Glib::ustring & GEMTEXT,
|
||||
Glib::ustring & address,
|
||||
Glib::ustring & date,
|
||||
Glib::ustring & alt
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
struct Markup
|
||||
{
|
||||
struct Make
|
||||
{
|
||||
static Glib::ustring link(
|
||||
const Glib::ustring & ADDRESS,
|
||||
const Glib::ustring & DATE,
|
||||
const Glib::ustring & ALT
|
||||
);
|
||||
};
|
||||
|
||||
static Glib::ustring make(
|
||||
const Glib::ustring & GEMTEXT
|
||||
);
|
||||
};
|
||||
|
||||
/*
|
||||
* Gemini class API
|
||||
*/
|
||||
public:
|
||||
|
||||
Gemini(
|
||||
const Glib::ustring & GEMTEXT
|
||||
);
|
||||
|
||||
static Glib::ustring to_pango_markup(
|
||||
const Glib::ustring & GEMTEXT
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue