Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
Loading...
Searching...
No Matches
Graphics Class Reference

Graphics. More...

#include <hV_Graphics.h>

Public Member Functions

 Graphics (hV_Screen_Virtual *screen)
 Constructor.
 
void begin ()
 Initialise the graphics.
 
void setColours (uint16_t frontColour=myColours.black, uint16_t backColour=myColours.white, uint16_t middleColour=myColours.grey)
 Set the colours palette.
 
void dLabel (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, STRING_CONST_TYPE text0, uint16_t textColour0, uint16_t backColour0, int8_t horizontal0=0, int8_t vertical0=0, uint8_t size0=0xff, bool flush0=true)
 Label, vector coordinates.
 

Friends

class mtgDial
 
class Clock
 
class Gauge
 
class gYaw
 
class gPitch
 
class gRoll
 
class mtgPanel
 
class Histogram
 
class Channels
 
class Multiple
 

Detailed Description

Graphics.

Shared settings

Constructor & Destructor Documentation

◆ Graphics()

Graphics::Graphics ( hV_Screen_Virtual * screen)

Constructor.

Parameters
screen&screen to which the graphics elements belong

Member Function Documentation

◆ dLabel()

void Graphics::dLabel ( uint16_t x0,
uint16_t y0,
uint16_t dx,
uint16_t dy,
STRING_CONST_TYPE text0,
uint16_t textColour0,
uint16_t backColour0,
int8_t horizontal0 = 0,
int8_t vertical0 = 0,
uint8_t size0 = 0xff,
bool flush0 = true )

Label, vector coordinates.

Parameters
x0point coordinate, x-axis
y0point coordinate, y-axis
dxlength, x-axis
dyheight, y-axis
text0text for the label
textColour016-bit colour for text, default = white, optional
backColour016-bit colour for background, default = black, optional
horizontal0horizontal position with -1 = left, 0 = center, 1 = right, optional
vertical0vertical position with 1 = top, 0 = center, -1 = bottom, optional
size0size of the font, default = fontSizeAutomatic = automatic, optional
flush0not used, for compatibility only
Note
Horizontal and vertical margins of 3 + 3 pixels


More: Coordinates, Colours

◆ setColours()

void Graphics::setColours ( uint16_t frontColour = myColours.black,
uint16_t backColour = myColours.white,
uint16_t middleColour = myColours.grey )

Set the colours palette.

Parameters
frontColour16-bit colours for text and rectangles
backColour16-bit colours for background
middleColour16-bit colours for intermediate

The documentation for this class was generated from the following file: