From 61c3ec1e6e8f26f6d1efc271794e791ecde8f1e2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Jan 2019 16:23:26 +0100 Subject: Use rich text for messages --- include/ChatMessage.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ChatMessage.hpp b/include/ChatMessage.hpp index a50a799..9f628c0 100644 --- a/include/ChatMessage.hpp +++ b/include/ChatMessage.hpp @@ -4,17 +4,23 @@ #include #include #include +#include namespace dchat { + void applyRichText(Gtk::TextView *textView, const Glib::ustring &text); + class ChatMessage : public Gtk::Grid { public: ChatMessage(const Glib::ustring &username, const Glib::ustring &text, uint32_t timestampSeconds); + void appendText(const Glib::ustring &text); + DynamicImage avatar; Gtk::Label username; - Gtk::Label text; uint32_t timestampSeconds; + private: + Gtk::TextView text; }; } -- cgit v1.2.3