#include <FontFacade.hpp>
|
static void | Add (std::string _key, std::shared_ptr< Font > _font) |
| Fontを追加する
|
|
static void | Add (std::string _key, std::string _fontName, int _fontSize, int _fontThick, FontType _fontType=NORMAL) |
| Fontを生成して追加する
|
|
static std::shared_ptr< Font > | Get (std::string _key) |
| Fontを取得する
|
|
static void | Pop (std::string _key) |
| Fontを削除する
|
|
static void | FontFileInport (std::string _file) |
|
◆ Add() [1/2]
void Kisaragi_Lib::FontFacade::Add |
( |
std::string | _key, |
|
|
std::shared_ptr< Font > | _font ) |
|
static |
Fontを追加する
- 引数
-
101 {
104 }
std::shared_ptr< T > Singleton< T >::instance
Definition Singleton.hpp:78
void Init()
Definition FontFacade.cpp:92
◆ Add() [2/2]
void Kisaragi_Lib::FontFacade::Add |
( |
std::string | _key, |
|
|
std::string | _fontName, |
|
|
int | _fontSize, |
|
|
int | _fontThick, |
|
|
FontType | _fontType = NORMAL ) |
|
static |
Fontを生成して追加する
- 引数
-
_key | |
_fontName | |
_fontSize | |
_fontThick | |
_fontType | |
107 {
109 instance.lock()->Add(_key, _fontName, _fontSize, _fontThick, _fontType);
110 }
◆ Get()
std::shared_ptr< Font > Kisaragi_Lib::FontFacade::Get |
( |
std::string | _key | ) |
|
|
static |
◆ Pop()
void Kisaragi_Lib::FontFacade::Pop |
( |
std::string | _key | ) |
|
|
static |
◆ FontFileInport()
void Kisaragi_Lib::FontFacade::FontFileInport |
( |
std::string | _file | ) |
|
|
static |
125 {
127
128
129 AddFontResourceExA(_file.c_str(), FR_PRIVATE, NULL);
130 }
このクラス詳解は次のファイルから抽出されました: