BUTTON Structure

Microchip Graphics Library

Microchip Graphics Library
BUTTON Structure
C
typedef struct {
  OBJ_HEADER hdr;
  SHORT radius;
  SHORT textWidth;
  SHORT textHeight;
  XCHAR * pText;
  void * pBitmap;
  GFX_COLOR previousAlphaColor;
} BUTTON;
Overview

Defines the parameters required for a button Object. The following relationships of the parameters determines the general shape of the button:

  1. Width is determined by right - left.
  2. Height is determined by top - bottom.
  3. Radius - specifies if the button will have a rounded edge. If zero then the button will have sharp (cornered) edge.
  4. If 2*radius = height = width, the button is a circular button.

Members
Members 
Description 
OBJ_HEADER hdr; 
Generic header for all Objects (see OBJ_HEADER). 
SHORT radius; 
Radius for rounded buttons. 
SHORT textWidth; 
Computed text width, done at creation. 
SHORT textHeight; 
Computed text height, done at creation. 
XCHAR * pText; 
Pointer to the text used. 
void * pBitmap; 
Pointer to bitmap used. 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved