Numworks Epsilon  1.4.1
Graphing Calculator Operating System
reset_controller.cpp
Go to the documentation of this file.
1 #include "reset_controller.h"
2 extern "C" {
3 #include <assert.h>
4 }
5 #include <poincare.h>
6 
7 using namespace Poincare;
8 
9 namespace HardwareTest {
10 
11 ResetController::ResetController(Responder * parentResponder) :
12  ViewController(parentResponder),
13  m_view()
14 {
15 }
16 
18  return &m_view;
19 }
20 
22  return true;
23 }
24 
25 ResetController::ContentView::ContentView() :
26  m_resetTextView()
27 {
28  m_resetTextView.setText("RESET");
29 }
30 
31 void ResetController::ContentView::layoutSubviews() {
32  m_resetTextView.setFrame(bounds());
33 }
34 
35 int ResetController::ContentView::numberOfSubviews() const {
36  return 1;
37 }
38 
39 View * ResetController::ContentView::subviewAtIndex(int index) {
40  return &m_resetTextView;
41 }
42 
43 }
44 
bool handleEvent(Ion::Events::Event event) override
Definition: view.h:23