Graphics.
More...
#include <hV_Graphics.h>
|
| 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.
|
|
|
class | mtgDial |
|
class | Clock |
|
class | Gauge |
|
class | gYaw |
|
class | gPitch |
|
class | gRoll |
|
class | mtgPanel |
|
class | Histogram |
|
class | Channels |
|
class | Multiple |
|
Graphics.
Shared settings
◆ Graphics()
Constructor.
- Parameters
-
screen | &screen to which the graphics elements belong |
◆ 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
-
x0 | point coordinate, x-axis |
y0 | point coordinate, y-axis |
dx | length, x-axis |
dy | height, y-axis |
text0 | text for the label |
textColour0 | 16-bit colour for text, default = white, optional |
backColour0 | 16-bit colour for background, default = black, optional |
horizontal0 | horizontal position with -1 = left, 0 = center, 1 = right, optional |
vertical0 | vertical position with 1 = top, 0 = center, -1 = bottom, optional |
size0 | size of the font, default = fontSizeAutomatic = automatic, optional |
flush0 | not 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
-
frontColour | 16-bit colours for text and rectangles |
backColour | 16-bit colours for background |
middleColour | 16-bit colours for intermediate |
The documentation for this class was generated from the following file: