Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Roll graphics element. More...
#include <hV_Graphics.h>
Public Member Functions | |
gRoll (Graphics *graphics) | |
Constructor. | |
void | dDefine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, int32_t unit=1, uint16_t valueColour=myColours.black) |
Define the graphic, vector coordinates. | |
void | define (uint16_t x0, uint16_t y0, uint16_t radius, int32_t unit=1, uint16_t valueColour=myColours.black) |
Define the graphic, rectangle coordinates. | |
void | draw (int32_t valueDegrees) |
Update the graphic. | |
Public Member Functions inherited from mtgDial | |
mtgDial (Graphics *graphics) | |
Constructor. | |
Roll graphics element.
Roll is a specific display for roll angle
gRoll::gRoll | ( | Graphics * | graphics | ) |
Constructor.
graphics | &graphics to which the element belongs |
void gRoll::dDefine | ( | uint16_t | x0, |
uint16_t | y0, | ||
uint16_t | dx, | ||
uint16_t | dy, | ||
int32_t | unit = 1, | ||
uint16_t | valueColour = myColours.black ) |
Define the graphic, vector coordinates.
screen | &screen to which the graphic belongs |
x0 | point coordinate, x-axis |
y0 | point coordinate, y-axis |
dx | length, x-axis |
dy | height, y-axis |
unit | multiplier for all values, default = 1, 10 or 100 |
valueColour | 16-bit colour for measures, default = black, optional |
More: Coordinates, Colours, Value
void gRoll::define | ( | uint16_t | x0, |
uint16_t | y0, | ||
uint16_t | radius, | ||
int32_t | unit = 1, | ||
uint16_t | valueColour = myColours.black ) |
Define the graphic, rectangle coordinates.
screen | &screen to which the graphic belongs |
x0 | center, point coordinate, x-axis |
y0 | center, point coordinate, y-axis |
radius | radius |
unit | multiplier for all values, default = 1, 10 or 100 |
valueColour | 16-bit colour for measures, default = black, optional |
More: Coordinates, Colours, Value
void gRoll::draw | ( | int32_t | valueDegrees | ) |
Update the graphic.
valueDegrees | roll angle in degrees, already multiplied by unit |
More: Value