ANALOGCLOCK Structure

Microchip Graphics Library

Microchip Graphics Library
ANALOGCLOCK Structure
C
typedef struct {
  OBJ_HEADER hdr;
  SHORT radius;
  SHORT centerx;
  SHORT centery;
  SHORT valueS;
  SHORT prev_valueS;
  SHORT valueM;
  SHORT prev_valueM;
  SHORT valueH;
  SHORT prev_valueH;
  void * pBitmap;
} ANALOGCLOCK;
Overview

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.

Members
Members 
Description 
OBJ_HEADER hdr; 
Generic header for all Objects (see OBJ_HEADER). 
SHORT radius; 
Radius of the clock. 
SHORT centerx; 
center location in X-axis. 
SHORT centery; 
center location in Y-axis. 
SHORT valueS; 
time in Second 
SHORT prev_valueS; 
previous time in Second 
SHORT valueM; 
time in Minute 
SHORT prev_valueM; 
previous time in Minute 
SHORT valueH; 
time in Hour 
SHORT prev_valueH; 
previous time in Hour 
void * pBitmap; 
Pointer to bitmap used. 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved