aboutsummaryrefslogtreecommitdiff
path: root/include/ChatMessage.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ChatMessage.hpp')
-rw-r--r--include/ChatMessage.hpp8
1 files changed, 7 insertions, 1 deletions
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 <dchat/types.hpp>
#include <gtkmm/grid.h>
#include <gtkmm/label.h>
+#include <gtkmm/textview.h>
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;
};
}