mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python/turtle] Turtle::reset() method
This commit is contained in:
@@ -13,8 +13,13 @@ StackViewController * SandboxController::stackViewController() {
|
||||
return static_cast<StackViewController *>(parentResponder());
|
||||
}
|
||||
|
||||
void SandboxController::reset() {
|
||||
m_solidColorView.reload();
|
||||
redrawWindow();
|
||||
}
|
||||
|
||||
void SandboxController::viewWillAppear() {
|
||||
static_cast<AppsContainer *>(const_cast<Container *>(app()->container()))->redrawWindow();
|
||||
redrawWindow();
|
||||
}
|
||||
|
||||
bool SandboxController::handleEvent(Ion::Events::Event event) {
|
||||
@@ -28,4 +33,8 @@ bool SandboxController::handleEvent(Ion::Events::Event event) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void SandboxController::redrawWindow() {
|
||||
static_cast<AppsContainer *>(const_cast<Container *>(app()->container()))->redrawWindow();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user