mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
Changed 'typedef enum' to 'typedef uint8_t'
This commit is contained in:
parent
dccdf1e5a4
commit
5456418d54
@ -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.*/
|
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;
|
} 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_NEXT = 0,
|
||||||
LV_GROUP_REFOCUS_POLICY_PREV = 1
|
LV_GROUP_REFOCUS_POLICY_PREV = 1
|
||||||
} lv_group_refocus_policy_t;
|
};
|
||||||
|
typedef uint8_t lv_group_refocus_policy_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
@ -72,7 +72,7 @@ enum
|
|||||||
typedef uint8_t lv_res_t;
|
typedef uint8_t lv_res_t;
|
||||||
|
|
||||||
|
|
||||||
typedef enum {
|
enum {
|
||||||
LV_EVENT_PRESSED, /*The object has been pressed*/
|
LV_EVENT_PRESSED, /*The object has been pressed*/
|
||||||
LV_EVENT_PRESSING, /*The object is being pressed (called continuously while pressing)*/
|
LV_EVENT_PRESSING, /*The object is being pressed (called continuously while pressing)*/
|
||||||
LV_EVENT_PRESS_LOST, /*Still pressing but slid from the objects*/
|
LV_EVENT_PRESS_LOST, /*Still pressing but slid from the objects*/
|
||||||
@ -94,7 +94,8 @@ typedef enum {
|
|||||||
LV_EVENT_REFRESH,
|
LV_EVENT_REFRESH,
|
||||||
LV_EVENT_APPLY, /*"Ok", "Apply" or similar specific button has clicked*/
|
LV_EVENT_APPLY, /*"Ok", "Apply" or similar specific button has clicked*/
|
||||||
LV_EVENT_CANCEL, /*"Close", "Cancel" 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);
|
typedef void (*lv_event_cb_t)(struct _lv_obj_t * obj, lv_event_t event);
|
||||||
|
|
||||||
|
@ -48,12 +48,13 @@ enum
|
|||||||
typedef uint8_t lv_layout_t;
|
typedef uint8_t lv_layout_t;
|
||||||
|
|
||||||
|
|
||||||
typedef enum {
|
enum {
|
||||||
LV_FIT_NONE, /*Do not change the size automatically*/
|
LV_FIT_NONE, /*Do not change the size automatically*/
|
||||||
LV_FIT_TIGHT, /*Involve the children*/
|
LV_FIT_TIGHT, /*Involve the children*/
|
||||||
LV_FIT_FLOOD, /*Align the size to the parent's edge*/
|
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_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
|
typedef struct
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user