Formatting all header files (*.h) in accordance with project coding style, using the astyle tool and the rules file _astylerc-h.
This commit is contained in:
@@ -49,7 +49,7 @@ typedef struct _lv_group_t
|
|||||||
lv_group_focus_cb_t focus_cb; /*A function to call when a new object is focused (optional)*/
|
lv_group_focus_cb_t focus_cb; /*A function to call when a new object is focused (optional)*/
|
||||||
lv_style_t style_tmp; /*Stores the modified style of the focused object */
|
lv_style_t style_tmp; /*Stores the modified style of the focused object */
|
||||||
uint8_t frozen:1; /*1: can't focus to new object*/
|
uint8_t frozen:1; /*1: can't focus to new object*/
|
||||||
}lv_group_t;
|
} lv_group_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ typedef enum
|
|||||||
LV_DESIGN_DRAW_MAIN,
|
LV_DESIGN_DRAW_MAIN,
|
||||||
LV_DESIGN_DRAW_POST,
|
LV_DESIGN_DRAW_POST,
|
||||||
LV_DESIGN_COVER_CHK,
|
LV_DESIGN_COVER_CHK,
|
||||||
}lv_design_mode_t;
|
} lv_design_mode_t;
|
||||||
|
|
||||||
typedef bool (* lv_design_func_t) (struct _lv_obj_t * obj, const lv_area_t * mask_p, lv_design_mode_t mode);
|
typedef bool (* lv_design_func_t) (struct _lv_obj_t * obj, const lv_area_t * mask_p, lv_design_mode_t mode);
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ typedef enum
|
|||||||
{
|
{
|
||||||
LV_RES_INV = 0, /*Typically indicates that the object is deleted (become invalid) in the action function*/
|
LV_RES_INV = 0, /*Typically indicates that the object is deleted (become invalid) in the action function*/
|
||||||
LV_RES_OK, /*The object is valid (no deleted) after the action*/
|
LV_RES_OK, /*The object is valid (no deleted) after the action*/
|
||||||
}lv_res_t;
|
} lv_res_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
@@ -98,7 +98,7 @@ typedef enum
|
|||||||
LV_SIGNAL_FOCUS,
|
LV_SIGNAL_FOCUS,
|
||||||
LV_SIGNAL_DEFOCUS,
|
LV_SIGNAL_DEFOCUS,
|
||||||
LV_SIGNAL_CONTROLL,
|
LV_SIGNAL_CONTROLL,
|
||||||
}lv_signal_t;
|
} lv_signal_t;
|
||||||
|
|
||||||
typedef lv_res_t (* lv_signal_func_t) (struct _lv_obj_t * obj, lv_signal_t sign, void * param);
|
typedef lv_res_t (* lv_signal_func_t) (struct _lv_obj_t * obj, lv_signal_t sign, void * param);
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ typedef struct _lv_obj_t
|
|||||||
#ifdef LV_OBJ_FREE_NUM_TYPE
|
#ifdef LV_OBJ_FREE_NUM_TYPE
|
||||||
LV_OBJ_FREE_NUM_TYPE free_num; /*Application specific identifier (set it freely)*/
|
LV_OBJ_FREE_NUM_TYPE free_num; /*Application specific identifier (set it freely)*/
|
||||||
#endif
|
#endif
|
||||||
}lv_obj_t;
|
} lv_obj_t;
|
||||||
|
|
||||||
typedef lv_res_t (*lv_action_t) (struct _lv_obj_t * obj);
|
typedef lv_res_t (*lv_action_t) (struct _lv_obj_t * obj);
|
||||||
|
|
||||||
@@ -151,13 +151,13 @@ typedef enum
|
|||||||
LV_PROTECT_POS = 0x04, /*Prevent automatic positioning (e.g. in lv_cont layout)*/
|
LV_PROTECT_POS = 0x04, /*Prevent automatic positioning (e.g. in lv_cont layout)*/
|
||||||
LV_PROTECT_FOLLOW = 0x08, /*Prevent the object be followed in automatic ordering (e.g. in lv_cont PRETTY layout)*/
|
LV_PROTECT_FOLLOW = 0x08, /*Prevent the object be followed in automatic ordering (e.g. in lv_cont PRETTY layout)*/
|
||||||
LV_PROTECT_PRESS_LOST= 0x10, /*TODO */
|
LV_PROTECT_PRESS_LOST= 0x10, /*TODO */
|
||||||
}lv_protect_t;
|
} lv_protect_t;
|
||||||
|
|
||||||
|
|
||||||
/*Used by `lv_obj_get_type()`. The object's and its ancestor types are stored here*/
|
/*Used by `lv_obj_get_type()`. The object's and its ancestor types are stored here*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char * type[LV_MAX_ANCESTOR_NUM]; /*[0]: the actual type, [1]: ancestor, [2] #1's ancestor ... [x]: "lv_obj" */
|
const char * type[LV_MAX_ANCESTOR_NUM]; /*[0]: the actual type, [1]: ancestor, [2] #1's ancestor ... [x]: "lv_obj" */
|
||||||
}lv_obj_type_t;
|
} lv_obj_type_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
@@ -182,7 +182,7 @@ typedef enum
|
|||||||
LV_ALIGN_OUT_RIGHT_TOP,
|
LV_ALIGN_OUT_RIGHT_TOP,
|
||||||
LV_ALIGN_OUT_RIGHT_MID,
|
LV_ALIGN_OUT_RIGHT_MID,
|
||||||
LV_ALIGN_OUT_RIGHT_BOTTOM,
|
LV_ALIGN_OUT_RIGHT_BOTTOM,
|
||||||
}lv_align_t;
|
} lv_align_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
@@ -193,7 +193,7 @@ typedef enum
|
|||||||
LV_ANIM_FLOAT_RIGHT, /*Float from/to the right*/
|
LV_ANIM_FLOAT_RIGHT, /*Float from/to the right*/
|
||||||
LV_ANIM_GROW_H, /*Grow/shrink horizontally*/
|
LV_ANIM_GROW_H, /*Grow/shrink horizontally*/
|
||||||
LV_ANIM_GROW_V, /*Grow/shrink vertically*/
|
LV_ANIM_GROW_V, /*Grow/shrink vertically*/
|
||||||
}lv_anim_builtin_t;
|
} lv_anim_builtin_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -37,14 +37,14 @@ typedef enum
|
|||||||
LV_BORDER_LEFT = 0x04,
|
LV_BORDER_LEFT = 0x04,
|
||||||
LV_BORDER_RIGHT = 0x08,
|
LV_BORDER_RIGHT = 0x08,
|
||||||
LV_BORDER_FULL = 0x0F,
|
LV_BORDER_FULL = 0x0F,
|
||||||
}lv_border_part_t;
|
} lv_border_part_t;
|
||||||
|
|
||||||
/*Shadow types*/
|
/*Shadow types*/
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
LV_SHADOW_BOTTOM = 0,
|
LV_SHADOW_BOTTOM = 0,
|
||||||
LV_SHADOW_FULL,
|
LV_SHADOW_FULL,
|
||||||
}lv_shadow_type_t;
|
} lv_shadow_type_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@@ -61,22 +61,22 @@ typedef struct
|
|||||||
lv_coord_t width;
|
lv_coord_t width;
|
||||||
lv_border_part_t part;
|
lv_border_part_t part;
|
||||||
lv_opa_t opa;
|
lv_opa_t opa;
|
||||||
}border;
|
} border;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
lv_color_t color;
|
lv_color_t color;
|
||||||
lv_coord_t width;
|
lv_coord_t width;
|
||||||
uint8_t type;
|
uint8_t type;
|
||||||
}shadow;
|
} shadow;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
lv_coord_t ver;
|
lv_coord_t ver;
|
||||||
lv_coord_t hor;
|
lv_coord_t hor;
|
||||||
lv_coord_t inner;
|
lv_coord_t inner;
|
||||||
}padding;
|
} padding;
|
||||||
|
|
||||||
uint8_t empty :1; /*Transparent background (border still drawn)*/
|
uint8_t empty :1; /*Transparent background (border still drawn)*/
|
||||||
}body;
|
} body;
|
||||||
|
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
@@ -85,20 +85,20 @@ typedef struct
|
|||||||
lv_coord_t letter_space;
|
lv_coord_t letter_space;
|
||||||
lv_coord_t line_space;
|
lv_coord_t line_space;
|
||||||
lv_opa_t opa;
|
lv_opa_t opa;
|
||||||
}text;
|
} text;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
lv_color_t color;
|
lv_color_t color;
|
||||||
lv_opa_t intense;
|
lv_opa_t intense;
|
||||||
lv_opa_t opa;
|
lv_opa_t opa;
|
||||||
}image;
|
} image;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
lv_color_t color;
|
lv_color_t color;
|
||||||
lv_coord_t width;
|
lv_coord_t width;
|
||||||
lv_opa_t opa;
|
lv_opa_t opa;
|
||||||
}line;
|
} line;
|
||||||
}lv_style_t;
|
} lv_style_t;
|
||||||
|
|
||||||
#if USE_LV_ANIMATION
|
#if USE_LV_ANIMATION
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -112,7 +112,7 @@ typedef struct {
|
|||||||
uint16_t repeat_pause; /*Wait before repeat*/
|
uint16_t repeat_pause; /*Wait before repeat*/
|
||||||
uint8_t playback :1; /*When the animation is ready play it back*/
|
uint8_t playback :1; /*When the animation is ready play it back*/
|
||||||
uint8_t repeat :1; /*Repeat the animation infinitely*/
|
uint8_t repeat :1; /*Repeat the animation infinitely*/
|
||||||
}lv_style_anim_t;
|
} lv_style_anim_t;
|
||||||
|
|
||||||
/* Example initialization
|
/* Example initialization
|
||||||
lv_style_anim_t a;
|
lv_style_anim_t a;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
lv_area_t area;
|
lv_area_t area;
|
||||||
lv_color_t *buf;
|
lv_color_t *buf;
|
||||||
}lv_vdb_t;
|
} lv_vdb_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -36,14 +36,14 @@ extern "C" {
|
|||||||
* the result image converter utility*/
|
* the result image converter utility*/
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
union{
|
union {
|
||||||
struct {
|
struct {
|
||||||
uint32_t chroma_keyed:1; /*1: The image contains transparent pixels with LV_COLOR_TRANSP color*/
|
uint32_t chroma_keyed:1; /*1: The image contains transparent pixels with LV_COLOR_TRANSP color*/
|
||||||
uint32_t alpha_byte :1; /*Every pixel is extended with a 8 bit alpha channel*/
|
uint32_t alpha_byte :1; /*Every pixel is extended with a 8 bit alpha channel*/
|
||||||
uint32_t format :6; /*See: lv_img_px_format*/
|
uint32_t format :6; /*See: lv_img_px_format*/
|
||||||
uint32_t w:12; /*Width of the image map*/
|
uint32_t w:12; /*Width of the image map*/
|
||||||
uint32_t h:12; /*Height of the image map*/
|
uint32_t h:12; /*Height of the image map*/
|
||||||
}header;
|
} header;
|
||||||
uint8_t src_type;
|
uint8_t src_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ typedef struct
|
|||||||
const uint8_t * pixel_map; /*For internal images (c arrays) pointer to the pixels array*/
|
const uint8_t * pixel_map; /*For internal images (c arrays) pointer to the pixels array*/
|
||||||
uint8_t first_pixel; /*For external images (binary) the first byte of the pixels (just for convenient)*/
|
uint8_t first_pixel; /*For external images (binary) the first byte of the pixels (just for convenient)*/
|
||||||
};
|
};
|
||||||
}lv_img_t;
|
} lv_img_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_IMG_FORMAT_UNKOWN = 0,
|
LV_IMG_FORMAT_UNKOWN = 0,
|
||||||
@@ -59,7 +59,7 @@ typedef enum {
|
|||||||
LV_IMG_FORMAT_FILE_RAW_RGB332, /*8 bit*/
|
LV_IMG_FORMAT_FILE_RAW_RGB332, /*8 bit*/
|
||||||
LV_IMG_FORMAT_FILE_RAW_RGB565, /*16 bit*/
|
LV_IMG_FORMAT_FILE_RAW_RGB565, /*16 bit*/
|
||||||
LV_IMG_FORMAT_FILE_RAW_RGB888, /*24 bit (stored on 32 bit)*/
|
LV_IMG_FORMAT_FILE_RAW_RGB888, /*24 bit (stored on 32 bit)*/
|
||||||
}lv_img_format_t;
|
} lv_img_format_t;
|
||||||
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@@ -67,7 +67,7 @@ typedef enum {
|
|||||||
LV_IMG_SRC_FILE,
|
LV_IMG_SRC_FILE,
|
||||||
LV_IMG_SRC_SYMBOL,
|
LV_IMG_SRC_SYMBOL,
|
||||||
LV_IMG_SRC_UNKNOWN,
|
LV_IMG_SRC_UNKNOWN,
|
||||||
}lv_img_src_t;
|
} lv_img_src_t;
|
||||||
|
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ typedef enum {
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
LV_INDEV_STATE_REL = 0,
|
LV_INDEV_STATE_REL = 0,
|
||||||
LV_INDEV_STATE_PR
|
LV_INDEV_STATE_PR
|
||||||
}lv_indev_state_t;
|
} lv_indev_state_t;
|
||||||
|
|
||||||
/*Data type when an input device is read */
|
/*Data type when an input device is read */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -51,14 +51,14 @@ typedef struct {
|
|||||||
};
|
};
|
||||||
lv_indev_state_t state; /*LV_INDEV_EVENT_REL or LV_INDEV_EVENT_PR*/
|
lv_indev_state_t state; /*LV_INDEV_EVENT_REL or LV_INDEV_EVENT_PR*/
|
||||||
void *user_data; /*'lv_indev_drv_t.priv' for this driver*/
|
void *user_data; /*'lv_indev_drv_t.priv' for this driver*/
|
||||||
}lv_indev_data_t;
|
} lv_indev_data_t;
|
||||||
|
|
||||||
/*Initialized by the user and registered by 'lv_indev_add()'*/
|
/*Initialized by the user and registered by 'lv_indev_add()'*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
lv_hal_indev_type_t type; /*Input device type*/
|
lv_hal_indev_type_t type; /*Input device type*/
|
||||||
bool (*read)(lv_indev_data_t *data); /*Function pointer to read data. Return 'true' if there is still data to be read (buffered)*/
|
bool (*read)(lv_indev_data_t *data); /*Function pointer to read data. Return 'true' if there is still data to be read (buffered)*/
|
||||||
void *user_data; /*Pointer to user defined data, passed in 'lv_indev_data_t' on read*/
|
void *user_data; /*Pointer to user defined data, passed in 'lv_indev_data_t' on read*/
|
||||||
}lv_indev_drv_t;
|
} lv_indev_drv_t;
|
||||||
|
|
||||||
struct _lv_obj_t;
|
struct _lv_obj_t;
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ typedef struct _lv_indev_proc_t {
|
|||||||
uint8_t long_pr_sent :1;
|
uint8_t long_pr_sent :1;
|
||||||
uint8_t reset_query :1;
|
uint8_t reset_query :1;
|
||||||
uint8_t disabled :1;
|
uint8_t disabled :1;
|
||||||
}lv_indev_proc_t;
|
} lv_indev_proc_t;
|
||||||
|
|
||||||
|
|
||||||
struct _lv_obj_t;
|
struct _lv_obj_t;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ typedef struct _lv_anim_t
|
|||||||
uint8_t repeat :1; /*Repeat the animation infinitely*/
|
uint8_t repeat :1; /*Repeat the animation infinitely*/
|
||||||
/*Animation system use these - user shouldn't set*/
|
/*Animation system use these - user shouldn't set*/
|
||||||
uint8_t playback_now :1; /*Play back is in progress*/
|
uint8_t playback_now :1; /*Play back is in progress*/
|
||||||
}lv_anim_t;
|
} lv_anim_t;
|
||||||
|
|
||||||
/*Example initialization
|
/*Example initialization
|
||||||
lv_anim_t a;
|
lv_anim_t a;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
lv_coord_t x;
|
lv_coord_t x;
|
||||||
lv_coord_t y;
|
lv_coord_t y;
|
||||||
}lv_point_t;
|
} lv_point_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@@ -41,7 +41,7 @@ typedef struct
|
|||||||
lv_coord_t y1;
|
lv_coord_t y1;
|
||||||
lv_coord_t x2;
|
lv_coord_t x2;
|
||||||
lv_coord_t y2;
|
lv_coord_t y2;
|
||||||
}lv_area_t;
|
} lv_area_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ typedef union
|
|||||||
uint8_t green :1;
|
uint8_t green :1;
|
||||||
uint8_t red :1;
|
uint8_t red :1;
|
||||||
uint8_t full :1;
|
uint8_t full :1;
|
||||||
}lv_color1_t;
|
} lv_color1_t;
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
@@ -75,7 +75,7 @@ typedef union
|
|||||||
uint8_t red :3;
|
uint8_t red :3;
|
||||||
};
|
};
|
||||||
uint8_t full;
|
uint8_t full;
|
||||||
}lv_color8_t;
|
} lv_color8_t;
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
@@ -86,7 +86,7 @@ typedef union
|
|||||||
uint16_t red :5;
|
uint16_t red :5;
|
||||||
};
|
};
|
||||||
uint16_t full;
|
uint16_t full;
|
||||||
}lv_color16_t;
|
} lv_color16_t;
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
@@ -98,7 +98,7 @@ typedef union
|
|||||||
uint8_t alpha;
|
uint8_t alpha;
|
||||||
};
|
};
|
||||||
uint32_t full;
|
uint32_t full;
|
||||||
}lv_color24_t;
|
} lv_color24_t;
|
||||||
|
|
||||||
#if LV_COLOR_DEPTH == 1
|
#if LV_COLOR_DEPTH == 1
|
||||||
typedef uint8_t lv_color_int_t;
|
typedef uint8_t lv_color_int_t;
|
||||||
|
|||||||
@@ -33,13 +33,13 @@ typedef struct
|
|||||||
{
|
{
|
||||||
uint32_t w_px :8;
|
uint32_t w_px :8;
|
||||||
uint32_t glyph_index :24;
|
uint32_t glyph_index :24;
|
||||||
}lv_font_glyph_dsc_t;
|
} lv_font_glyph_dsc_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
uint32_t unicode :21;
|
uint32_t unicode :21;
|
||||||
uint32_t glyph_dsc_index :11;
|
uint32_t glyph_dsc_index :11;
|
||||||
}lv_font_unicode_map_t;
|
} lv_font_unicode_map_t;
|
||||||
|
|
||||||
typedef struct _lv_font_struct
|
typedef struct _lv_font_struct
|
||||||
{
|
{
|
||||||
@@ -49,11 +49,11 @@ typedef struct _lv_font_struct
|
|||||||
const uint8_t * glyph_bitmap;
|
const uint8_t * glyph_bitmap;
|
||||||
const lv_font_glyph_dsc_t * glyph_dsc;
|
const lv_font_glyph_dsc_t * glyph_dsc;
|
||||||
const uint32_t * unicode_list;
|
const uint32_t * unicode_list;
|
||||||
const uint8_t * (*get_bitmap)(const struct _lv_font_struct * ,uint32_t); /*Get a glyph's bitmap from a font*/
|
const uint8_t * (*get_bitmap)(const struct _lv_font_struct *,uint32_t); /*Get a glyph's bitmap from a font*/
|
||||||
int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t); /*Get a glyph's with with a given font*/
|
int16_t (*get_width)(const struct _lv_font_struct *,uint32_t); /*Get a glyph's with with a given font*/
|
||||||
struct _lv_font_struct * next_page; /*Pointer to a font extension*/
|
struct _lv_font_struct * next_page; /*Pointer to a font extension*/
|
||||||
uint32_t bpp :4; /*Bit per pixel: 1, 2 or 4*/
|
uint32_t bpp :4; /*Bit per pixel: 1, 2 or 4*/
|
||||||
}lv_font_t;
|
} lv_font_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ typedef enum
|
|||||||
LV_FS_RES_OUT_OF_MEM, /*Not enough memory for an internal operation*/
|
LV_FS_RES_OUT_OF_MEM, /*Not enough memory for an internal operation*/
|
||||||
LV_FS_RES_INV_PARAM, /*Invalid parameter among arguments*/
|
LV_FS_RES_INV_PARAM, /*Invalid parameter among arguments*/
|
||||||
LV_FS_RES_UNKNOWN, /*Other unknown error*/
|
LV_FS_RES_UNKNOWN, /*Other unknown error*/
|
||||||
}lv_fs_res_t;
|
} lv_fs_res_t;
|
||||||
|
|
||||||
struct __lv_fs_drv_t;
|
struct __lv_fs_drv_t;
|
||||||
|
|
||||||
@@ -53,20 +53,20 @@ typedef struct
|
|||||||
{
|
{
|
||||||
void * file_d;
|
void * file_d;
|
||||||
struct __lv_fs_drv_t* drv;
|
struct __lv_fs_drv_t* drv;
|
||||||
}lv_fs_file_t;
|
} lv_fs_file_t;
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
void * dir_d;
|
void * dir_d;
|
||||||
struct __lv_fs_drv_t * drv;
|
struct __lv_fs_drv_t * drv;
|
||||||
}lv_fs_dir_t;
|
} lv_fs_dir_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
LV_FS_MODE_WR = 0x01,
|
LV_FS_MODE_WR = 0x01,
|
||||||
LV_FS_MODE_RD = 0x02,
|
LV_FS_MODE_RD = 0x02,
|
||||||
}lv_fs_mode_t;
|
} lv_fs_mode_t;
|
||||||
|
|
||||||
typedef struct __lv_fs_drv_t
|
typedef struct __lv_fs_drv_t
|
||||||
{
|
{
|
||||||
@@ -89,7 +89,7 @@ typedef struct __lv_fs_drv_t
|
|||||||
lv_fs_res_t (*dir_open) (void * rddir_p, const char * path);
|
lv_fs_res_t (*dir_open) (void * rddir_p, const char * path);
|
||||||
lv_fs_res_t (*dir_read) (void * rddir_p, char * fn);
|
lv_fs_res_t (*dir_read) (void * rddir_p, char * fn);
|
||||||
lv_fs_res_t (*dir_close) (void * rddir_p);
|
lv_fs_res_t (*dir_close) (void * rddir_p);
|
||||||
}lv_fs_drv_t;
|
} lv_fs_drv_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ typedef struct
|
|||||||
uint32_t n_size;
|
uint32_t n_size;
|
||||||
lv_ll_node_t* head;
|
lv_ll_node_t* head;
|
||||||
lv_ll_node_t* tail;
|
lv_ll_node_t* tail;
|
||||||
}lv_ll_t;
|
} lv_ll_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ typedef struct
|
|||||||
uint32_t used_cnt;
|
uint32_t used_cnt;
|
||||||
uint8_t used_pct;
|
uint8_t used_pct;
|
||||||
uint8_t frag_pct;
|
uint8_t frag_pct;
|
||||||
}lv_mem_monitor_t;
|
} lv_mem_monitor_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
@@ -93,7 +93,9 @@ uint32_t lv_mem_get_size(const void * data);
|
|||||||
*/
|
*/
|
||||||
static inline void lv_mem_assert(void *p)
|
static inline void lv_mem_assert(void *p)
|
||||||
{
|
{
|
||||||
if(p == NULL) {while(1);}
|
if(p == NULL) {
|
||||||
|
while(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ typedef enum
|
|||||||
LV_TASK_PRIO_HIGH,
|
LV_TASK_PRIO_HIGH,
|
||||||
LV_TASK_PRIO_HIGHEST,
|
LV_TASK_PRIO_HIGHEST,
|
||||||
LV_TASK_PRIO_NUM,
|
LV_TASK_PRIO_NUM,
|
||||||
}lv_task_prio_t;
|
} lv_task_prio_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Descriptor of a lv_task
|
* Descriptor of a lv_task
|
||||||
@@ -53,7 +53,7 @@ typedef struct
|
|||||||
void * param;
|
void * param;
|
||||||
uint8_t prio:3;
|
uint8_t prio:3;
|
||||||
uint8_t once:1;
|
uint8_t once:1;
|
||||||
}lv_task_t;
|
} lv_task_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -33,14 +33,14 @@ typedef enum
|
|||||||
LV_TXT_FLAG_EXPAND = 0x02, /*Ignore width (Used by the library)*/
|
LV_TXT_FLAG_EXPAND = 0x02, /*Ignore width (Used by the library)*/
|
||||||
LV_TXT_FLAG_NO_BREAK = 0x04, /*Ignore line breaks (Used by the library)*/
|
LV_TXT_FLAG_NO_BREAK = 0x04, /*Ignore line breaks (Used by the library)*/
|
||||||
LV_TXT_FLAG_CENTER = 0x08, /*Align the text to the middle*/
|
LV_TXT_FLAG_CENTER = 0x08, /*Align the text to the middle*/
|
||||||
}lv_txt_flag_t;
|
} lv_txt_flag_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
LV_TXT_CMD_STATE_WAIT, /*Waiting for command*/
|
LV_TXT_CMD_STATE_WAIT, /*Waiting for command*/
|
||||||
LV_TXT_CMD_STATE_PAR, /*Processing the parameter*/
|
LV_TXT_CMD_STATE_PAR, /*Processing the parameter*/
|
||||||
LV_TXT_CMD_STATE_IN, /*Processing the command*/
|
LV_TXT_CMD_STATE_IN, /*Processing the command*/
|
||||||
}lv_txt_cmd_state_t;
|
} lv_txt_cmd_state_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ typedef struct
|
|||||||
uint32_t size; /*Data length in bytes*/
|
uint32_t size; /*Data length in bytes*/
|
||||||
uint16_t oc; /*Open Count*/
|
uint16_t oc; /*Open Count*/
|
||||||
uint8_t const_data :1;
|
uint8_t const_data :1;
|
||||||
}lv_ufs_ent_t;
|
} lv_ufs_ent_t;
|
||||||
|
|
||||||
/*File descriptor, used to handle opening an entry more times simultaneously
|
/*File descriptor, used to handle opening an entry more times simultaneously
|
||||||
Contains unique informations about the specific opening*/
|
Contains unique informations about the specific opening*/
|
||||||
@@ -49,14 +49,14 @@ typedef struct
|
|||||||
uint32_t rwp; /*Read Write Pointer*/
|
uint32_t rwp; /*Read Write Pointer*/
|
||||||
uint8_t ar :1; /*1: Access for read is enabled */
|
uint8_t ar :1; /*1: Access for read is enabled */
|
||||||
uint8_t aw :1; /*1: Access for write is enabled */
|
uint8_t aw :1; /*1: Access for write is enabled */
|
||||||
}lv_ufs_file_t;
|
} lv_ufs_file_t;
|
||||||
|
|
||||||
/* Read directory descriptor.
|
/* Read directory descriptor.
|
||||||
* It is used to to iterate through the entries in a directory*/
|
* It is used to to iterate through the entries in a directory*/
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
lv_ufs_ent_t * last_ent;
|
lv_ufs_ent_t * last_ent;
|
||||||
}lv_ufs_dir_t;
|
} lv_ufs_dir_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -38,12 +38,12 @@ typedef struct
|
|||||||
int16_t min_value; /*Minimum value of the bar*/
|
int16_t min_value; /*Minimum value of the bar*/
|
||||||
int16_t max_value; /*Maximum value of the bar*/
|
int16_t max_value; /*Maximum value of the bar*/
|
||||||
lv_style_t *style_indic; /*Style of the indicator*/
|
lv_style_t *style_indic; /*Style of the indicator*/
|
||||||
}lv_bar_ext_t;
|
} lv_bar_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_BAR_STYLE_BG,
|
LV_BAR_STYLE_BG,
|
||||||
LV_BAR_STYLE_INDIC,
|
LV_BAR_STYLE_INDIC,
|
||||||
}lv_bar_style_t;
|
} lv_bar_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ typedef enum
|
|||||||
LV_BTN_STATE_TGL_PR,
|
LV_BTN_STATE_TGL_PR,
|
||||||
LV_BTN_STATE_INA,
|
LV_BTN_STATE_INA,
|
||||||
LV_BTN_STATE_NUM,
|
LV_BTN_STATE_NUM,
|
||||||
}lv_btn_state_t;
|
} lv_btn_state_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
@@ -50,7 +50,7 @@ typedef enum
|
|||||||
LV_BTN_ACTION_LONG_PR,
|
LV_BTN_ACTION_LONG_PR,
|
||||||
LV_BTN_ACTION_LONG_PR_REPEAT,
|
LV_BTN_ACTION_LONG_PR_REPEAT,
|
||||||
LV_BTN_ACTION_NUM,
|
LV_BTN_ACTION_NUM,
|
||||||
}lv_btn_action_t;
|
} lv_btn_action_t;
|
||||||
|
|
||||||
/*Data of button*/
|
/*Data of button*/
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -63,7 +63,7 @@ typedef struct
|
|||||||
lv_btn_state_t state; /*Current state of the button from 'lv_btn_state_t' enum*/
|
lv_btn_state_t state; /*Current state of the button from 'lv_btn_state_t' enum*/
|
||||||
uint8_t toggle :1; /*1: Toggle enabled*/
|
uint8_t toggle :1; /*1: Toggle enabled*/
|
||||||
uint8_t long_pr_action_executed :1; /*1: Long press action executed (Handled by the library)*/
|
uint8_t long_pr_action_executed :1; /*1: Long press action executed (Handled by the library)*/
|
||||||
}lv_btn_ext_t;
|
} lv_btn_ext_t;
|
||||||
|
|
||||||
/*Styles*/
|
/*Styles*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@@ -72,7 +72,7 @@ typedef enum {
|
|||||||
LV_BTN_STYLE_TGL_REL,
|
LV_BTN_STYLE_TGL_REL,
|
||||||
LV_BTN_STYLE_TGL_PR,
|
LV_BTN_STYLE_TGL_PR,
|
||||||
LV_BTN_STYLE_INA,
|
LV_BTN_STYLE_INA,
|
||||||
}lv_btn_style_t;
|
} lv_btn_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ typedef struct
|
|||||||
uint16_t btn_id_pr; /*Index of the currently pressed button (in `button_areas`) or LV_BTNM_PR_NONE*/
|
uint16_t btn_id_pr; /*Index of the currently pressed button (in `button_areas`) or LV_BTNM_PR_NONE*/
|
||||||
uint16_t btn_id_tgl; /*Index of the currently toggled button (in `button_areas`) or LV_BTNM_PR_NONE */
|
uint16_t btn_id_tgl; /*Index of the currently toggled button (in `button_areas`) or LV_BTNM_PR_NONE */
|
||||||
uint8_t toggle :1; /*Enable toggling*/
|
uint8_t toggle :1; /*Enable toggling*/
|
||||||
}lv_btnm_ext_t;
|
} lv_btnm_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_BTNM_STYLE_BG,
|
LV_BTNM_STYLE_BG,
|
||||||
@@ -64,7 +64,7 @@ typedef enum {
|
|||||||
LV_BTNM_STYLE_BTN_TGL_REL,
|
LV_BTNM_STYLE_BTN_TGL_REL,
|
||||||
LV_BTNM_STYLE_BTN_TGL_PR,
|
LV_BTNM_STYLE_BTN_TGL_PR,
|
||||||
LV_BTNM_STYLE_BTN_INA,
|
LV_BTNM_STYLE_BTN_INA,
|
||||||
}lv_btnm_style_t;
|
} lv_btnm_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ typedef struct
|
|||||||
/*New data for this type */
|
/*New data for this type */
|
||||||
lv_obj_t * bullet; /*Pointer to button*/
|
lv_obj_t * bullet; /*Pointer to button*/
|
||||||
lv_obj_t * label; /*Pointer to label*/
|
lv_obj_t * label; /*Pointer to label*/
|
||||||
}lv_cb_ext_t;
|
} lv_cb_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_CB_STYLE_BG,
|
LV_CB_STYLE_BG,
|
||||||
@@ -53,7 +53,7 @@ typedef enum {
|
|||||||
LV_CB_STYLE_BOX_TGL_REL,
|
LV_CB_STYLE_BOX_TGL_REL,
|
||||||
LV_CB_STYLE_BOX_TGL_PR,
|
LV_CB_STYLE_BOX_TGL_PR,
|
||||||
LV_CB_STYLE_BOX_INA,
|
LV_CB_STYLE_BOX_INA,
|
||||||
}lv_cb_style_t;
|
} lv_cb_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
lv_coord_t * points;
|
lv_coord_t * points;
|
||||||
lv_color_t color;
|
lv_color_t color;
|
||||||
}lv_chart_series_t;
|
} lv_chart_series_t;
|
||||||
|
|
||||||
/*Data of chart */
|
/*Data of chart */
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -49,8 +49,8 @@ typedef struct
|
|||||||
uint8_t num; /*Number of data lines in dl_ll*/
|
uint8_t num; /*Number of data lines in dl_ll*/
|
||||||
lv_opa_t opa; /*Opacity of data lines*/
|
lv_opa_t opa; /*Opacity of data lines*/
|
||||||
lv_opa_t dark; /*Dark level of the point/column bottoms*/
|
lv_opa_t dark; /*Dark level of the point/column bottoms*/
|
||||||
}series;
|
} series;
|
||||||
}lv_chart_ext_t;
|
} lv_chart_ext_t;
|
||||||
|
|
||||||
/*Chart types*/
|
/*Chart types*/
|
||||||
typedef enum
|
typedef enum
|
||||||
@@ -58,7 +58,7 @@ typedef enum
|
|||||||
LV_CHART_TYPE_LINE = 0x01,
|
LV_CHART_TYPE_LINE = 0x01,
|
||||||
LV_CHART_TYPE_COLUMN = 0x02,
|
LV_CHART_TYPE_COLUMN = 0x02,
|
||||||
LV_CHART_TYPE_POINT = 0x04,
|
LV_CHART_TYPE_POINT = 0x04,
|
||||||
}lv_chart_type_t;
|
} lv_chart_type_t;
|
||||||
|
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ typedef enum
|
|||||||
LV_LAYOUT_ROW_B, /*Row bottom align*/
|
LV_LAYOUT_ROW_B, /*Row bottom align*/
|
||||||
LV_LAYOUT_PRETTY, /*Put as many object as possible in row and begin a new row*/
|
LV_LAYOUT_PRETTY, /*Put as many object as possible in row and begin a new row*/
|
||||||
LV_LAYOUT_GRID, /*Align same-sized object into a grid*/
|
LV_LAYOUT_GRID, /*Align same-sized object into a grid*/
|
||||||
}lv_layout_t;
|
} lv_layout_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@@ -48,7 +48,7 @@ typedef struct
|
|||||||
uint8_t layout :4; /*A layout from 'lv_cont_layout_t' enum*/
|
uint8_t layout :4; /*A layout from 'lv_cont_layout_t' enum*/
|
||||||
uint8_t hor_fit :1; /*1: Enable horizontal fit to involve all children*/
|
uint8_t hor_fit :1; /*1: Enable horizontal fit to involve all children*/
|
||||||
uint8_t ver_fit :1; /*1: Enable horizontal fir to involve all children*/
|
uint8_t ver_fit :1; /*1: Enable horizontal fir to involve all children*/
|
||||||
}lv_cont_ext_t;
|
} lv_cont_ext_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -50,13 +50,13 @@ typedef struct
|
|||||||
uint16_t anim_time; /*Open/Close animation time [ms]*/
|
uint16_t anim_time; /*Open/Close animation time [ms]*/
|
||||||
uint8_t opened :1; /*1: The list is opened*/
|
uint8_t opened :1; /*1: The list is opened*/
|
||||||
lv_coord_t fix_height; /*Height if the ddlist is opened. (0: auto-size)*/
|
lv_coord_t fix_height; /*Height if the ddlist is opened. (0: auto-size)*/
|
||||||
}lv_ddlist_ext_t;
|
} lv_ddlist_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_DDLIST_STYLE_BG,
|
LV_DDLIST_STYLE_BG,
|
||||||
LV_DDLIST_STYLE_SEL,
|
LV_DDLIST_STYLE_SEL,
|
||||||
LV_DDLIST_STYLE_SB,
|
LV_DDLIST_STYLE_SB,
|
||||||
}lv_ddlist_style_t;
|
} lv_ddlist_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ typedef struct
|
|||||||
const lv_color_t * needle_colors; /*Color of the needles (lv_color_t my_colors[needle_num])*/
|
const lv_color_t * needle_colors; /*Color of the needles (lv_color_t my_colors[needle_num])*/
|
||||||
uint8_t needle_count; /*Number of needles*/
|
uint8_t needle_count; /*Number of needles*/
|
||||||
uint8_t label_count; /*Number of labels on the scale*/
|
uint8_t label_count; /*Number of labels on the scale*/
|
||||||
}lv_gauge_ext_t;
|
} lv_gauge_ext_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ typedef struct
|
|||||||
uint8_t auto_size :1; /*1: automatically set the object size to the image size*/
|
uint8_t auto_size :1; /*1: automatically set the object size to the image size*/
|
||||||
uint8_t chroma_keyed :1; /*1: Chroma keyed image, LV_COLOR_TRANSP (lv_conf.h) pixels will be transparent (Handled by the library)*/
|
uint8_t chroma_keyed :1; /*1: Chroma keyed image, LV_COLOR_TRANSP (lv_conf.h) pixels will be transparent (Handled by the library)*/
|
||||||
uint8_t alpha_byte :1; /*1: Extra byte for every pixel to define opacity*/
|
uint8_t alpha_byte :1; /*1: Extra byte for every pixel to define opacity*/
|
||||||
}lv_img_ext_t;
|
} lv_img_ext_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ extern "C" {
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
LV_KB_MODE_TEXT,
|
LV_KB_MODE_TEXT,
|
||||||
LV_KB_MODE_NUM,
|
LV_KB_MODE_NUM,
|
||||||
}lv_kb_mode_t;
|
} lv_kb_mode_t;
|
||||||
|
|
||||||
|
|
||||||
/*Data of keyboard*/
|
/*Data of keyboard*/
|
||||||
@@ -51,7 +51,7 @@ typedef struct {
|
|||||||
uint8_t cursor_mng :1; /*1: automatically show/hide cursor when a text area is assigned or left*/
|
uint8_t cursor_mng :1; /*1: automatically show/hide cursor when a text area is assigned or left*/
|
||||||
lv_action_t ok_action; /*Called when the "Ok" button is clicked*/
|
lv_action_t ok_action; /*Called when the "Ok" button is clicked*/
|
||||||
lv_action_t hide_action; /*Called when the "Hide" button is clicked*/
|
lv_action_t hide_action; /*Called when the "Hide" button is clicked*/
|
||||||
}lv_kb_ext_t;
|
} lv_kb_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_KB_STYLE_BG,
|
LV_KB_STYLE_BG,
|
||||||
@@ -60,7 +60,7 @@ typedef enum {
|
|||||||
LV_KB_STYLE_BTN_TGL_REL,
|
LV_KB_STYLE_BTN_TGL_REL,
|
||||||
LV_KB_STYLE_BTN_TGL_PR,
|
LV_KB_STYLE_BTN_TGL_PR,
|
||||||
LV_KB_STYLE_BTN_INA,
|
LV_KB_STYLE_BTN_INA,
|
||||||
}lv_kb_style_t;
|
} lv_kb_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -39,13 +39,13 @@ typedef enum
|
|||||||
LV_LABEL_LONG_SCROLL, /*Expand the object size and scroll the text on the parent (move the label object)*/
|
LV_LABEL_LONG_SCROLL, /*Expand the object size and scroll the text on the parent (move the label object)*/
|
||||||
LV_LABEL_LONG_DOT, /*Keep the size and write dots at the end if the text is too long*/
|
LV_LABEL_LONG_DOT, /*Keep the size and write dots at the end if the text is too long*/
|
||||||
LV_LABEL_LONG_ROLL, /*Keep the size and roll the text infinitely*/
|
LV_LABEL_LONG_ROLL, /*Keep the size and roll the text infinitely*/
|
||||||
}lv_label_long_mode_t;
|
} lv_label_long_mode_t;
|
||||||
|
|
||||||
/*Label align policy*/
|
/*Label align policy*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_LABEL_ALIGN_LEFT,
|
LV_LABEL_ALIGN_LEFT,
|
||||||
LV_LABEL_ALIGN_CENTER,
|
LV_LABEL_ALIGN_CENTER,
|
||||||
}lv_label_align_t;
|
} lv_label_align_t;
|
||||||
|
|
||||||
/*Data of label*/
|
/*Data of label*/
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -68,7 +68,7 @@ typedef struct
|
|||||||
uint8_t expand :1; /*Ignore real width (used by the library with LV_LABEL_LONG_ROLL)*/
|
uint8_t expand :1; /*Ignore real width (used by the library with LV_LABEL_LONG_ROLL)*/
|
||||||
uint8_t no_break :1; /*Ignore new line characters*/
|
uint8_t no_break :1; /*Ignore new line characters*/
|
||||||
uint8_t body_draw :1; /*Draw background body*/
|
uint8_t body_draw :1; /*Draw background body*/
|
||||||
}lv_label_ext_t;
|
} lv_label_ext_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ typedef struct
|
|||||||
/*No inherited ext.*/
|
/*No inherited ext.*/
|
||||||
/*New data for this type */
|
/*New data for this type */
|
||||||
uint8_t bright; /*Current brightness of the LED (0..255)*/
|
uint8_t bright; /*Current brightness of the LED (0..255)*/
|
||||||
}lv_led_ext_t;
|
} lv_led_ext_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ typedef struct
|
|||||||
uint16_t point_num; /*Number of points in 'point_array' */
|
uint16_t point_num; /*Number of points in 'point_array' */
|
||||||
uint8_t auto_size :1; /*1: set obj. width to x max and obj. height to y max */
|
uint8_t auto_size :1; /*1: set obj. width to x max and obj. height to y max */
|
||||||
uint8_t y_inv :1; /*1: y == 0 will be on the bottom*/
|
uint8_t y_inv :1; /*1: y == 0 will be on the bottom*/
|
||||||
}lv_line_ext_t;
|
} lv_line_ext_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ typedef struct
|
|||||||
uint16_t anim_time; /*Scroll animation time*/
|
uint16_t anim_time; /*Scroll animation time*/
|
||||||
lv_style_t *styles_btn[LV_BTN_STATE_NUM]; /*Styles of the list element buttons*/
|
lv_style_t *styles_btn[LV_BTN_STATE_NUM]; /*Styles of the list element buttons*/
|
||||||
lv_style_t *style_img; /*Style of the list element images on buttons*/
|
lv_style_t *style_img; /*Style of the list element images on buttons*/
|
||||||
}lv_list_ext_t;
|
} lv_list_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_LIST_STYLE_BG,
|
LV_LIST_STYLE_BG,
|
||||||
@@ -62,7 +62,7 @@ typedef enum {
|
|||||||
LV_LIST_STYLE_BTN_TGL_REL,
|
LV_LIST_STYLE_BTN_TGL_REL,
|
||||||
LV_LIST_STYLE_BTN_TGL_PR,
|
LV_LIST_STYLE_BTN_TGL_PR,
|
||||||
LV_LIST_STYLE_BTN_INA,
|
LV_LIST_STYLE_BTN_INA,
|
||||||
}lv_list_style_t;
|
} lv_list_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ typedef struct
|
|||||||
int16_t cur_value;
|
int16_t cur_value;
|
||||||
int16_t min_value;
|
int16_t min_value;
|
||||||
int16_t max_value;
|
int16_t max_value;
|
||||||
}lv_lmeter_ext_t;
|
} lv_lmeter_ext_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ typedef struct
|
|||||||
lv_obj_t *text; /*Text of the message box*/
|
lv_obj_t *text; /*Text of the message box*/
|
||||||
lv_obj_t *btnm; /*Button matrix for the buttons*/
|
lv_obj_t *btnm; /*Button matrix for the buttons*/
|
||||||
uint16_t anim_time; /*Duration of close animation [ms] (0: no animation)*/
|
uint16_t anim_time; /*Duration of close animation [ms] (0: no animation)*/
|
||||||
}lv_mbox_ext_t;
|
} lv_mbox_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_MBOX_STYLE_BG,
|
LV_MBOX_STYLE_BG,
|
||||||
@@ -61,7 +61,7 @@ typedef enum {
|
|||||||
LV_MBOX_STYLE_BTN_TGL_REL,
|
LV_MBOX_STYLE_BTN_TGL_REL,
|
||||||
LV_MBOX_STYLE_BTN_TGL_PR,
|
LV_MBOX_STYLE_BTN_TGL_PR,
|
||||||
LV_MBOX_STYLE_BTN_INA,
|
LV_MBOX_STYLE_BTN_INA,
|
||||||
}lv_mbox_style_t;
|
} lv_mbox_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -37,14 +37,14 @@ extern "C" {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
lv_ANCESTOR_ext_t ANCESTOR; /*Ext. of ancestor*/
|
lv_ANCESTOR_ext_t ANCESTOR; /*Ext. of ancestor*/
|
||||||
/*New data for this type */
|
/*New data for this type */
|
||||||
}lv_templ_ext_t;
|
} lv_templ_ext_t;
|
||||||
|
|
||||||
|
|
||||||
/*Styles*/
|
/*Styles*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_TEMPL_STYLE_X,
|
LV_TEMPL_STYLE_X,
|
||||||
LV_TEMPL_STYLE_Y,
|
LV_TEMPL_STYLE_Y,
|
||||||
}lv_templ_style_t;
|
} lv_templ_style_t;
|
||||||
|
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ typedef enum
|
|||||||
LV_SB_MODE_ON, /*Always show scrollbars*/
|
LV_SB_MODE_ON, /*Always show scrollbars*/
|
||||||
LV_SB_MODE_DRAG, /*Show scrollbars when page is being dragged*/
|
LV_SB_MODE_DRAG, /*Show scrollbars when page is being dragged*/
|
||||||
LV_SB_MODE_AUTO, /*Show scrollbars when the scrollable container is large enough to be scrolled*/
|
LV_SB_MODE_AUTO, /*Show scrollbars when the scrollable container is large enough to be scrolled*/
|
||||||
}lv_sb_mode_t;
|
} lv_sb_mode_t;
|
||||||
|
|
||||||
/*Data of page*/
|
/*Data of page*/
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -56,14 +56,14 @@ typedef struct
|
|||||||
uint8_t hor_draw :1; /*1: horizontal scrollbar is visible now (Handled by the library)*/
|
uint8_t hor_draw :1; /*1: horizontal scrollbar is visible now (Handled by the library)*/
|
||||||
uint8_t ver_draw :1; /*1: vertical scrollbar is visible now (Handled by the library)*/
|
uint8_t ver_draw :1; /*1: vertical scrollbar is visible now (Handled by the library)*/
|
||||||
uint8_t mode :3; /*Scrollbar visibility from 'lv_page_sb_mode_t'*/
|
uint8_t mode :3; /*Scrollbar visibility from 'lv_page_sb_mode_t'*/
|
||||||
}sb;
|
} sb;
|
||||||
}lv_page_ext_t;
|
} lv_page_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_PAGE_STYLE_BG,
|
LV_PAGE_STYLE_BG,
|
||||||
LV_PAGE_STYLE_SCRL,
|
LV_PAGE_STYLE_SCRL,
|
||||||
LV_PAGE_STYLE_SB,
|
LV_PAGE_STYLE_SB,
|
||||||
}lv_page_style_t;
|
} lv_page_style_t;
|
||||||
|
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ extern "C" {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
lv_ddlist_ext_t ddlist; /*Ext. of ancestor*/
|
lv_ddlist_ext_t ddlist; /*Ext. of ancestor*/
|
||||||
/*New data for this type */
|
/*New data for this type */
|
||||||
}lv_roller_ext_t;
|
} lv_roller_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_ROLLER_STYLE_BG,
|
LV_ROLLER_STYLE_BG,
|
||||||
LV_ROLLER_STYLE_SEL,
|
LV_ROLLER_STYLE_SEL,
|
||||||
}lv_roller_style_t;
|
} lv_roller_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ typedef struct
|
|||||||
lv_style_t *style_knob; /*Style of the knob*/
|
lv_style_t *style_knob; /*Style of the knob*/
|
||||||
int16_t drag_value; /*Store a temporal value during press until release (Handled by the library)*/
|
int16_t drag_value; /*Store a temporal value during press until release (Handled by the library)*/
|
||||||
uint8_t knob_in :1; /*1: Draw the knob inside the bar*/
|
uint8_t knob_in :1; /*1: Draw the knob inside the bar*/
|
||||||
}lv_slider_ext_t;
|
} lv_slider_ext_t;
|
||||||
|
|
||||||
/*Built-in styles of slider*/
|
/*Built-in styles of slider*/
|
||||||
typedef enum
|
typedef enum
|
||||||
@@ -48,7 +48,7 @@ typedef enum
|
|||||||
LV_SLIDER_STYLE_BG,
|
LV_SLIDER_STYLE_BG,
|
||||||
LV_SLIDER_STYLE_INDIC,
|
LV_SLIDER_STYLE_INDIC,
|
||||||
LV_SLIDER_STYLE_KNOB,
|
LV_SLIDER_STYLE_KNOB,
|
||||||
}lv_slider_style_t;
|
} lv_slider_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -39,14 +39,14 @@ typedef struct
|
|||||||
lv_style_t *style_knob_off; /*Style of the knob when the switch is OFF*/
|
lv_style_t *style_knob_off; /*Style of the knob when the switch is OFF*/
|
||||||
lv_style_t *style_knob_on; /*Style of the knob when the switch is ON (NULL to use the same as OFF)*/
|
lv_style_t *style_knob_on; /*Style of the knob when the switch is ON (NULL to use the same as OFF)*/
|
||||||
uint8_t changed :1; /*Indicates the switch explicitly changed by drag*/
|
uint8_t changed :1; /*Indicates the switch explicitly changed by drag*/
|
||||||
}lv_sw_ext_t;
|
} lv_sw_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_SW_STYLE_BG,
|
LV_SW_STYLE_BG,
|
||||||
LV_SW_STYLE_INDIC,
|
LV_SW_STYLE_INDIC,
|
||||||
LV_SW_STYLE_KNOB_OFF,
|
LV_SW_STYLE_KNOB_OFF,
|
||||||
LV_SW_STYLE_KNOB_ON,
|
LV_SW_STYLE_KNOB_ON,
|
||||||
}lv_sw_style_t;
|
} lv_sw_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ typedef enum {
|
|||||||
LV_CURSOR_OUTLINE,
|
LV_CURSOR_OUTLINE,
|
||||||
LV_CURSOR_UNDERLINE,
|
LV_CURSOR_UNDERLINE,
|
||||||
LV_CURSOR_HIDDEN = 0x10, /*Or it to any value to hide the cursor temporally*/
|
LV_CURSOR_HIDDEN = 0x10, /*Or it to any value to hide the cursor temporally*/
|
||||||
}lv_cursor_type_t;
|
} lv_cursor_type_t;
|
||||||
|
|
||||||
/*Data of text area*/
|
/*Data of text area*/
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -62,14 +62,14 @@ typedef struct
|
|||||||
uint16_t pos; /*The current cursor position (0: before 1. letter; 1: before 2. letter etc.)*/
|
uint16_t pos; /*The current cursor position (0: before 1. letter; 1: before 2. letter etc.)*/
|
||||||
lv_cursor_type_t type; /*Shape of the cursor*/
|
lv_cursor_type_t type; /*Shape of the cursor*/
|
||||||
uint8_t state :1; /*Indicates that the cursor is visible now or not (Handled by the library)*/
|
uint8_t state :1; /*Indicates that the cursor is visible now or not (Handled by the library)*/
|
||||||
}cursor;
|
} cursor;
|
||||||
}lv_ta_ext_t;
|
} lv_ta_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_TA_STYLE_BG,
|
LV_TA_STYLE_BG,
|
||||||
LV_TA_STYLE_SB,
|
LV_TA_STYLE_SB,
|
||||||
LV_TA_STYLE_CURSOR,
|
LV_TA_STYLE_CURSOR,
|
||||||
}lv_ta_style_t;
|
} lv_ta_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ typedef struct
|
|||||||
uint8_t draging :1;
|
uint8_t draging :1;
|
||||||
uint8_t drag_hor :1;
|
uint8_t drag_hor :1;
|
||||||
lv_tabview_action_t tab_load_action;
|
lv_tabview_action_t tab_load_action;
|
||||||
}lv_tabview_ext_t;
|
} lv_tabview_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_TABVIEW_STYLE_BG,
|
LV_TABVIEW_STYLE_BG,
|
||||||
@@ -68,7 +68,7 @@ typedef enum {
|
|||||||
LV_TABVIEW_STYLE_BTN_PR,
|
LV_TABVIEW_STYLE_BTN_PR,
|
||||||
LV_TABVIEW_STYLE_BTN_TGL_REL,
|
LV_TABVIEW_STYLE_BTN_TGL_REL,
|
||||||
LV_TABVIEW_STYLE_BTN_TGL_PR,
|
LV_TABVIEW_STYLE_BTN_TGL_PR,
|
||||||
}lv_tabview_style_t;
|
} lv_tabview_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ typedef struct
|
|||||||
lv_style_t * style_btn_rel; /*Control button releases style*/
|
lv_style_t * style_btn_rel; /*Control button releases style*/
|
||||||
lv_style_t * style_btn_pr; /*Control button pressed style*/
|
lv_style_t * style_btn_pr; /*Control button pressed style*/
|
||||||
lv_coord_t btn_size; /*Size of the control buttons (square)*/
|
lv_coord_t btn_size; /*Size of the control buttons (square)*/
|
||||||
}lv_win_ext_t;
|
} lv_win_ext_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_WIN_STYLE_BG,
|
LV_WIN_STYLE_BG,
|
||||||
@@ -71,7 +71,7 @@ typedef enum {
|
|||||||
LV_WIN_STYLE_HEADER,
|
LV_WIN_STYLE_HEADER,
|
||||||
LV_WIN_STYLE_BTN_REL,
|
LV_WIN_STYLE_BTN_REL,
|
||||||
LV_WIN_STYLE_BTN_PR,
|
LV_WIN_STYLE_BTN_PR,
|
||||||
}lv_win_style_t;
|
} lv_win_style_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ typedef struct {
|
|||||||
lv_style_t *tgl_rel;
|
lv_style_t *tgl_rel;
|
||||||
lv_style_t *tgl_pr;
|
lv_style_t *tgl_pr;
|
||||||
lv_style_t *ina;
|
lv_style_t *ina;
|
||||||
}btn;
|
} btn;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_LABEL != 0
|
#if USE_LV_LABEL != 0
|
||||||
@@ -46,20 +46,20 @@ typedef struct {
|
|||||||
lv_style_t *prim;
|
lv_style_t *prim;
|
||||||
lv_style_t *sec;
|
lv_style_t *sec;
|
||||||
lv_style_t *hint;
|
lv_style_t *hint;
|
||||||
}label;
|
} label;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_IMG != 0
|
#if USE_LV_IMG != 0
|
||||||
struct {
|
struct {
|
||||||
lv_style_t *light;
|
lv_style_t *light;
|
||||||
lv_style_t *dark;
|
lv_style_t *dark;
|
||||||
}img;
|
} img;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_LINE != 0
|
#if USE_LV_LINE != 0
|
||||||
struct {
|
struct {
|
||||||
lv_style_t *decor;
|
lv_style_t *decor;
|
||||||
}line;
|
} line;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_LED != 0
|
#if USE_LV_LED != 0
|
||||||
@@ -70,7 +70,7 @@ typedef struct {
|
|||||||
struct {
|
struct {
|
||||||
lv_style_t *bg;
|
lv_style_t *bg;
|
||||||
lv_style_t *indic;
|
lv_style_t *indic;
|
||||||
}bar;
|
} bar;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_SLIDER != 0
|
#if USE_LV_SLIDER != 0
|
||||||
@@ -78,7 +78,7 @@ typedef struct {
|
|||||||
lv_style_t *bg;
|
lv_style_t *bg;
|
||||||
lv_style_t *indic;
|
lv_style_t *indic;
|
||||||
lv_style_t *knob;
|
lv_style_t *knob;
|
||||||
}slider;
|
} slider;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_LMETER != 0
|
#if USE_LV_LMETER != 0
|
||||||
@@ -95,7 +95,7 @@ typedef struct {
|
|||||||
lv_style_t *indic;
|
lv_style_t *indic;
|
||||||
lv_style_t *knob_off;
|
lv_style_t *knob_off;
|
||||||
lv_style_t *knob_on;
|
lv_style_t *knob_on;
|
||||||
}sw;
|
} sw;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_CHART != 0
|
#if USE_LV_CHART != 0
|
||||||
@@ -111,8 +111,8 @@ typedef struct {
|
|||||||
lv_style_t *tgl_rel;
|
lv_style_t *tgl_rel;
|
||||||
lv_style_t *tgl_pr;
|
lv_style_t *tgl_pr;
|
||||||
lv_style_t *ina;
|
lv_style_t *ina;
|
||||||
}box;
|
} box;
|
||||||
}cb;
|
} cb;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_BTNM != 0
|
#if USE_LV_BTNM != 0
|
||||||
@@ -124,8 +124,8 @@ typedef struct {
|
|||||||
lv_style_t *tgl_rel;
|
lv_style_t *tgl_rel;
|
||||||
lv_style_t *tgl_pr;
|
lv_style_t *tgl_pr;
|
||||||
lv_style_t *ina;
|
lv_style_t *ina;
|
||||||
}btn;
|
} btn;
|
||||||
}btnm;
|
} btnm;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_KB != 0
|
#if USE_LV_KB != 0
|
||||||
@@ -138,7 +138,7 @@ typedef struct {
|
|||||||
lv_style_t *tgl_pr;
|
lv_style_t *tgl_pr;
|
||||||
lv_style_t *ina;
|
lv_style_t *ina;
|
||||||
} btn;
|
} btn;
|
||||||
}kb;
|
} kb;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_MBOX != 0
|
#if USE_LV_MBOX != 0
|
||||||
@@ -148,8 +148,8 @@ typedef struct {
|
|||||||
lv_style_t *bg;
|
lv_style_t *bg;
|
||||||
lv_style_t *rel;
|
lv_style_t *rel;
|
||||||
lv_style_t *pr;
|
lv_style_t *pr;
|
||||||
}btn;
|
} btn;
|
||||||
}mbox;
|
} mbox;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_PAGE != 0
|
#if USE_LV_PAGE != 0
|
||||||
@@ -157,7 +157,7 @@ typedef struct {
|
|||||||
lv_style_t *bg;
|
lv_style_t *bg;
|
||||||
lv_style_t *scrl;
|
lv_style_t *scrl;
|
||||||
lv_style_t *sb;
|
lv_style_t *sb;
|
||||||
}page;
|
} page;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_TA != 0
|
#if USE_LV_TA != 0
|
||||||
@@ -166,7 +166,7 @@ typedef struct {
|
|||||||
lv_style_t *oneline;
|
lv_style_t *oneline;
|
||||||
lv_style_t *cursor;
|
lv_style_t *cursor;
|
||||||
lv_style_t *sb;
|
lv_style_t *sb;
|
||||||
}ta;
|
} ta;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_LIST
|
#if USE_LV_LIST
|
||||||
@@ -180,8 +180,8 @@ typedef struct {
|
|||||||
lv_style_t *tgl_rel;
|
lv_style_t *tgl_rel;
|
||||||
lv_style_t *tgl_pr;
|
lv_style_t *tgl_pr;
|
||||||
lv_style_t *ina;
|
lv_style_t *ina;
|
||||||
}btn;
|
} btn;
|
||||||
}list;
|
} list;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_DDLIST != 0
|
#if USE_LV_DDLIST != 0
|
||||||
@@ -189,14 +189,14 @@ typedef struct {
|
|||||||
lv_style_t *bg;
|
lv_style_t *bg;
|
||||||
lv_style_t *sel;
|
lv_style_t *sel;
|
||||||
lv_style_t *sb;
|
lv_style_t *sb;
|
||||||
}ddlist;
|
} ddlist;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_ROLLER != 0
|
#if USE_LV_ROLLER != 0
|
||||||
struct {
|
struct {
|
||||||
lv_style_t *bg;
|
lv_style_t *bg;
|
||||||
lv_style_t *sel;
|
lv_style_t *sel;
|
||||||
}roller;
|
} roller;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_TABVIEW != 0
|
#if USE_LV_TABVIEW != 0
|
||||||
@@ -209,8 +209,8 @@ typedef struct {
|
|||||||
lv_style_t *pr;
|
lv_style_t *pr;
|
||||||
lv_style_t *tgl_rel;
|
lv_style_t *tgl_rel;
|
||||||
lv_style_t *tgl_pr;
|
lv_style_t *tgl_pr;
|
||||||
}btn;
|
} btn;
|
||||||
}tabview;
|
} tabview;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_WIN != 0
|
#if USE_LV_WIN != 0
|
||||||
@@ -221,14 +221,14 @@ typedef struct {
|
|||||||
struct {
|
struct {
|
||||||
lv_style_t *bg;
|
lv_style_t *bg;
|
||||||
lv_style_t *scrl;
|
lv_style_t *scrl;
|
||||||
}content;
|
} content;
|
||||||
struct {
|
struct {
|
||||||
lv_style_t *rel;
|
lv_style_t *rel;
|
||||||
lv_style_t *pr;
|
lv_style_t *pr;
|
||||||
}btn;
|
} btn;
|
||||||
}win;
|
} win;
|
||||||
#endif
|
#endif
|
||||||
}lv_theme_t;
|
} lv_theme_t;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|||||||
Reference in New Issue
Block a user