KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
Kisaragi_Lib::FontFacade クラス

#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< FontGet (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を追加する

引数
_key
_font
101 {
102 Init();
103 instance.lock()->Add(_key, _font);
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 {
108 Init();
109 instance.lock()->Add(_key, _fontName, _fontSize, _fontThick, _fontType);
110 }

◆ Get()

std::shared_ptr< Font > Kisaragi_Lib::FontFacade::Get ( std::string _key)
static

Fontを取得する

引数
_key
戻り値
113 {
114 Init();
115 return instance.lock()->Get(_key);
116 }

◆ Pop()

void Kisaragi_Lib::FontFacade::Pop ( std::string _key)
static

Fontを削除する

引数
_key
119 {
120 Init();
121 instance.lock()->Pop(_key);
122 }

◆ FontFileInport()

void Kisaragi_Lib::FontFacade::FontFileInport ( std::string _file)
static
125 {
126 Init();
127 // ウィンドウズPCに一時的にフォントデータを読み込む(システム終了まで)
128 // NOTE: .ttf→フォントデータ(トゥルータイプフォントの略)
129 AddFontResourceExA(_file.c_str(), FR_PRIVATE, NULL);
130 }

このクラス詳解は次のファイルから抽出されました: