ConfigFont.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <ewol/debug.hpp>
9 
10 namespace ewol {
11  namespace context {
12  class ConfigFont {
13  public:
17  ConfigFont();
18  virtual ~ConfigFont();
19  private:
20  std::string m_folder;
21  public:
26  void setFolder(const std::string& _folder) {
27  m_folder = _folder;
28  };
33  const std::string& getFolder() {
34  return m_folder;
35  };
36  private:
37  std::string m_name;
38  int32_t m_size;
39  public:
45  void set(const std::string& _fontName, int32_t _size);
50  const std::string& getName() {
51  return m_name;
52  };
57  void setName(const std::string& _fontName);
62  int32_t getSize() {
63  return m_size;
64  };
69  void setSize(int32_t _size);
70  private:
71  bool m_useExternal;
72  public:
77  void setUseExternal(bool _val) {
78  m_useExternal=_val;
79  };
84  bool getUseExternal() {
85  return m_useExternal;
86  };
87  };
88  };
89 };
90 
91 
void setUseExternal(bool _val)
set use of internal/external Font
Definition: ConfigFont.hpp:77
void setFolder(const std::string &_folder)
Specify the default font folder for the Ewol search system (only needed when embended font) ...
Definition: ConfigFont.hpp:26
bool getUseExternal()
get the use of internal/external Font
Definition: ConfigFont.hpp:84
void setName(const std::string &_fontName)
Set the current default font name.
Definition: Area.hpp:16
void setSize(int32_t _size)
Set the default font size.
Definition: ConfigFont.hpp:12
int32_t getSize()
get the default font size.
Definition: ConfigFont.hpp:62
const std::string & getName()
get the current default font name a reference on the font name string
Definition: ConfigFont.hpp:50
const std::string & getFolder()
get the default font folder.
Definition: ConfigFont.hpp:33