28 using Enumeration::Enumeration;
30 enum class OptType { FULL, SHORT };
31 virtual deluge::vector<std::string_view> getOptions(OptType optType = OptType::FULL) = 0;
33 void drawValue()
override;
36 size_t size()
override {
return this->getOptions().size(); }
38 virtual bool isToggle() {
return false; }
40 void displayToggleValue();
43 void renderSubmenuItemTypeForOled(int32_t yPixel)
override;
48 setValue(!getValue());
57 if (soundEditor.getCurrentMenuItem() ==
this) {
69 bool getToggleValue() {
71 return this->getValue();
78 return this->getValue() ? 3 : 255;