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:
- Width is determined by right - left.
- Height is determined by top - bottom.
- Radius - specifies if the button will have a rounded edge. If zero then the button will have sharp (cornered) edge.
- 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. |