Notifications (#3002)

This commit is contained in:
Totoo
2026-02-19 14:33:01 +01:00
committed by GitHub
parent 77f747aab2
commit 6498f5a1b2
27 changed files with 424 additions and 70 deletions
+3
View File
@@ -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.