Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Clock graphics element. More...
#include <hV_Graphics.h>
Public Member Functions | |
Clock (Graphics *graphics) | |
Constructor. | |
void | dDefine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint16_t hourColour=myColours.black, uint16_t minuteColour=myColours.black, uint16_t secondColour=myColours.black) |
Define the clock, vector coordinates. | |
void | define (uint16_t x0, uint16_t y0, uint16_t radius, uint16_t hourColour=myColours.black, uint16_t minuteColour=myColours.black, uint16_t secondColour=myColours.black) |
Define the clock, rectangle coordinates. | |
void | draw (uint8_t hour, uint8_t minute, uint8_t second, uint8_t s100th=0, STRING_CONST_TYPE text="") |
Update and draw the clock. | |
Public Member Functions inherited from mtgDial | |
mtgDial (Graphics *graphics) | |
Constructor. | |
Clock::Clock | ( | Graphics * | graphics | ) |
Constructor.
graphics | &graphics to which the element belongs |
void Clock::dDefine | ( | uint16_t | x0, |
uint16_t | y0, | ||
uint16_t | dx, | ||
uint16_t | dy, | ||
uint16_t | hourColour = myColours.black, | ||
uint16_t | minuteColour = myColours.black, | ||
uint16_t | secondColour = myColours.black ) |
Define the clock, 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 |
hourColour | 16-bit colour for hours, default = black, optional |
minuteColour | 16-bit colour for minutes, default = black, optional |
secondColour | 16-bit colour for seconds, default = black, optional |
More: Coordinates, Colours
void Clock::define | ( | uint16_t | x0, |
uint16_t | y0, | ||
uint16_t | radius, | ||
uint16_t | hourColour = myColours.black, | ||
uint16_t | minuteColour = myColours.black, | ||
uint16_t | secondColour = myColours.black ) |
Define the clock, rectangle coordinates.
screen | &screen to which the graphic belongs |
x0 | center, point coordinate, x-axis |
y0 | center, point coordinate, y-axis |
radius | radius |
hourColour | 16-bit colour for hours, default = black, optional |
minuteColour | 16-bit colour for minutes, default = black, optional |
secondColour | 16-bit colour for seconds, default = black, optional |
More: Coordinates, Colours
void Clock::draw | ( | uint8_t | hour, |
uint8_t | minute, | ||
uint8_t | second, | ||
uint8_t | s100th = 0, | ||
STRING_CONST_TYPE | text = "" ) |
Update and draw the clock.
hour | hours, 0..23 |
minute | minutes, 0.59 |
second | seconds, 0..49 |
text | text to be displayed |