diff 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
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2D/ICompositor.h	Mon May 17 16:11:17 2021 +0200
+++ b/OrthancStone/Sources/Scene2D/ICompositor.h	Mon May 17 16:59:03 2021 +0200
@@ -25,6 +25,10 @@
 #include "Scene2D.h"
 #include "ScenePoint2D.h"
 
+#if ORTHANC_ENABLE_LOCALE == 1
+#  include "../Fonts/TextBoundingBox.h"
+#endif
+
 namespace OrthancStone
 {
   class ICompositor : public boost::noncopyable
@@ -69,5 +73,10 @@
     {
       scene.FitContent(GetCanvasWidth(), GetCanvasHeight());
     }
+
+#if ORTHANC_ENABLE_LOCALE == 1
+    virtual TextBoundingBox* ComputeTextBoundingBox(size_t fontIndex,
+                                                    const std::string& utf8) = 0;
+#endif
   };
 }