blob: c1ef459cc01c9552c066111772bc33f93de32254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <dchat/types.hpp>
#include <gtkmm/grid.h>
#include <gtkmm/label.h>
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::Context> &cairo);
};
}
|