ドキュメント

View Categories

ScrollDisableComponent

< 1 min read

ScrollDisableComponentはScrollComponent下で動かしたくないコンポーネントを指定する場合に使用します。

scroll_disable_component.hpp

class ScrollDisableComponent : public Component
{
public:
  using DISABLE = spa::gui::View<>;

public:
  ScrollDisableComponent
  (
    MOD mod,
    bool scroll_disable_x,
    bool scroll_disable_y
  );

  ~ScrollDisableComponent() = default;

  void configure();

private:
  std::shared_ptr<DISABLE> disable;
};


xy軸スクロール不可を指定します。

コメントを残す

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