2022-03-22 22:32:42 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
namespace espgui {
|
|
|
|
|
class ScrollInterface {
|
|
|
|
|
public:
|
|
|
|
|
virtual bool skipScroll() const { return false; }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
template<bool TScroll>
|
2025-02-25 14:48:40 +01:00
|
|
|
class StaticScrollBehaviour : public virtual ScrollInterface {
|
2022-03-22 22:32:42 +01:00
|
|
|
public:
|
|
|
|
|
bool skipScroll() const override { return TScroll; }
|
|
|
|
|
};
|
2025-02-25 14:48:40 +01:00
|
|
|
|
|
|
|
|
using SkipScroll = StaticScrollBehaviour<true>;
|
|
|
|
|
|
2022-03-22 22:32:42 +01:00
|
|
|
} // namespace espgui
|