diff --git a/src/lv_core/lv_group.h b/src/lv_core/lv_group.h index cfba02182..3a0b38da7 100644 --- a/src/lv_core/lv_group.h +++ b/src/lv_core/lv_group.h @@ -73,10 +73,11 @@ typedef struct _lv_group_t uint8_t wrap :1; /*1: Focus next/prev can wrap at end of list. 0: Focus next/prev stops at end of list.*/ } lv_group_t; -typedef enum _lv_group_refocus_policy_t { +enum _lv_group_refocus_policy_t { LV_GROUP_REFOCUS_POLICY_NEXT = 0, LV_GROUP_REFOCUS_POLICY_PREV = 1 -} lv_group_refocus_policy_t; +}; +typedef uint8_t lv_group_refocus_policy_t; /********************** * GLOBAL PROTOTYPES diff --git a/src/lv_core/lv_obj.h b/src/lv_core/lv_obj.h index 637087e1b..7918e10dc 100644 --- a/src/lv_core/lv_obj.h +++ b/src/lv_core/lv_obj.h @@ -72,7 +72,7 @@ enum typedef uint8_t lv_res_t; -typedef enum { +enum { LV_EVENT_PRESSED, /*The object has been pressed*/ LV_EVENT_PRESSING, /*The object is being pressed (called continuously while pressing)*/ LV_EVENT_PRESS_LOST, /*Still pressing but slid from the objects*/ @@ -94,7 +94,8 @@ typedef enum { LV_EVENT_REFRESH, LV_EVENT_APPLY, /*"Ok", "Apply" or similar specific button has clicked*/ LV_EVENT_CANCEL, /*"Close", "Cancel" or similar specific button has clicked*/ -}lv_event_t; +}; +typedef uint8_t lv_event_t; typedef void (*lv_event_cb_t)(struct _lv_obj_t * obj, lv_event_t event); diff --git a/src/lv_objx/lv_cont.h b/src/lv_objx/lv_cont.h index 0dade26db..0f06e5504 100644 --- a/src/lv_objx/lv_cont.h +++ b/src/lv_objx/lv_cont.h @@ -48,12 +48,13 @@ enum typedef uint8_t lv_layout_t; -typedef enum { +enum { LV_FIT_NONE, /*Do not change the size automatically*/ LV_FIT_TIGHT, /*Involve the children*/ LV_FIT_FLOOD, /*Align the size to the parent's edge*/ LV_FIT_FILL, /*Align the size to the parent's edge first but if there is an object out of it then involve it*/ -}lv_fit_t; +}; +typedef uint8_t lv_fit_t; typedef struct {