ドキュメント

View Categories

HeaderActionComponent

1 min read

HeaderActionComponentはメインヘッダー用に左寄せ、右寄せのコンポーネントリストを表示します。

header_action_component.hpp

class HeaderActionComponent : public Component
{
public:
  using Actions = std::list<FcComponent>;

public:
  HeaderActionComponent
  (
    MOD mod,
    unsigned int header_width,
    unsigned int header_height,
    unsigned int header_bg_color_R,
    unsigned int header_bg_color_G,
    unsigned int header_bg_color_B,
    unsigned int header_bg_color_A,
    unsigned int action_width,
    unsigned int action_height,
    Actions right_actions,
    Actions left_actions
  );

  ~HeaderActionComponent() = default;

  HeaderActionComponent(HeaderActionComponent const&);
  HeaderActionComponent& operator=(HeaderActionComponent const&);

  void configure();

private:
  std::unique_ptr<BoxComponent> box;
  std::unique_ptr<BoxComponent> right_box;
  std::unique_ptr<BoxComponent> left_box;
  std::unique_ptr<ListParallelComponent> right_action;
  std::unique_ptr<ListParallelComponent> left_action;
};


ヘッダーの幅、高さ、背景色、アクションコンポーネントの幅、高さと並べるアクションコンポーネントを指定します。

right_actionsは右寄せ、left_actionsは左寄せとなります。

コメントを残す

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