Change lv_group_send_data() return type to lv_res_t

This commit is contained in:
Brian Pugh
2019-01-03 14:57:04 -08:00
parent 2ab274542a
commit 3922c18054
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -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
* @param group pointer to a group
* @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);
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
View File
@@ -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
* @param group pointer to a group
* @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