Analog Clock

Microchip Graphics Library

Microchip Graphics Library
Analog Clock

The Analog Clock object is rendered using the assigned style scheme. The following figure illustrates the color assignments for the clock. 

 

 

Functions
 
Name 
Description 
 
This function creates an Analog Clock object with the parameters given. It automatically attaches the new object into a global linked list of objects and returns the address of the object. 
 
This function renders the object on the screen using the current parameter settings. Location of the object is determined by the left, top, right and bottom parameters. The colors used are dependent on the state of the object. The font used is determined by the style scheme set. 
 
Sets the hour value of the analog clock. 
 
Sets the minute value of the analog clock. 
 
Sets the second value of the analog clock. 
Structures
Name 
Description 
Defines the parameters required for a clock Object. The following relationships of the parameters determines the general shape of the clock:
  1. centerx and centery determine the middle of the clock.
  2. radius defines the radius of the clock.
  3. *pBitmap points to the background image for the analog clock.
 
Topics
Name 
Description 
List of Analog Clock bit states. 
Links
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved