Added gwinDetachToggle method interface
This commit is contained in:
parent
97511a9fc7
commit
aae423fd7f
2 changed files with 14 additions and 1 deletions
|
@ -99,7 +99,6 @@ static void gwidgetEvent(void *param, GEvent *pe) {
|
||||||
#define pte ((GEventToggle *)pe)
|
#define pte ((GEventToggle *)pe)
|
||||||
#define pde ((GEventDial *)pe)
|
#define pde ((GEventDial *)pe)
|
||||||
|
|
||||||
GHandle h;
|
|
||||||
GHandle gh;
|
GHandle gh;
|
||||||
#if GFX_USE_GINPUT && (GINPUT_NEED_TOGGLE || GINPUT_NEED_DIAL)
|
#if GFX_USE_GINPUT && (GINPUT_NEED_TOGGLE || GINPUT_NEED_DIAL)
|
||||||
uint16_t role;
|
uint16_t role;
|
||||||
|
|
|
@ -356,6 +356,20 @@ bool_t gwinAttachListener(GListener *pl);
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
bool_t gwinAttachToggle(GHandle gh, uint16_t role, uint16_t instance);
|
bool_t gwinAttachToggle(GHandle gh, uint16_t role, uint16_t instance);
|
||||||
|
/**
|
||||||
|
* @brief Detach a toggle from a widget
|
||||||
|
* @return TRUE on success
|
||||||
|
*
|
||||||
|
* @param[in] gh The widget handle
|
||||||
|
* @param[in] role The function the toggle will perform for the widget
|
||||||
|
*
|
||||||
|
* @note See the documentation on the specific widget to see the possible
|
||||||
|
* values for the role parameter. If it is out of range, this function
|
||||||
|
* will return FALSE
|
||||||
|
*
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
bool_t gwinDetachToggle(GHandle gh, uint16_t role);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (GFX_USE_GINPUT && GINPUT_NEED_DIAL) || defined(__DOXYGEN__)
|
#if (GFX_USE_GINPUT && GINPUT_NEED_DIAL) || defined(__DOXYGEN__)
|
||||||
|
|
Loading…
Add table
Reference in a new issue