@@ -86,6 +86,11 @@ void Widget::onEvent(event_t event)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void Widget::onCancel()
|
||||||
|
{
|
||||||
|
if (!fullscreen) Button::onCancel();
|
||||||
|
}
|
||||||
|
|
||||||
void Widget::update()
|
void Widget::update()
|
||||||
{
|
{
|
||||||
auto container = dynamic_cast<WidgetsContainer*>(parent);
|
auto container = dynamic_cast<WidgetsContainer*>(parent);
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ class Widget : public Button
|
|||||||
uint32_t focusGainedTS = 0;
|
uint32_t focusGainedTS = 0;
|
||||||
bool fullscreen = false;
|
bool fullscreen = false;
|
||||||
|
|
||||||
|
void onCancel() override;
|
||||||
void onLongPress() override;
|
void onLongPress() override;
|
||||||
virtual void onFullscreen(bool enable) {}
|
virtual void onFullscreen(bool enable) {}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user