39 namespace ImgComponent
62 void ChangeLayer(
string _layerName,
bool _layerCreate);
64 void Start()
override;
96 void SetImg(
string _imgKey);
98 void SetImg(
string _imgKey,
string _imgPass);
159 GetDrawStringSizeToHandle(
168 DrawRotaStringToHandle(
216 queue.emplace(_id, _drawComponent);
251 return queue.empty();
260 for (
auto& q :
queue)
271 return (
unsigned int)
queue.size();
331 void SwapLayer(
string _key1,
string _key2);
336#pragma region ImgComponent操作
337 void ImgPush(
string _layerName,
ImgBase* _drawData,
bool ifCreate =
false);
339 void ImgPop(
string _layerName,
string _id);
Result
成否を表す.
Definition Const.h:8
const int WINDOW_WIDTH
Definition Const.h:18
const int WINDOW_HEIGHT
Library合成でカオスになったのでいったんこれで TODO 後でLibraryのコンフィグファイルとかにしていいと思います
Definition Const.h:17
ImgGraph()
Definition ImgComponent.cpp:177
public空間に置くことで,T*のAccessorを提供します
Definition Accessor.hpp:267
Definition ComponentBase.hpp:24
static std::shared_ptr< Font > Get(std::string _key)
Fontを取得する
Definition FontFacade.cpp:112
ID割り当てクラス
Definition IDAssignment.h:15
描画コンポーネントの基底クラス.
Definition ImgComponent.hpp:49
virtual void Draw(Matrix2D _drawMat)
Definition ImgComponent.hpp:55
string layer
Definition ImgComponent.hpp:51
virtual ~ImgBase()
Definition ImgComponent.cpp:16
string Layer() const
Definition ImgComponent.hpp:57
void Start() override
Definition ImgComponent.cpp:10
virtual void Draw()
Definition ImgComponent.hpp:56
void ChangeLayer(string _layerName, bool _layerCreate)
Definition ImgComponent.cpp:21
円の描画クラス
Definition ImgComponent.hpp:187
double radius
Definition ImgComponent.hpp:190
RGB255 rgb
Definition ImgComponent.hpp:192
void Draw(Matrix2D _drawMat) override
Definition ImgComponent.hpp:196
bool isFill
Definition ImgComponent.hpp:194
int img
Definition ImgComponent.hpp:75
Vector2D< float > size
Definition ImgComponent.hpp:76
ReadOnly< Vector2D< float > > Size
画像サイズ(読み取り専用)
Definition ImgComponent.hpp:88
ImgGraph * GetThisComponent() override
Definition ImgComponent.hpp:105
Vector2D< float > imgCentor
Definition ImgComponent.hpp:77
void SetImg(string _imgKey)
Definition ImgComponent.cpp:182
Accessor< bool > Trans
画像を透過するか否か
Definition ImgComponent.hpp:92
int GetImg()
Definition ImgComponent.cpp:195
Vector2D< bool > isTurn
要素に応じて画像の反転を行います
Definition ImgComponent.hpp:84
void Draw() override
Definition ImgComponent.cpp:200
ImgGraph()
Definition ImgComponent.cpp:177
bool trans
Definition ImgComponent.hpp:78
Definition ImgComponent.hpp:113
Point2D< double > p
Definition ImgComponent.hpp:115
void Draw(Matrix2D _drawMat) override
Definition ImgComponent.hpp:117
Definition ImgComponent.hpp:133
Accessor< WritingType > Type
Definition ImgComponent.hpp:146
Accessor< unsigned int > Col
Definition ImgComponent.hpp:144
WritingType writingType
Definition ImgComponent.hpp:138
unsigned int edgeCol
Definition ImgComponent.hpp:137
Accessor< string > Text
Definition ImgComponent.hpp:143
Accessor< std::shared_ptr< Font > > Font
Definition ImgComponent.hpp:147
std::shared_ptr< Font > font
Definition ImgComponent.hpp:139
void Draw(Matrix2D _drawMat) override
Definition ImgComponent.hpp:149
Accessor< unsigned int > EdgeCol
Definition ImgComponent.hpp:145
string text
Definition ImgComponent.hpp:135
unsigned int col
Definition ImgComponent.hpp:136
Result AddLayer(string _key)
レイヤーを追加する.
Definition ImgComponent.cpp:36
void ImgPush(string _layerName, ImgBase *_drawData, bool ifCreate=false)
Definition ImgComponent.cpp:138
void ClearLayer()
レイヤーを全て消去する.
Definition ImgComponent.cpp:75
map< string, Layer * > layers
Definition ImgComponent.hpp:283
void ImgPop(string _layerName, string _id)
Definition ImgComponent.cpp:155
void Draw()
Definition ImgComponent.cpp:122
vector< string > LayerName()
レイヤー名を取得する
Definition ImgComponent.cpp:91
void SwapLayer(string _key1, string _key2)
レイヤー順を交換する
Definition ImgComponent.cpp:101
void ImgClear(string _layerName)
Definition ImgComponent.cpp:165
void RemoveLayer(string _key)
レイヤーを削除する
Definition ImgComponent.cpp:57
map< string, Layer * > Layers()
Definition ImgComponent.hpp:321
vector< string > layerName
Definition ImgComponent.hpp:284
~LayerFacade()
Definition ImgComponent.hpp:292
LayerFacade()
Definition ImgComponent.hpp:287
Definition ImgComponent.hpp:208
void Clear()
キューをクリアする.
Definition ImgComponent.hpp:240
bool Empty()
キューが空か調べる.
Definition ImgComponent.hpp:249
unsigned int Cnt()
Definition ImgComponent.hpp:269
map< string, ImgBase * > queue
Definition ImgComponent.hpp:210
~Layer()
Definition ImgComponent.hpp:219
void Push(string _id, ImgBase *_drawComponent)
Definition ImgComponent.hpp:214
map< string, ImgBase * > Queue()
Definition ImgComponent.hpp:274
void Pop(string _id)
データをポップする.
Definition ImgComponent.hpp:227
void Draw()
描画処理を行う.
Definition ImgComponent.hpp:258
Definition Matrix2D.hpp:24
Point2D< double > Position()
Definition Matrix2D.hpp:87
double Rotation()
回転をラジアン値で返す
Definition Matrix2D.hpp:96
Point2D< double > Scale()
Definition Matrix2D.hpp:103
public空間に置くことで,T*のSetterを提供します
Definition Accessor.hpp:117
WritingType
縦書きか横書きか
Definition ImgComponent.hpp:127
@ HORIZONTAL
Definition ImgComponent.hpp:128
@ VERTICAL
Definition ImgComponent.hpp:129
LayerFacade & GetLayerFacade()
Definition ImgComponent.cpp:30
Definition Accessor.hpp:110
点を表すプリミティブ型
Definition Primitive.hpp:29
T y
Definition Primitive.hpp:30
T x
Definition Primitive.hpp:30
RGBカラーを扱う型 それぞれの値を0~255の範囲で管理します。 また自身が保持する色をDxLibのカラーに変更可能です
Definition Color.hpp:27
ベクトルを表すプリミティブ型
Definition Primitive.hpp:203