aboutsummaryrefslogtreecommitdiff
path: root/include/DynamicImage.hpp
blob: 578b91a154bc3d4fba036036aee4599f3fbd69ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <string>
#include <gtkmm/drawingarea.h>

namespace dchat
{
    class DynamicImage : public Gtk::DrawingArea
    {
    public:
        DynamicImage(int downloadLimitBytes = 12582912);

        std::string url;
        int downloadLimitBytes;
    private:
        bool updateContent(const Cairo::RefPtr<Cairo::Context> &cairo);
    };
}