diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-05-27 12:53:34 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-05-27 12:53:34 +0200 |
commit | a4ca308dd51bb780ead1e2388bffe391fcef5659 (patch) | |
tree | 4948c80d027b5e311200115ec1817a8442d7a13b /include | |
parent | 9c33df953dcc7bcfa1f73a7f3d275ff04e58ed17 (diff) | |
download | uGFX-a4ca308dd51bb780ead1e2388bffe391fcef5659.tar.gz uGFX-a4ca308dd51bb780ead1e2388bffe391fcef5659.tar.bz2 uGFX-a4ca308dd51bb780ead1e2388bffe391fcef5659.zip |
added slider enable/disable API
Diffstat (limited to 'include')
-rw-r--r-- | include/gwin/slider.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/gwin/slider.h b/include/gwin/slider.h index c22dc5f4..9a51d042 100644 --- a/include/gwin/slider.h +++ b/include/gwin/slider.h @@ -142,6 +142,16 @@ void gwinSetSliderStyle(GHandle gh, const GSliderDrawStyle *pStyle); void gwinSliderDraw(GHandle gh); /** + * @brief Enable or disable a button + * + * @param[in] gh The window handle (must be a slider window) + * @param[in] enabled Enable or disable the slider + * + * @api + */ +void gwinSliderSetEnabled(GHandle gh, bool_t enabled); + +/** * @brief Set the callback routine to perform a custom slider drawing. * * @param[in] gh The window handle (must be a slider window) @@ -153,6 +163,20 @@ void gwinSliderDraw(GHandle gh); void gwinSetSliderCustom(GHandle gh, GSliderDrawFunction fn, void *param); /** + * @brief Enable a slider + * + * @api + */ +#define gwinEnableSlider(gh) gwinSetSliderEnabled( ((GSliderObject *)(gh)), TRUE) + +/** + * @brief Disable a slider + * + * @api + */ +#define gwinDisableSlider(gh) gwinSetSliderEnabled( ((GSliderObject *)(gh)), FALSE) + +/** * @brief Get the current slider position. * @return The slider position * |