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

fix export missing constants and defines to make them available in Micropython binding.

This commit is contained in:
Gabor Kiss-Vamosi 2021-05-13 16:04:32 +02:00
parent 1ed42a937f
commit e29c96e975
4 changed files with 24 additions and 0 deletions

View File

@ -25,8 +25,12 @@ extern "C" {
* @return a special track size
*/
#define LV_GRID_FR(x) (LV_COORD_MAX - 100 + x)
#define LV_GRID_CONTENT (LV_COORD_MAX - 101)
LV_EXPORT_CONST_INT(LV_GRID_CONTENT);
#define LV_GRID_TEMPLATE_LAST (LV_COORD_MAX)
LV_EXPORT_CONST_INT(LV_GRID_TEMPLATE_LAST);
/**********************
* TYPEDEFS

View File

@ -118,6 +118,15 @@ static inline lv_coord_t lv_font_get_line_height(const lv_font_t * font_p)
return font_p->line_height;
}
/**
* Just a wrapper around LV_FONT_DEFAULT because it might be more convenient to use a function is some cases
* @return pointer to LV_FONT_DEFAULT
*/
static inline const lv_font_t * lv_font_default(void)
{
return LV_FONT_DEFAULT;
}
/**********************
* MACROS
**********************/

View File

@ -34,6 +34,7 @@ typedef enum {
}lv_anim_enable_t;
#define LV_ANIM_REPEAT_INFINITE 0xFFFF
LV_EXPORT_CONST_INT(LV_ANIM_REPEAT_INFINITE);
struct _lv_anim_t;
struct _lv_anim_path_t;

View File

@ -656,6 +656,15 @@ lv_color_hsv_t lv_color_rgb_to_hsv(uint8_t r8, uint8_t g8, uint8_t b8);
*/
lv_color_hsv_t lv_color_to_hsv(lv_color_t color);
/**
* Just a wrapper around LV_COLOR_CHROMA_KEY because it might be more convenient to use a function is some cases
* @return LV_COLOR_CHROMA_KEY
*/
static inline lv_color_t lv_color_chroma_key(void)
{
return LV_COLOR_CHROMA_KEY;
}
/**********************
* PREDEFINED COLORS
**********************/
@ -666,6 +675,7 @@ static inline lv_color_t lv_color_white(void) { return lv_color_make(0xff, 0xff,
static inline lv_color_t lv_color_black(void) { return lv_color_make(0x00, 0x0, 0x00);}
lv_color_t lv_palette_lighten(lv_palette_t p, uint8_t lvl);
lv_color_t lv_palette_darken(lv_palette_t p, uint8_t lvl);
/**********************
* MACROS
**********************/