comparison Core/Images/Font.h @ 1616:644c32c07306

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Sep 2015 16:00:50 +0200
parents 96582230ddcb
children dd1f7909a14c
comparison
equal deleted inserted replaced
1615:c40fe92a68e7 1616:644c32c07306
35 #include "ImageAccessor.h" 35 #include "ImageAccessor.h"
36 36
37 #include <stdint.h> 37 #include <stdint.h>
38 #include <vector> 38 #include <vector>
39 #include <map> 39 #include <map>
40 #include <boost/noncopyable.hpp>
40 41
41 namespace Orthanc 42 namespace Orthanc
42 { 43 {
43 class Font 44 class Font : public boost::noncopyable
44 { 45 {
45 private: 46 private:
46 struct Character 47 struct Character
47 { 48 {
48 unsigned int width_; 49 unsigned int width_;
70 int x, 71 int x,
71 int y, 72 int y,
72 const uint8_t color[4]) const; 73 const uint8_t color[4]) const;
73 74
74 public: 75 public:
76 Font()
77 {
78 }
79
75 ~Font(); 80 ~Font();
76 81
77 void LoadFromMemory(const std::string& font); 82 void LoadFromMemory(const std::string& font);
78 83
79 void LoadFromFile(const std::string& path); 84 void LoadFromFile(const std::string& path);