#pragma once #include "DynamicImage.hpp" #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; uint32_t timestampSeconds; private: Gtk::TextView text; }; }