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
Clock Class Reference

Clock graphics element. More...

#include <hV_Graphics.h>

Inheritance diagram for Clock:
Collaboration diagram for Clock:

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.
 

Detailed Description

Clock graphics element.

Clock displays an analog clock inside a rounded dial

Constructor & Destructor Documentation

◆ Clock()

Clock::Clock ( Graphics * graphics)

Constructor.

Parameters
graphics&graphics to which the element belongs

Member Function Documentation

◆ dDefine()

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.

Parameters
screen&screen to which the graphic belongs
x0point coordinate, x-axis
y0point coordinate, y-axis
dxlength, x-axis
dyheight, y-axis
hourColour16-bit colour for hours, default = black, optional
minuteColour16-bit colour for minutes, default = black, optional
secondColour16-bit colour for seconds, default = black, optional


More: Coordinates, Colours

◆ define()

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.

Parameters
screen&screen to which the graphic belongs
x0center, point coordinate, x-axis
y0center, point coordinate, y-axis
radiusradius
hourColour16-bit colour for hours, default = black, optional
minuteColour16-bit colour for minutes, default = black, optional
secondColour16-bit colour for seconds, default = black, optional


More: Coordinates, Colours

◆ draw()

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.

Parameters
hourhours, 0..23
minuteminutes, 0.59
secondseconds, 0..49
texttext to be displayed

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