aboutsummaryrefslogtreecommitdiff
path: root/include/ChatMessage.hpp
blob: 5259a9c3aadf9c37aa433d02b3763179d34cf6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "DynamicImage.hpp"
#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);

        DynamicImage avatar;
        Gtk::Label username;
        Gtk::Label text;
        uint32_t timestampSeconds;
    };
}