diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-03 20:39:16 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-03 20:39:16 +0100 |
commit | 86aef5990a702cc10c99d41c8aa7cc15b3338cae (patch) | |
tree | bc49b57f90581c88214f07ef9e29c8d6cdb55884 /src/gwin/gwin_slider.h | |
parent | de149299ae02d36c8393cbe52ba9025f3ed2de21 (diff) | |
download | uGFX-86aef5990a702cc10c99d41c8aa7cc15b3338cae.tar.gz uGFX-86aef5990a702cc10c99d41c8aa7cc15b3338cae.tar.bz2 uGFX-86aef5990a702cc10c99d41c8aa7cc15b3338cae.zip |
Doxygen (documenting each built-in rendering function for widgets)
Diffstat (limited to 'src/gwin/gwin_slider.h')
-rw-r--r-- | src/gwin/gwin_slider.h | 47 |
1 files changed, 34 insertions, 13 deletions
diff --git a/src/gwin/gwin_slider.h b/src/gwin/gwin_slider.h index 91a381a5..969990b7 100644 --- a/src/gwin/gwin_slider.h +++ b/src/gwin/gwin_slider.h @@ -143,29 +143,50 @@ void gwinSliderSetPosition(GHandle gh, int pos); void gwinSliderSendExtendedEvents(GHandle gh, bool_t enabled); /** - * @brief Some custom slider drawing routines - * @details These function may be passed to @p gwinSetCustomDraw() to get different slider drawing styles + * @defgroup Renderings_Slider Slider rendering functions * - * @param[in] gw The widget (which must be a slider) - * @param[in] param A parameter passed in from the user + * @brief Built-in rendering functions for the slider widget. * - * @note In your custom slider drawing function you may optionally call this + * @details These function may be passed to @p gwinSetCustomDraw() to get different slider drawing styles. + * + * @note In your custom slider drawing function you may optionally call these * standard functions and then draw your extra details on top. - * @note The standard functions below ignore the param parameter except for @p gwinSliderDraw_Image(). - * @note The image custom draw function @p gwinSliderDraw_Image() uses param to pass in the gdispImage pointer. - * The image must be already opened before calling @p gwinSetCustomDraw(). The image is tiled to fill - * the active area of the slider. The normal colors apply to the border and inactive area and the dividing line - * between the active and inactive areas. - * No checking is done to compare the dimensions of the slider to the size of the image. - * Note text is drawn on top of the image. * @note These custom drawing routines don't have to worry about setting clipping as the framework * sets clipping to the object window prior to calling these routines. * - * @api * @{ */ + +/** + * @brief The default rendering function for the slider widget. + * + * @param[in] gw The widget object (must be a slider object). + * @param[in] param A parameter passed in from the user. Ignored by this function. + * + * @api + */ void gwinSliderDraw_Std(GWidgetObject *gw, void *param); + +#if GDISP_NEED_IMAGE || defined(__DOXYGEN__) + /** + * @brief The default rendering function + * + * @param[in] gw The widget object (must be a slider object). + * @param[in] param A parameter passed in from the user. Must be an image handle. See note below. + * + * @note The image must be already opened before calling @p gwinSetCustomDraw(). The image should be 3 + * times the height of the button. The button image is repeated 3 times vertically, the first (top) for + * the "up" image, the 2nd for the "down" image, and the third (bottom) image for the disabled state. If + * the disabled state is never going to be used then the image can be just 2 times the button height. + * No checking is done to compare the size of the button to the size of the image. + * No text is drawn on top of the image. + * + * @pre GDISP_NEED_IMAGE must be set to TRUE + * + * @api + */ void gwinSliderDraw_Image(GWidgetObject *gw, void *param); +#endif /* GDISP_NEED_IMAGE */ /** @} */ #ifdef __cplusplus |