RichLabel
#include "toolkit/rich_label.hpp"
A rich-text label: a thin, label-like wrapper around
HtmlView for short inline Markdown/HTML content (as
opposed to HtmlView used as a full scrollable document view). Inherits
HtmlView.
- macOS
- Material
- Windows 11
- Windows 95
- Plasma 6
- GNOME
Example
auto label = std::make_unique<toolkit::RichLabel>();
label->set_markdown("Built with **SVision3** — see [docs](https://example.com).");
Construction
RichLabel();
explicit RichLabel(std::string text);
API
| Member | Description |
|---|---|
set_text(std::string const&) / text() | Plain/HTML text content |
set_markdown(std::string const&) | Set content as Markdown |
All of HtmlView's API (set_css, on_link_click, set_content_margin,
etc.) is also available.