ドキュメント
List[TO]Component
< 1 min read
List[TO]Componentはコンポーネントを並べて表示するコンポーネントです。以下のコンポーネントが標準で用意してあります。
- ListParallelComponent
- ListVerticalComponent
list_parallel_component.hpp
class ListParallelComponent : public Component
{
public:
ListParallelComponent
(
MOD mod,
unsigned int tr_height,
unsigned int td_width,
std::list<FcComponent> components
);
~ListParallelComponent() = default;
ListParallelComponent(ListParallelComponent const&);
ListParallelComponent& operator=(ListParallelComponent const&);
void configure();
private:
std::unique_ptr<TableComponent> table;
};
コンポーネントを横並びに均等配置します。行の高さと要素の幅を指定します。
ペンディング:均等でない配置に需要はありますか
list_vertical_component.hpp
class ListVerticalComponent : public Component
{
public:
ListVerticalComponent
(
MOD mod,
unsigned int tr_height,
unsigned int td_width,
std::list<FcComponent> components
);
~ListVerticalComponent() = default;
ListVerticalComponent(ListVerticalComponent const&);
ListVerticalComponent& operator=(ListVerticalComponent const&);
void configure();
private:
std::unique_ptr<TableComponent> table;
};
要素を縦並びに均等配置します。
行の高さと要素の幅を指定します。
コメントを残す