ドキュメント

View Categories

SelectComponent

< 1 min read

SelectComponentは手前のレイヤ、セレクトレイヤに表示されるコンポーネントです。

select_component.hpp

class SelectComponent : public Component
{
public:
  using SELECT = spa::gui::View<>;
public:
	SelectComponent
	(
		MOD mod,
    int select_margin_x,
    int select_margin_y,
    unsigned int select_width,
    unsigned int select_height,
    unsigned int select_bg_color_R,
    unsigned int select_bg_color_G,
    unsigned int select_bg_color_B,
    unsigned int select_bg_color_A
  );

  ~SelectComponent() = default;

  void recapture();

  SELECT* get();

  void configure();

private:
  std::shared_ptr<SELECT> select;
};


マージン、幅、高さ背景色を指定します。引数はRectComponentと同じです。手前のレイヤ(セレクトレイヤ)に表示します。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です