You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChoiceButton.hpp 280B

12345678910111213141516
  1. #pragma once
  2. #include "ui/common.hpp"
  3. #include "ui/Button.hpp"
  4. namespace rack {
  5. struct ChoiceButton : Button {
  6. void draw(NVGcontext *vg) override {
  7. bndChoiceButton(vg, 0.0, 0.0, box.size.x, box.size.y, BND_CORNER_NONE, state, -1, text.c_str());
  8. }
  9. };
  10. } // namespace rack