Btk
font.hpp
1 #if !defined(_BTKIMPL_FONT_HPP_)
2 #define _BTKIMPL_FONT_HPP_
3 #include <SDL2/SDL_ttf.h>
4 #include <SDL2/SDL_pixels.h>
5 #include <string>
6 #include <string_view>
7 #include "atomic.hpp"
8 namespace Btk{
13  struct FontImpl{
14  FontImpl(std::string_view fname,int size);
15  ~FontImpl();
16  //ref Font
17  FontImpl *ref();
18  void unref();
19 
20  int ptsize;
21  std::string filename;
22 
23  TTF_Font *font;
24  Atomic refcount;
25  };
26 };
27 
28 #endif // _BTKIMPL_FONT_HPP_
Definition: atomic.hpp:6
This header include many useful containers.
Definition: async.hpp:7
Font Impl.
Definition: font.hpp:13