mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-01 08:54:52 +08:00
Change lv_group_send_data() return type to lv_res_t
This commit is contained in:
+4
-3
@@ -265,13 +265,14 @@ void lv_group_focus_freeze(lv_group_t * group, bool en)
|
|||||||
* Send a control character to the focuses object of a group
|
* Send a control character to the focuses object of a group
|
||||||
* @param group pointer to a group
|
* @param group pointer to a group
|
||||||
* @param c a character (use LV_GROUP_KEY_.. to navigate)
|
* @param c a character (use LV_GROUP_KEY_.. to navigate)
|
||||||
|
* @return result of focused object in group.
|
||||||
*/
|
*/
|
||||||
void lv_group_send_data(lv_group_t * group, uint32_t c)
|
lv_res_t lv_group_send_data(lv_group_t * group, uint32_t c)
|
||||||
{
|
{
|
||||||
lv_obj_t * act = lv_group_get_focused(group);
|
lv_obj_t * act = lv_group_get_focused(group);
|
||||||
if(act == NULL) return;
|
if(act == NULL) return LV_RES_OK;
|
||||||
|
|
||||||
act->signal_func(act, LV_SIGNAL_CONTROLL, &c);
|
return act->signal_func(act, LV_SIGNAL_CONTROLL, &c);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+2
-1
@@ -124,8 +124,9 @@ void lv_group_focus_freeze(lv_group_t * group, bool en);
|
|||||||
* Send a control character to the focuses object of a group
|
* Send a control character to the focuses object of a group
|
||||||
* @param group pointer to a group
|
* @param group pointer to a group
|
||||||
* @param c a character (use LV_GROUP_KEY_.. to navigate)
|
* @param c a character (use LV_GROUP_KEY_.. to navigate)
|
||||||
|
* @return result of focused object in group.
|
||||||
*/
|
*/
|
||||||
void lv_group_send_data(lv_group_t * group, uint32_t c);
|
lv_res_t lv_group_send_data(lv_group_t * group, uint32_t c);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a function for a group which will modify the object's style if it is in focus
|
* Set a function for a group which will modify the object's style if it is in focus
|
||||||
|
|||||||
Reference in New Issue
Block a user