diff Framework/Viewport/IViewport.h @ 1205:6009c59d8676 broker

fix to sdl
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Dec 2019 14:32:05 +0100
parents f3bb9a6dd949
children 00e6bff9ea39
line wrap: on
line diff
--- a/Framework/Viewport/IViewport.h	Fri Nov 29 21:24:29 2019 +0100
+++ b/Framework/Viewport/IViewport.h	Mon Dec 02 14:32:05 2019 +0100
@@ -54,13 +54,23 @@
       virtual bool HasCompositor() const = 0;
 
       virtual ICompositor& GetCompositor() = 0;
+
+      virtual void FitContent() = 0;
     };   
     
     virtual ~IViewport()
     {
     }
 
-    virtual void Refresh() = 0;
+    // Can be invoked from any thread (notably from the thread of the
+    // Stone context)
+    virtual void Invalidate() = 0;
+
+    // Must be invoked from the main (GUI) thread
+    virtual void Paint() = 0;
+
+    virtual void UpdateSize(unsigned int width,
+                            unsigned int height) = 0;
 
     virtual ILock* Lock() = 0;
   };