ドキュメント
WindowLayerComponent
< 1 min read
WindowLayerComponentはWindowBgLayerComponentとWindowComponentを組み合わせたコンポーネントです。※このコンポーネントはメインウィンドウ以外では使えません。
window_layer_component.hpp
class WindowLayerComponent : public Component
{
public:
WindowLayerComponent
(
MOD mod,
unsigned int window_width,
unsigned int window_height,
unsigned int window_bg_color_R,
unsigned int window_bg_color_G,
unsigned int window_bg_color_B,
unsigned int window_bg_color_A,
FcComponent component
);
~WindowLayerComponent() = default;
WindowLayerComponent(WindowLayerComponent const&);
WindowLayerComponent& operator=(WindowLayerComponent const&);
void configure() override;
private:
std::unique_ptr<WindowComponent> window;
std::unique_ptr<WindowBgLayerComponent> window_bg_layer;
FcComponent component;
};
window、window_bg_layerを指定します。windowに表示するcomponentを指定します。
windowはwindowIDで作成、破棄を制御します。FcComponentはコンポーネントをオブジェクト関数としてstd::functionで所有するのでattachする目的以外に使用できません。そのためFcComponentの詳細な型がわかるコンポーネント内でWindowComponent、WindowBgLayerComponentを使用してwindowの操作をしてください。
コメントを残す