We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a362a0f + b3890c4 commit f506a0aCopy full SHA for f506a0a
src/menu.h
@@ -126,10 +126,14 @@ v2.1 - Add full support of SetPosition(x,y) to move the menu inside the screen (
126
:text(text),action(action),enabled(true) {}
127
inline void enable() {enabled=true;}
128
inline void disable() {enabled=false;}
129
+ virtual void printName(menuOut& p) {print_P(p,text);}
130
+ virtual void printValue(menuOut& p) {}
131
+ virtual void printUnit(menuOut& p) {}
132
virtual void printTo(menuOut& p) {
- //p.print(text);
- print_P(p,text);
- }
133
+ printName(p);
134
+ printValue(p);
135
+ printUnit(p);
136
+ }
137
virtual bool needRedraw(menuOut&,bool) {return false;}
138
virtual promptFeedback activate(menuOut& p,Stream&c,bool) {
139
return action(*this,p,c);
0 commit comments