Download Stellaris Graphics Library User's Guide

Transcript
Push Button Widget
pDisplay is a pointer to the display on which to draw the push button.
lX is the X coordinate of the upper left corner of the push button.
lY is the Y coordinate of the upper left corner of the push button.
lWidth is the width of the push button.
lHeight is the height of the push button.
ulStyle is the style to be applied to the push button.
ulFillColor is the color used to fill in the push button.
ulPressFillColor is the color used to fill in the push button when it is pressed.
ulOutlineColor is the color used to outline the push button.
ulTextColor is the color used to draw text on the push button.
pFont is a pointer to the font to be used to draw text on the push button.
pcText is a pointer to the text to draw on this push button.
pucImage is a pointer to the image to draw on this push button.
pucPressImage is a pointer to the image to draw on this push button when it is pressed.
usAutoRepeatDelay is the delay before starting auto-repeat.
usAutoRepeatRate is the rate at which auto-repeat events are generated.
pfnOnClick is a pointer to the function that is called when the push button is pressed.
Description:
This macro provides an initialized rectangular push button widget data structure, which can be
used to construct the widget tree at compile time in global variables (as opposed to run-time
via function calls).
ulStyle is the logical OR of the following:
PB_STYLE_OUTLINE to indicate that the push button should be outlined.
PB_STYLE_FILL to indicate that the push button should be filled.
PB_STYLE_TEXT to indicate that the push button should have text drawn on it (using
pFont and pcText).
PB_STYLE_IMG to indicate that the push button should have an image drawn on it (using
pucImage).
PB_STYLE_TEXT_OPAQUE to indicate that the push button text should be drawn opaque
(in other words, drawing the background pixels).
PB_STYLE_AUTO_REPEAT to indicate that auto-repeat should be used.
PB_STYLE_RELEASE_NOTIFY to indicate that the callback should be made when the
button is released. If absent, the callback is called when the button is initially pressed.
Returns:
Nothing; this is not a function.
10.2.3.35 RectangularButtonStruct
Declares an initialized rectangular push button widget data structure.
Definition:
#define RectangularButtonStruct(pParent,
pNext,
pChild,
pDisplay,
196
September 05, 2012