generic callbacks

This commit is contained in:
Amir Gonnen 2019-05-11 02:02:00 +03:00
parent 63af6474bf
commit 3fe8befa32
2 changed files with 31 additions and 13 deletions

@ -1 +1 @@
Subproject commit 18bc8968fa575208779a300575066a882c963389 Subproject commit 2a9d5c2368f96af925c966866f2cfb11f5dbd8bd

View File

@ -115,6 +115,9 @@
/*1: Enable the Animations */ /*1: Enable the Animations */
#define LV_USE_ANIMATION 1 #define LV_USE_ANIMATION 1
#if LV_USE_ANIMATION
typedef void * lv_anim_user_data_t;
#endif
/* 1: Enable shadow drawing*/ /* 1: Enable shadow drawing*/
#define LV_USE_SHADOW 1 #define LV_USE_SHADOW 1
@ -138,10 +141,10 @@ typedef void * lv_group_user_data_t;
#define LV_IMG_CF_ALPHA 1 #define LV_IMG_CF_ALPHA 1
/*1: Add a `user_data` to drivers and objects*/ /*1: Add a `user_data` to drivers and objects*/
#define LV_USE_USER_DATA_SINGLE 0 #define LV_USE_USER_DATA_SINGLE 1
/*1: Add separate `user_data` for every callback*/ /*1: Add separate `user_data` for every callback*/
#define LV_USE_USER_DATA_MULTI 1 #define LV_USE_USER_DATA_MULTI 0
/*===================== /*=====================
* Compiler settings * Compiler settings
@ -152,6 +155,12 @@ typedef void * lv_group_user_data_t;
/* Define a custom attribute to `lv_task_handler` function */ /* Define a custom attribute to `lv_task_handler` function */
#define LV_ATTRIBUTE_TASK_HANDLER #define LV_ATTRIBUTE_TASK_HANDLER
/* With size optimization (-Os) the compiler might not align data to
* 4 or 8 byte boundary. This alignment will be explicitly applied where needed.
* E.g. __attribute__((aligned(4))) */
#define LV_ATTRIBUTE_MEM_ALIGN
/* 1: Variable length array is supported*/ /* 1: Variable length array is supported*/
#define LV_COMPILER_VLA_SUPPORTED 1 #define LV_COMPILER_VLA_SUPPORTED 1
@ -170,8 +179,8 @@ typedef void * lv_group_user_data_t;
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current systime in ms*/ #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current systime in ms*/
#endif /*LV_TICK_CUSTOM*/ #endif /*LV_TICK_CUSTOM*/
typedef void * lv_disp_drv_user_data_t; /*Type of user data in the display driver*/ typedef void * lv_disp_drv_user_data_t; /*Type of user data in the display driver*/
typedef void * lv_indev_drv_user_data_t; /*Type of user data in the display driver*/ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the input device driver*/
/*================ /*================
* Log settings * Log settings
@ -199,13 +208,13 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in t
#define LV_THEME_LIVE_UPDATE 0 /*1: Allow theme switching at run time. Uses 8..10 kB of RAM*/ #define LV_THEME_LIVE_UPDATE 0 /*1: Allow theme switching at run time. Uses 8..10 kB of RAM*/
#define LV_USE_THEME_TEMPL 1 /*Just for test*/ #define LV_USE_THEME_TEMPL 1 /*Just for test*/
#define LV_USE_THEME_DEFAULT 1 /*Built mainly from the built-in styles. Consumes very few RAM*/ #define LV_USE_THEME_DEFAULT 1 /*Built mainly from the built-in styles. Consumes very few RAM*/
#define LV_USE_THEME_ALIEN 1 /*Dark futuristic theme*/ #define LV_USE_THEME_ALIEN 1 /*Dark futuristic theme*/
#define LV_USE_THEME_NIGHT 1 /*Dark elegant theme*/ #define LV_USE_THEME_NIGHT 1 /*Dark elegant theme*/
#define LV_USE_THEME_MONO 1 /*Mono color theme for monochrome displays*/ #define LV_USE_THEME_MONO 1 /*Mono color theme for monochrome displays*/
#define LV_USE_THEME_MATERIAL 1 /*Flat theme with bold colors and light shadows*/ #define LV_USE_THEME_MATERIAL 1 /*Flat theme with bold colors and light shadows*/
#define LV_USE_THEME_ZEN 1 /*Peaceful, mainly light theme */ #define LV_USE_THEME_ZEN 1 /*Peaceful, mainly light theme */
#define LV_USE_THEME_NEMO 1 /*Water-like theme based on the movie "Finding Nemo"*/ #define LV_USE_THEME_NEMO 1 /*Water-like theme based on the movie "Finding Nemo"*/
/*================== /*==================
* FONT USAGE * FONT USAGE
@ -270,7 +279,14 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in t
typedef void * lv_obj_user_data_t; typedef void * lv_obj_user_data_t;
/*1: enable `lv_obj_realaign()` based on `lv_obj_align()` parameters*/ /*1: enable `lv_obj_realaign()` based on `lv_obj_align()` parameters*/
#define LV_OBJ_REALIGN 1 #define LV_USE_OBJ_REALIGN 1
/* Enable to make the object clickable on a larger area.
* LV_EXT_CLICK_AREA_OFF or 0: Disable this feature
* LV_EXT_CLICK_AREA_TINY: The extra area can be adjusted horizontally and vertically (0..255 px)
* LV_EXT_CLICK_AREA_FULL: The extra area can be adjusted in all 4 directions (-32k..+32k px)
*/
#define LV_USE_EXT_CLICK_AREA LV_EXT_CLICK_AREA_OFF
/*================== /*==================
* LV OBJ X USAGE * LV OBJ X USAGE
@ -341,6 +357,8 @@ typedef void * lv_obj_user_data_t;
#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
# define LV_LABEL_WAIT_CHAR_COUNT 3 /* Waiting period at beginning/end of animation cycle */
# define LV_LABEL_TEXT_SEL 1 /*Enable selecting text of the label */
#endif #endif
/*LED (dependencies: -)*/ /*LED (dependencies: -)*/