Files
Upsilon/apps/code/sandbox_controller.h
Léa Saviot 1ce6f36651 [code] Fixed the wait for user input after drawing using Python.
A SandboxController is now pushed on the StackViewController and sets the
KDIonContext::sharedContext before drawing, sets a white background and handles
user input after the Python computation to dismiss the drawing screen.

Change-Id: I51b0474365a85e845227379a16d090541fa8ded7
2017-12-01 13:19:28 +01:00

28 lines
738 B
C++

#ifndef CODE_SANDBOX_CONTROLLER_H
#define CODE_SANDBOX_CONTROLLER_H
#include <escher/responder.h>
#include <escher/solid_color_view.h>
#include <escher/stack_view_controller.h>
#include <escher/view_controller.h>
namespace Code {
class SandboxController : public ViewController {
public:
SandboxController(Responder * parentResponder);
StackViewController * stackViewController();
// ViewController
View * view() override { return &m_solidColorView; }
void viewWillAppear() override;
bool handleEvent(Ion::Events::Event event) override;
ViewController::DisplayParameter displayParameter() override { return ViewController::DisplayParameter::WantsMaximumSpace; }
private:
SolidColorView m_solidColorView;
};
}
#endif