comparison Framework/Scene2D/ICompositor.h @ 905:88bf49aebc13

introduced ICompositor and allow SdlViewport to work with a CairoCompositor (to run on machines without OpenGL drivers)
author Alain Mazy <alain@mazy.be>
date Wed, 17 Jul 2019 16:56:53 +0200
parents
children 32b403a47b19
comparison
equal deleted inserted replaced
904:ecdb2ceaa925 905:88bf49aebc13
1 #pragma once
2
3 #include <boost/noncopyable.hpp>
4 #include <EmbeddedResources.h>
5 #include <Core/Enumerations.h>
6
7 namespace OrthancStone
8 {
9 class ICompositor : public boost::noncopyable
10 {
11
12 public:
13 virtual ~ICompositor() {}
14
15 virtual unsigned int GetCanvasWidth() const = 0;
16
17 virtual unsigned int GetCanvasHeight() const = 0;
18
19 virtual void Refresh() = 0;
20
21 #if ORTHANC_ENABLE_LOCALE == 1
22 virtual void SetFont(size_t index,
23 Orthanc::EmbeddedResources::FileResourceId resource,
24 unsigned int fontSize,
25 Orthanc::Encoding codepage) = 0;
26 #endif
27
28 };
29 }