aboutsummaryrefslogtreecommitdiff
path: root/include/DynamicImage.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/DynamicImage.hpp')
-rw-r--r--include/DynamicImage.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/DynamicImage.hpp b/include/DynamicImage.hpp
new file mode 100644
index 0000000..578b91a
--- /dev/null
+++ b/include/DynamicImage.hpp
@@ -0,0 +1,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);
+ };
+} \ No newline at end of file