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.

20 lines
278B

  1. #pragma once
  2. #include "ui/TextField.hpp"
  3. namespace rack {
  4. struct PasswordField : TextField {
  5. void draw(NVGcontext *vg) override {
  6. std::string textTmp = text;
  7. text = std::string(textTmp.size(), '*');
  8. TextField::draw(vg);
  9. text = textTmp;
  10. }
  11. };
  12. } // namespace rack