Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/ICompositor.h @ 1792:373d7f7e796e
ICompositor::ComputeTextBoundingBox()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 May 2021 16:59:03 +0200 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1791:9b650ab68d4c | 1792:373d7f7e796e |
---|---|
22 | 22 |
23 #pragma once | 23 #pragma once |
24 | 24 |
25 #include "Scene2D.h" | 25 #include "Scene2D.h" |
26 #include "ScenePoint2D.h" | 26 #include "ScenePoint2D.h" |
27 | |
28 #if ORTHANC_ENABLE_LOCALE == 1 | |
29 # include "../Fonts/TextBoundingBox.h" | |
30 #endif | |
27 | 31 |
28 namespace OrthancStone | 32 namespace OrthancStone |
29 { | 33 { |
30 class ICompositor : public boost::noncopyable | 34 class ICompositor : public boost::noncopyable |
31 { | 35 { |
67 | 71 |
68 void FitContent(Scene2D& scene) const | 72 void FitContent(Scene2D& scene) const |
69 { | 73 { |
70 scene.FitContent(GetCanvasWidth(), GetCanvasHeight()); | 74 scene.FitContent(GetCanvasWidth(), GetCanvasHeight()); |
71 } | 75 } |
76 | |
77 #if ORTHANC_ENABLE_LOCALE == 1 | |
78 virtual TextBoundingBox* ComputeTextBoundingBox(size_t fontIndex, | |
79 const std::string& utf8) = 0; | |
80 #endif | |
72 }; | 81 }; |
73 } | 82 } |