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

#include <ImgComponent.hpp>

Kisaragi_Lib::ImgComponent::ImgText の継承関係図
Kisaragi_Lib::ImgComponent::ImgBase Kisaragi_Lib::ComponentBase

公開メンバ関数

void Draw (Matrix2D _drawMat) override
 
- 基底クラス Kisaragi_Lib::ImgComponent::ImgBase に属する継承公開メンバ関数
virtual void Draw ()
 
string Layer () const
 
void ChangeLayer (string _layerName, bool _layerCreate)
 
void Start () override
 
virtual ~ImgBase ()
 
- 基底クラス Kisaragi_Lib::ComponentBase に属する継承公開メンバ関数
void GameObj (GameObjBase *_obj)
 
GameObjBaseGameObj ()
 
string ID () const
 
void ID (string _id)
 
virtual ComponentBaseGetThisComponent ()
 
virtual ~ComponentBase ()
 

公開変数類

Accessor< stringText { &text }
 
Accessor< unsigned int > Col { &col }
 
Accessor< unsigned int > EdgeCol { &edgeCol }
 
Accessor< WritingTypeType { &writingType }
 
Accessor< std::shared_ptr< Font > > Font { &font }
 

限定公開変数類

string text
 
unsigned int col
 
unsigned int edgeCol
 
WritingType writingType = HORIZONTAL
 
std::shared_ptr< Fontfont = FontFacade::Get("Default")
 
- 基底クラス Kisaragi_Lib::ImgComponent::ImgBase に属する継承限定公開変数類
string layer
 
- 基底クラス Kisaragi_Lib::ComponentBase に属する継承限定公開変数類
string id
 
string name
 
GameObjBasegameObj
 

関数詳解

◆ Draw()

void Kisaragi_Lib::ImgComponent::ImgText::Draw ( Matrix2D _drawMat)
inlineoverridevirtual

Kisaragi_Lib::ImgComponent::ImgBaseを再実装しています。

150 {
151
152 //縦書きフラグ
153 bool v = (writingType == VERTICAL);
154
155
156 int tmpX ;
157 int tmpY ;
158
159 GetDrawStringSizeToHandle(
160 &tmpX, &tmpY,
161 nullptr,
162 text.c_str(),text.size()+1, *font
163 );
164
165 tmpX /= 2;
166 tmpY /= 2;
167
168 DrawRotaStringToHandle(
169 _drawMat.Position().x, _drawMat.Position().y, //左上座標
170 _drawMat.Scale().x,_drawMat.Scale().y, //拡大率
171 tmpX, tmpY , //回転の中心(左上座標の相対座標)
172 _drawMat.Rotation(), //回転角度
173 col, //文字色
174 *font, //フォント
175 edgeCol, //文字縁の色
176 v, //縦書きか否か
177 text.c_str() //テキスト
178 );
179 }
WritingType writingType
Definition ImgComponent.hpp:138
unsigned int edgeCol
Definition ImgComponent.hpp:137
std::shared_ptr< Font > font
Definition ImgComponent.hpp:139
string text
Definition ImgComponent.hpp:135
unsigned int col
Definition ImgComponent.hpp:136
@ VERTICAL
Definition ImgComponent.hpp:129

メンバ詳解

◆ text

string Kisaragi_Lib::ImgComponent::ImgText::text
protected

参照元 Draw().

◆ col

unsigned int Kisaragi_Lib::ImgComponent::ImgText::col
protected

参照元 Draw().

◆ edgeCol

unsigned int Kisaragi_Lib::ImgComponent::ImgText::edgeCol
protected

参照元 Draw().

◆ writingType

WritingType Kisaragi_Lib::ImgComponent::ImgText::writingType = HORIZONTAL
protected

参照元 Draw().

◆ font

std::shared_ptr<Font> Kisaragi_Lib::ImgComponent::ImgText::font = FontFacade::Get("Default")
protected

参照元 Draw().

◆ Text

Accessor<string> Kisaragi_Lib::ImgComponent::ImgText::Text { &text }
143{ &text };

◆ Col

Accessor<unsigned int> Kisaragi_Lib::ImgComponent::ImgText::Col { &col }
144{ &col };

◆ EdgeCol

Accessor<unsigned int> Kisaragi_Lib::ImgComponent::ImgText::EdgeCol { &edgeCol }
145{ &edgeCol };

◆ Type

Accessor<WritingType> Kisaragi_Lib::ImgComponent::ImgText::Type { &writingType }
146{ &writingType };

◆ Font

Accessor<std::shared_ptr<Font> > Kisaragi_Lib::ImgComponent::ImgText::Font { &font }
147{ &font };

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