mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-22 07:29:03 +00:00
Notifications (#3002)
This commit is contained in:
@@ -209,6 +209,7 @@ class Rectangle : public Widget {
|
||||
|
||||
class Text : public Widget {
|
||||
public:
|
||||
std::function<void(Text&)> on_select{};
|
||||
Text()
|
||||
: text{""} {
|
||||
}
|
||||
@@ -223,6 +224,8 @@ class Text : public Widget {
|
||||
void getAccessibilityText(std::string& result) override;
|
||||
void getWidgetName(std::string& result) override;
|
||||
|
||||
bool on_touch(const TouchEvent event) override;
|
||||
|
||||
protected:
|
||||
// NB: Don't truncate this string. The UI will only render
|
||||
// as many characters as will fit in its rectange.
|
||||
|
||||
Reference in New Issue
Block a user