Numworks Epsilon  1.4.1
Graphing Calculator Operating System
sandbox_controller.cpp
Go to the documentation of this file.
1 #include "sandbox_controller.h"
2 #include <apps/apps_container.h>
3 
4 namespace Code {
5 
7  ViewController(parentResponder),
8  m_solidColorView(KDColorWhite)
9 {
10 }
11 
13  return static_cast<StackViewController *>(parentResponder());
14 }
15 
17  static_cast<AppsContainer *>(const_cast<Container *>(app()->container()))->redrawWindow();
18 }
19 
21  if (event == Ion::Events::Home || event == Ion::Events::OnOff) {
23  return false;
24  }
25  if (event == Ion::Events::OK || event == Ion::Events::Back) {
27  }
28  return true;
29 }
30 
31 }
Responder * parentResponder() const
Definition: responder.cpp:12
constexpr Event Home
Definition: events.h:68
bool handleEvent(Ion::Events::Event event) override
constexpr Event Back
Definition: events.h:66
Definition: app.cpp:7
constexpr KDColor KDColorWhite
Definition: color.h:42
StackViewController * stackViewController()
SandboxController(Responder *parentResponder)
constexpr Event OnOff
Definition: events.h:69
const Container * container() const
Definition: app.cpp:102
App * app()
Definition: responder.cpp:77
constexpr Event OK
Definition: events.h:65