Graph::setup() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

Graph::setup() method

@fn void Graph::setup(int newWidth, int newHeight, uint16_t lineColor, uint16_t backgroundColor); Set characteristics of the graph. Set characteristics of the graph.

Syntax

void setup(int newWidth,     int newHeight,     uint16_t lineColor,     uint16_t backgroundColor);
Implemented in Graph.cpp:32

Arguments

newWidth

Width of the new.

newHeight

Height of the new.

lineColor

The line color.

backgroundColor

The background color.

References

LocationReferrerScopeText
Graph.cpp:32
void Graph::setup(int newWidth, int newHeight, uint16_t lineColor, uint16_t backgroundColor)
Graph.hpp:75
void setup(int newWidth, int newHeight, uint16_t lineColor, uint16_t backgroundColor);
GraphView.cpp:83GraphView::setupScreen()GraphView
primaryGraph.setup(graphWidth, graphHeight, Color::getColorFrom24BitRGB(0x24, 0x73, 0xAC), graphBackground.getColor());
GraphView.cpp:89GraphView::setupScreen()GraphView
secondaryGraph.setup(graphWidth, graphHeight, Color::getColorFrom24BitRGB(0x27, 0x92, 0x34), graphBackground.getColor());