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 */
#define LV_USE_ANIMATION 1
#if LV_USE_ANIMATION
typedef void * lv_anim_user_data_t;
#endif
/* 1: Enable shadow drawing*/
#define LV_USE_SHADOW 1
@ -138,10 +141,10 @@ typedef void * lv_group_user_data_t;
#define LV_IMG_CF_ALPHA 1
/*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*/
#define LV_USE_USER_DATA_MULTI 1
#define LV_USE_USER_DATA_MULTI 0
/*=====================
* Compiler settings
@ -152,6 +155,12 @@ typedef void * lv_group_user_data_t;
/* Define a custom attribute to `lv_task_handler` function */
#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*/
#define LV_COMPILER_VLA_SUPPORTED 1
@ -171,7 +180,7 @@ typedef void * lv_group_user_data_t;
#endif /*LV_TICK_CUSTOM*/
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
@ -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;
/*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
@ -341,6 +357,8 @@ typedef void * lv_obj_user_data_t;
#if LV_USE_LABEL != 0
/*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_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
/*LED (dependencies: -)*/