#pragma once #include #include #include namespace dchat { class User; class ChatMessage : public Gtk::Grid { public: ChatMessage(const Glib::ustring &username, const Glib::ustring &text, uint32_t timestampSeconds); Gtk::Grid avatar; Gtk::Label username; Gtk::Label text; uint32_t timestampSeconds; private: bool updateContent(const Cairo::RefPtr &cairo); }; }