graphics/littlevgl: Fix nxstyle

Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
This commit is contained in:
Qi Huang 2020-04-15 10:08:03 +00:00 committed by Alan Carvalho de Assis
parent 4555e73b3e
commit a749b42164

View File

@ -44,7 +44,9 @@
#include <stdint.h> #include <stdint.h>
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */ /* Type of coordinates. Should be `int16_t`
* (or `int32_t` for extreme cases)
*/
typedef int16_t lv_coord_t; typedef int16_t lv_coord_t;
@ -94,7 +96,9 @@ typedef int16_t lv_coord_t;
/* Images pixels with this color will not be drawn (with chroma keying) */ /* Images pixels with this color will not be drawn (with chroma keying) */
#define LV_COLOR_TRANSP ((lv_color_t){.full = (CONFIG_LV_COLOR_TRANSP)}) /*LV_COLOR_LIME: pure green*/ /* LV_COLOR_LIME: pure green */
#define LV_COLOR_TRANSP ((lv_color_t){.full = (CONFIG_LV_COLOR_TRANSP)})
/* Enable chroma keying for indexed images. */ /* Enable chroma keying for indexed images. */
@ -129,7 +133,9 @@ typedef int16_t lv_coord_t;
* The graphical objects and other related data are stored here. * The graphical objects and other related data are stored here.
*/ */
/* 1: use custom malloc/free, 0: use the built-in `lv_mem_alloc` and `lv_mem_free` */ /* 1: use custom malloc/free, 0: use the built-in
* `lv_mem_alloc` and `lv_mem_free`
*/
#define LV_MEM_CUSTOM 0 #define LV_MEM_CUSTOM 0
#if LV_MEM_CUSTOM == 0 #if LV_MEM_CUSTOM == 0
@ -148,7 +154,9 @@ typedef int16_t lv_coord_t;
# define LV_MEM_ADR 0 # define LV_MEM_ADR 0
/* Automatically defrag. on free. Defrag. means joining the adjacent free cells. */ /* Automatically defrag. on free. Defrag. means
* joining the adjacent free cells.
*/
# define LV_MEM_AUTO_DEFRAG 1 # define LV_MEM_AUTO_DEFRAG 1
#else /* LV_MEM_CUSTOM */ #else /* LV_MEM_CUSTOM */
@ -215,7 +223,9 @@ typedef int16_t lv_coord_t;
#if LV_USE_ANIMATION #if LV_USE_ANIMATION
/* Declare the type of the user data of animations (can be e.g. `void *`, `int`, `struct`) */ /* Declare the type of the user data of animations
* (can be e.g. `void *`, `int`, `struct`)
*/
typedef void * lv_anim_user_data_t; typedef void * lv_anim_user_data_t;
@ -257,7 +267,9 @@ typedef void * lv_group_user_data_t;
#endif #endif
#if LV_USE_FILESYSTEM #if LV_USE_FILESYSTEM
/* Declare the type of the user data of file system drivers (can be e.g. `void *`, `int`, `struct`) */ /* Declare the type of the user data of file system drivers
* (can be e.g. `void *`, `int`, `struct`)
*/
typedef void * lv_fs_drv_user_data_t; typedef void * lv_fs_drv_user_data_t;
#endif #endif
@ -298,7 +310,9 @@ typedef void * lv_fs_drv_user_data_t;
#define LV_IMG_CACHE_DEF_SIZE 1 #define LV_IMG_CACHE_DEF_SIZE 1
/* Declare the type of the user data of image decoder (can be e.g. `void *`, `int`, `struct`) */ /* Declare the type of the user data of image decoder
* (can be e.g. `void *`, `int`, `struct`)
*/
typedef void * lv_img_decoder_user_data_t; typedef void * lv_img_decoder_user_data_t;
@ -612,7 +626,9 @@ typedef void * lv_indev_drv_user_data_t; /* Type of user data in the
#define LV_FONT_SUBPX_BGR 0 #define LV_FONT_SUBPX_BGR 0
/* Declare the type of the user data of fonts (can be e.g. `void *`, `int`, `struct`) */ /* Declare the type of the user data of fonts
* (can be e.g. `void *`, `int`, `struct`)
*/
typedef void * lv_font_user_data_t; typedef void * lv_font_user_data_t;
@ -687,7 +703,9 @@ typedef void * lv_font_user_data_t;
* LV_OBJ SETTINGS * LV_OBJ SETTINGS
****************************************************************************/ ****************************************************************************/
/* Declare the type of the user data of object (can be e.g. `void *`, `int`, `struct`) */ /* Declare the type of the user data of object
* (can be e.g. `void *`, `int`, `struct`)
*/
typedef void * lv_obj_user_data_t; typedef void * lv_obj_user_data_t;
@ -713,7 +731,9 @@ typedef void * lv_obj_user_data_t;
* LV OBJ X USAGE * LV OBJ X USAGE
****************************************************************************/ ****************************************************************************/
/* Documentation of the object types: https://docs.littlevgl.com/#Object-types */ /* Documentation of the object types:
* https://docs.littlevgl.com/#Object-types
*/
/* Arc (dependencies: -) */ /* Arc (dependencies: -) */
@ -741,7 +761,9 @@ typedef void * lv_obj_user_data_t;
#if LV_USE_BTN != 0 #if LV_USE_BTN != 0
/* Enable button-state animations - draw a circle on click (dependencies: LV_USE_ANIMATION) */ /* Enable button-state animations - draw a
* circle on click (dependencies: LV_USE_ANIMATION)
*/
#ifdef CONFIG_LV_BTN_INK_EFFECT #ifdef CONFIG_LV_BTN_INK_EFFECT
#define LV_BTN_INK_EFFECT CONFIG_LV_BTN_INK_EFFECT #define LV_BTN_INK_EFFECT CONFIG_LV_BTN_INK_EFFECT
@ -824,7 +846,9 @@ typedef void * lv_obj_user_data_t;
#define LV_USE_IMGBTN 1 #define LV_USE_IMGBTN 1
#if LV_USE_IMGBTN #if LV_USE_IMGBTN
/* 1: The imgbtn requires left, mid and right parts and the width can be set freely */ /* 1: The imgbtn requires left, mid and right
* parts and the width can be set freely
*/
# define LV_IMGBTN_TILED 0 # define LV_IMGBTN_TILED 0
#endif #endif
@ -837,7 +861,9 @@ typedef void * lv_obj_user_data_t;
#define LV_USE_LABEL 1 #define LV_USE_LABEL 1
#if LV_USE_LABEL != 0 #if LV_USE_LABEL != 0
/* Hor, or ver. scroll speed [px/sec] in 'LV_LABEL_LONG_ROLL/ROLL_CIRC' mode */ /* Hor, or ver. scroll speed [px/sec] in
* 'LV_LABEL_LONG_ROLL/ROLL_CIRC' mode
*/
# define LV_LABEL_DEF_SCROLL_SPEED 25 # define LV_LABEL_DEF_SCROLL_SPEED 25
@ -849,7 +875,9 @@ typedef void * lv_obj_user_data_t;
# define LV_LABEL_TEXT_SEL 0 # define LV_LABEL_TEXT_SEL 0
/* Store extra some info in labels (12 bytes) to speed up drawing of very long texts */ /* Store extra some info in labels (12 bytes)
* to speed up drawing of very long texts
*/
# define LV_LABEL_LONG_TXT_HINT 0 # define LV_LABEL_LONG_TXT_HINT 0
#endif #endif
@ -862,11 +890,15 @@ typedef void * lv_obj_user_data_t;
#define LV_USE_LINE 1 #define LV_USE_LINE 1
/* List (dependencies: lv_page, lv_btn, lv_label, (lv_img optionally for icons)) */ /* List (dependencies: lv_page, lv_btn, lv_label,
* (lv_img optionally for icons))
*/
#define LV_USE_LIST 1 #define LV_USE_LIST 1
#if LV_USE_LIST != 0 #if LV_USE_LIST != 0
/* Default animation time of focusing to a list element [ms] (0: no animation) */ /* Default animation time of focusing to a
* list element [ms] (0: no animation)
*/
# define LV_LIST_DEF_ANIM_TIME 100 # define LV_LIST_DEF_ANIM_TIME 100
#endif #endif