mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[apps] Enable to specialize the sum layout in Sum Graph Controller
This commit is contained in:
committed by
EmilieNumworks
parent
e5032b8c30
commit
ac6c8379ed
@@ -1,5 +1,6 @@
|
||||
#include "integral_graph_controller.h"
|
||||
#include "../../shared/text_field_delegate.h"
|
||||
#include "../../../poincare/src/layout/string_layout.h"
|
||||
#include "../app.h"
|
||||
|
||||
#include <assert.h>
|
||||
@@ -35,4 +36,10 @@ double IntegralGraphController::cursorNextStep(double x, int direction) {
|
||||
return (direction > 0 ? x + m_graphRange->xGridUnit()/k_numberOfCursorStepsInGradUnit : x - m_graphRange->xGridUnit()/k_numberOfCursorStepsInGradUnit);
|
||||
}
|
||||
|
||||
ExpressionLayout * IntegralGraphController::createFunctionLayout(const char * functionName) {
|
||||
char buffer[7] = "0(x)dx";
|
||||
buffer[0] = functionName[0];
|
||||
return new StringLayout(buffer, strlen(buffer), KDText::FontSize::Small);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user