ui/winui/image.h

changeset 108
77254bd6dccb
parent 76
641dcc79e0ef
--- a/ui/winui/image.h	Sat Apr 05 17:57:04 2025 +0200
+++ b/ui/winui/image.h	Sun Jul 20 22:04:39 2025 +0200
@@ -32,10 +32,16 @@
 #include "../ui/image.h"
 
 class UiImageSource {
+    unsigned int refcount = 1;
+
 public:
     winrt::Microsoft::UI::Xaml::Media::ImageSource imgsrc { nullptr };
 
     UiImageSource(winrt::Microsoft::UI::Xaml::Media::ImageSource& src);
+
+    void ref();
+
+    void unref();
 };
 
 

mercurial