1 #ifndef SHARED_FUNCTION_GRAPH_CONTROLLER_H 2 #define SHARED_FUNCTION_GRAPH_CONTROLLER_H 26 return *m_indexFunctionSelectedByCursor;
32 constexpr
static float k_displayTopMarginRatio = 0.09f;
33 constexpr
static float k_displayBottomMarginRatio = 0.2f;
36 float addMargin(
float x,
float range,
bool isMin)
override;
38 void initRangeParameters()
override;
39 bool moveCursorVertically(
int direction)
override;
43 bool isCursorVisible()
override;
45 virtual View * cursorView() = 0;
50 int * m_indexFunctionSelectedByCursor;
ViewController * initialisationParameterController() override
void reloadBannerView() override
Responder * parentResponder() const
FunctionGraphController(Responder *parentResponder, ButtonRowController *header, InteractiveCurveViewRange *interactiveRange, CurveView *curveView, CurveViewCursor *cursor, int *indexFunctionSelectedByCursor, uint32_t *modelVersion, uint32_t *rangeVersion, Poincare::Expression::AngleUnit *angleUnitVersion)
static constexpr float k_cursorBottomMarginRatio
void viewWillAppear() override
int indexFunctionSelectedByCursor() const
bool handleEnter() override
virtual InteractiveCurveViewRange * interactiveCurveViewRange()=0
virtual void selectFunctionWithCursor(int functionIndex)
bool isEmpty() const override
static constexpr float k_cursorTopMarginRatio