comparison 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
comparison
equal deleted inserted replaced
1204:b519c1c878f1 1205:6009c59d8676
52 virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) = 0; 52 virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) = 0;
53 53
54 virtual bool HasCompositor() const = 0; 54 virtual bool HasCompositor() const = 0;
55 55
56 virtual ICompositor& GetCompositor() = 0; 56 virtual ICompositor& GetCompositor() = 0;
57
58 virtual void FitContent() = 0;
57 }; 59 };
58 60
59 virtual ~IViewport() 61 virtual ~IViewport()
60 { 62 {
61 } 63 }
62 64
63 virtual void Refresh() = 0; 65 // Can be invoked from any thread (notably from the thread of the
66 // Stone context)
67 virtual void Invalidate() = 0;
68
69 // Must be invoked from the main (GUI) thread
70 virtual void Paint() = 0;
71
72 virtual void UpdateSize(unsigned int width,
73 unsigned int height) = 0;
64 74
65 virtual ILock* Lock() = 0; 75 virtual ILock* Lock() = 0;
66 }; 76 };
67 } 77 }