comparison Core/Images/Font.h @ 2913:058851941abe

Font::LoadFromResource()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 31 Oct 2018 14:41:51 +0100
parents 668d5ad73c74
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2912:ab03dae59d6e 2913:058851941abe
30 * along with this program. If not, see <http://www.gnu.org/licenses/>. 30 * along with this program. If not, see <http://www.gnu.org/licenses/>.
31 **/ 31 **/
32 32
33 33
34 #pragma once 34 #pragma once
35
36 #if !defined(ORTHANC_HAS_EMBEDDED_RESOURCES)
37 # error Macro ORTHANC_HAS_EMBEDDED_RESOURCES must be defined
38 #endif
39
40 #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
41 # include <EmbeddedResources.h> // Autogenerated file
42 #endif
35 43
36 #include "ImageAccessor.h" 44 #include "ImageAccessor.h"
37 45
38 #include <stdint.h> 46 #include <stdint.h>
39 #include <vector> 47 #include <vector>
86 94
87 #if ORTHANC_SANDBOXED == 0 95 #if ORTHANC_SANDBOXED == 0
88 void LoadFromFile(const std::string& path); 96 void LoadFromFile(const std::string& path);
89 #endif 97 #endif
90 98
99 #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
100 void LoadFromResource(EmbeddedResources::FileResourceId resource);
101 #endif
102
91 const std::string& GetName() const 103 const std::string& GetName() const
92 { 104 {
93 return name_; 105 return name_;
94 } 106 }
95 107