diff Framework/Viewport/CairoContext.h @ 365:ef31240a73f6 am-2

no automatic call to moc and uic, CircleMeasureTracker using Orthanc fonts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 31 Oct 2018 18:10:29 +0100
parents 5a7915b23138
children a7de01c8fd29
line wrap: on
line diff
--- a/Framework/Viewport/CairoContext.h	Wed Oct 31 11:06:25 2018 +0100
+++ b/Framework/Viewport/CairoContext.h	Wed Oct 31 18:10:29 2018 +0100
@@ -23,12 +23,16 @@
 
 #include "CairoSurface.h"
 
+#include <Core/Images/Font.h>
+
 namespace OrthancStone
 {
   // This is a RAII wrapper around the Cairo drawing context
   class CairoContext : public boost::noncopyable
   {
   private:
+    class AlphaSurface;
+    
     cairo_t*      context_;
     unsigned int  width_;
     unsigned int  height_;
@@ -61,5 +65,10 @@
     {
       SetSourceColor(color[0], color[1], color[2]);
     }
+
+    void DrawText(const Orthanc::Font& font,
+                  const std::string& text,
+                  double x,
+                  double y);      
   };
 }