mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
70 lines
1.5 KiB
C
70 lines
1.5 KiB
C
/**
|
|
* @file lv_demo_ebike_private.h
|
|
*
|
|
*/
|
|
|
|
#ifndef LV_DEMO_EBIKE_PRIVATE_H
|
|
#define LV_DEMO_EBIKE_PRIVATE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*********************
|
|
* INCLUDES
|
|
*********************/
|
|
#include "../../lvgl.h"
|
|
|
|
/*********************
|
|
* DEFINES
|
|
*********************/
|
|
#define EBIKE_COLOR_TURQUOISE lv_color_hex(0x55FFEB)
|
|
#define EBIKE_COLOR_LIME lv_color_hex(0x91FF3B)
|
|
|
|
#if LV_DEMO_EBIKE_PORTRAIT
|
|
LV_FONT_DECLARE(font_ebike_inter_20)
|
|
LV_FONT_DECLARE(font_ebike_trump_40)
|
|
LV_FONT_DECLARE(font_ebike_trump_72)
|
|
#define EBIKE_FONT_SMALL &font_ebike_inter_20
|
|
#define EBIKE_FONT_MEDIUM &font_ebike_trump_40
|
|
#define EBIKE_FONT_LARGE &font_ebike_trump_72
|
|
#else
|
|
LV_FONT_DECLARE(font_ebike_inter_14)
|
|
LV_FONT_DECLARE(font_ebike_trump_24)
|
|
LV_FONT_DECLARE(font_ebike_trump_48)
|
|
#define EBIKE_FONT_SMALL &font_ebike_inter_14
|
|
#define EBIKE_FONT_MEDIUM &font_ebike_trump_24
|
|
#define EBIKE_FONT_LARGE &font_ebike_trump_48
|
|
#endif
|
|
|
|
/**********************
|
|
* TYPEDEFS
|
|
**********************/
|
|
|
|
/**********************
|
|
* GLOBAL PROTOTYPES
|
|
**********************/
|
|
|
|
/**
|
|
* Get a draw bug where the Lottie animations can be drawn
|
|
* @return
|
|
*/
|
|
lv_draw_buf_t * lv_demo_ebike_get_lottie_draw_buf(void);
|
|
|
|
/**********************
|
|
* GLOBAL VARIABLES
|
|
**********************/
|
|
|
|
/** Stores the current language */
|
|
extern lv_subject_t ebike_subject_language;
|
|
|
|
/**********************
|
|
* MACROS
|
|
**********************/
|
|
|
|
#ifdef __cplusplus
|
|
} /*extern "C"*/
|
|
#endif
|
|
|
|
#endif /*LV_DEMO_EBIKE_PRIVATE_H*/
|