1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

chore: changes a couple of things to get the CPython binding working (#4348)

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
Kevin Schlosser 2023-07-09 15:29:05 -06:00 committed by GitHub
parent 36c5f19c95
commit 95b9fe327f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 25 deletions

View File

@ -227,10 +227,6 @@ const uint8_t * lv_font_get_bitmap_fmt_txt(const lv_font_t * font, uint32_t unic
bool lv_font_get_glyph_dsc_fmt_txt(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t unicode_letter,
uint32_t unicode_letter_next);
/**
* Free the allocated memories.
*/
void _lv_font_clean_up_fmt_txt(void);
/**********************
* MACROS

View File

@ -19,18 +19,7 @@
* TYPEDEFS
**********************/
/*Data of anim_timeline_dsc*/
typedef struct {
lv_anim_t anim;
uint32_t start_time;
} lv_anim_timeline_dsc_t;
/*Data of anim_timeline*/
struct _lv_anim_timeline_t {
lv_anim_timeline_dsc_t * anim_dsc; /**< Dynamically allocated anim dsc array*/
uint32_t anim_dsc_cnt; /**< The length of anim dsc array*/
bool reverse; /**< Reverse playback*/
};
/**********************
* STATIC PROTOTYPES

View File

@ -23,9 +23,18 @@ extern "C" {
* TYPEDEFS
**********************/
struct _lv_anim_timeline_t;
/*Data of anim_timeline_dsc*/
typedef struct {
lv_anim_t anim;
uint32_t start_time;
} lv_anim_timeline_dsc_t;
typedef struct _lv_anim_timeline_t lv_anim_timeline_t;
/*Data of anim_timeline*/
typedef struct {
lv_anim_timeline_dsc_t * anim_dsc; /**< Dynamically allocated anim dsc array*/
uint32_t anim_dsc_cnt; /**< The length of anim dsc array*/
bool reverse; /**< Reverse playback*/
} lv_anim_timeline_t;
/**********************
* GLOBAL PROTOTYPES

View File

@ -18,11 +18,6 @@
/**********************
* TYPEDEFS
**********************/
struct _lv_event_dsc_t {
lv_event_cb_t cb;
void * user_data;
uint32_t filter;
};
/**********************
* STATIC PROTOTYPES

View File

@ -25,9 +25,17 @@ extern "C" {
/**********************
* TYPEDEFS
**********************/
struct _lv_event_t;
typedef void (*lv_event_cb_t)(struct _lv_event_t * e);
typedef struct {
lv_event_cb_t cb;
void * user_data;
uint32_t filter;
} lv_event_dsc_t;
struct _lv_event_dsc_t;
typedef struct _lv_event_dsc_t lv_event_dsc_t;
/**
* Type of event being sent to the object.
@ -131,7 +139,6 @@ typedef struct _lv_event_t {
* Events are used to notify the user of some action being taken on the object.
* For details, see ::lv_event_t.
*/
typedef void (*lv_event_cb_t)(lv_event_t * e);
/**********************
* GLOBAL PROTOTYPES