#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, const User *user); Gtk::Grid avatar; Gtk::Label username; Gtk::Label text; uint32_t timestampSeconds; const User *user; private: bool updateContent(const Cairo::RefPtr &cairo); }; }