gui_guider.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright 2025 NXP
  3. * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
  4. * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
  5. * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
  6. * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
  7. * terms, then you may not retain, install, activate or otherwise use the software.
  8. */
  9. #ifndef GUI_GUIDER_H
  10. #define GUI_GUIDER_H
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include "lvgl.h"
  15. typedef struct
  16. {
  17. lv_obj_t *screen;
  18. bool screen_del;
  19. lv_obj_t *screen_arc_1;
  20. lv_obj_t *screen_imgbtn_1;
  21. lv_obj_t *screen_imgbtn_1_label;
  22. lv_obj_t *screen_label_1;
  23. lv_obj_t *screen_label_2;
  24. lv_obj_t *screen_label_3;
  25. lv_obj_t *screen_label_4;
  26. lv_obj_t *screen_label_5;
  27. lv_obj_t *screen_label_6;
  28. lv_obj_t *screen_cont_1;
  29. lv_obj_t *screen_imgbtn_5;
  30. lv_obj_t *screen_imgbtn_5_label;
  31. lv_obj_t *screen_label_7;
  32. lv_obj_t *screen_label_8;
  33. lv_obj_t *screen_cont_2;
  34. lv_obj_t *screen_imgbtn_2;
  35. lv_obj_t *screen_imgbtn_2_label;
  36. lv_obj_t *screen_imgbtn_3;
  37. lv_obj_t *screen_imgbtn_3_label;
  38. lv_obj_t *screen_imgbtn_4;
  39. lv_obj_t *screen_imgbtn_4_label;
  40. }lv_ui;
  41. typedef void (*ui_setup_scr_t)(lv_ui * ui);
  42. void ui_init_style(lv_style_t * style);
  43. void ui_load_scr_animation(lv_ui *ui, lv_obj_t ** new_scr, bool new_scr_del, bool * old_scr_del, ui_setup_scr_t setup_scr,
  44. lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay, bool is_clean, bool auto_del);
  45. void ui_animation(void * var, uint32_t duration, int32_t delay, int32_t start_value, int32_t end_value, lv_anim_path_cb_t path_cb,
  46. uint32_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay,
  47. lv_anim_exec_xcb_t exec_cb, lv_anim_start_cb_t start_cb, lv_anim_completed_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
  48. void init_scr_del_flag(lv_ui *ui);
  49. void setup_bottom_layer(void);
  50. void setup_ui(lv_ui *ui);
  51. void video_play(lv_ui *ui);
  52. void init_keyboard(lv_ui *ui);
  53. extern lv_ui guider_ui;
  54. void setup_scr_screen(lv_ui *ui);
  55. LV_IMAGE_DECLARE(_main_bg_RGB565A8_480x480);
  56. LV_IMAGE_DECLARE(_swtich_RGB565A8_84x84);
  57. LV_IMAGE_DECLARE(_icon_low_fan_sel_RGB565A8_31x31);
  58. LV_IMAGE_DECLARE(_icon_low_fan_RGB565A8_31x31);
  59. LV_IMAGE_DECLARE(_icon_mid_fan_RGB565A8_31x31);
  60. LV_IMAGE_DECLARE(_icon_mid_fan_sel_RGB565A8_31x31);
  61. LV_IMAGE_DECLARE(_icon_high_fan_RGB565A8_31x31);
  62. LV_IMAGE_DECLARE(_icon_high_fan_sel_RGB565A8_31x31);
  63. LV_FONT_DECLARE(lv_font_montserratMedium_12)
  64. LV_FONT_DECLARE(lv_font_iconfont_25)
  65. LV_FONT_DECLARE(lv_font_montserratMedium_16)
  66. LV_FONT_DECLARE(lv_font_PuHui_ExtraBold_60)
  67. LV_FONT_DECLARE(lv_font_montserratMedium_25)
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif