diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-31 18:12:49 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-10-31 18:12:53 +0100 |
commit | a535703add6bf29878845cb270997514489cfc16 (patch) | |
tree | 6816c8749c0dde59cc936cdc274307b0561bac27 /include/ChatMessage.hpp | |
parent | 687796532d80fc6a0ae8327eec8f901002bdc0dd (diff) |
Start with images/gif, resize chat input
Diffstat (limited to 'include/ChatMessage.hpp')
-rw-r--r-- | include/ChatMessage.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ChatMessage.hpp b/include/ChatMessage.hpp index 271aa5f..c13db9d 100644 --- a/include/ChatMessage.hpp +++ b/include/ChatMessage.hpp @@ -1,6 +1,6 @@ #pragma once -#include "types.hpp" +#include <dchat/types.hpp> #include <gtkmm/grid.h> #include <gtkmm/label.h> @@ -11,10 +11,13 @@ namespace dchat { 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::Context> &cairo); }; }
\ No newline at end of file |