gui_guider.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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_cont_power_on;
  20. lv_obj_t *screen_label_6;
  21. lv_obj_t *screen_arc_temp;
  22. lv_obj_t *screen_cont_1;
  23. lv_obj_t *screen_ib_cool;
  24. lv_obj_t *screen_ib_cool_label;
  25. lv_obj_t *screen_ib_heat;
  26. lv_obj_t *screen_ib_heat_label;
  27. lv_obj_t *screen_label_1;
  28. lv_obj_t *screen_label_2;
  29. lv_obj_t *screen_label_7;
  30. lv_obj_t *screen_label_8;
  31. lv_obj_t *screen_imgbtn_5;
  32. lv_obj_t *screen_imgbtn_5_label;
  33. lv_obj_t *screen_lab_mode;
  34. lv_obj_t *screen_lab_env_temp;
  35. lv_obj_t *screen_lab_env_hum;
  36. lv_obj_t *screen_lab_ac_temp;
  37. lv_obj_t *screen_ib_power;
  38. lv_obj_t *screen_ib_power_label;
  39. lv_obj_t *screen_cont_power_off;
  40. lv_obj_t *screen_lab_env_hum_2;
  41. lv_obj_t *screen_label_9;
  42. lv_obj_t *screen_label_10;
  43. lv_obj_t *screen_label_11;
  44. lv_obj_t *screen_imgbtn_1;
  45. lv_obj_t *screen_imgbtn_1_label;
  46. lv_obj_t *WaterValvePage;
  47. bool WaterValvePage_del;
  48. lv_obj_t *WaterValvePage_cont_1;
  49. lv_obj_t *WaterValvePage_imgbtn_1;
  50. lv_obj_t *WaterValvePage_imgbtn_1_label;
  51. lv_obj_t *WaterValvePage_spangroup_1;
  52. lv_span_t *WaterValvePage_spangroup_1_span;
  53. lv_obj_t *WaterValvePage_spangroup_2;
  54. lv_span_t *WaterValvePage_spangroup_2_span;
  55. lv_obj_t *WaterValvePage_sw_1;
  56. lv_obj_t *WaterValvePage_cont_2;
  57. lv_obj_t *WaterValvePage_cb_4;
  58. lv_obj_t *WaterValvePage_cb_3;
  59. lv_obj_t *WaterValvePage_cb_2;
  60. lv_obj_t *WaterValvePage_cb_1;
  61. lv_obj_t *SettingPage;
  62. bool SettingPage_del;
  63. lv_obj_t *SettingPage_tabview_1;
  64. lv_obj_t *SettingPage_tabview_1_tab_1;
  65. lv_obj_t *SettingPage_tabview_1_tab_2;
  66. lv_obj_t *SettingPage_tabview_1_tab_3;
  67. lv_obj_t *SettingPage_sp_wifi_scan;
  68. lv_obj_t *SettingPage_lab_wifi_status;
  69. lv_obj_t *SettingPage_label_1;
  70. lv_obj_t *SettingPage_p_wifi_connect;
  71. lv_obj_t *SettingPage_lab_wifi_ssid;
  72. lv_obj_t *SettingPage_label_3;
  73. lv_obj_t *SettingPage_btn_3;
  74. lv_obj_t *SettingPage_btn_3_label;
  75. lv_obj_t *SettingPage_btn_6;
  76. lv_obj_t *SettingPage_btn_6_label;
  77. lv_obj_t *SettingPage_label_2;
  78. lv_obj_t *SettingPage_txt_wifi_password;
  79. lv_obj_t *SettingPage_btn_1;
  80. lv_obj_t *SettingPage_btn_1_label;
  81. lv_obj_t *SettingPage_btn_5;
  82. lv_obj_t *SettingPage_btn_5_label;
  83. lv_obj_t *g_kb_top_layer;
  84. }lv_ui;
  85. typedef void (*ui_setup_scr_t)(lv_ui * ui);
  86. void ui_init_style(lv_style_t * style);
  87. 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,
  88. lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay, bool is_clean, bool auto_del);
  89. 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,
  90. uint32_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay,
  91. 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);
  92. void init_scr_del_flag(lv_ui *ui);
  93. void setup_bottom_layer(void);
  94. void setup_ui(lv_ui *ui);
  95. void video_play(lv_ui *ui);
  96. void init_keyboard(lv_ui *ui);
  97. extern lv_ui guider_ui;
  98. void setup_scr_screen(lv_ui *ui);
  99. void setup_scr_WaterValvePage(lv_ui *ui);
  100. void setup_scr_SettingPage(lv_ui *ui);
  101. LV_IMAGE_DECLARE(_main_bg_RGB565A8_480x480);
  102. LV_IMAGE_DECLARE(_ac_mode_cool_RGB565A8_55x55);
  103. LV_IMAGE_DECLARE(_ac_mode_cool_sel_RGB565A8_55x55);
  104. LV_IMAGE_DECLARE(_ac_mode_heat_RGB565A8_55x55);
  105. LV_IMAGE_DECLARE(_ac_mode_heat_sel_RGB565A8_55x55);
  106. LV_IMAGE_DECLARE(_dinuan3_RGB565A8_60x60);
  107. LV_IMAGE_DECLARE(_dinuan2_RGB565A8_60x60);
  108. LV_IMAGE_DECLARE(_swtich_RGB565A8_84x84);
  109. LV_IMAGE_DECLARE(_12_RGB565A8_480x480);
  110. LV_IMAGE_DECLARE(_back2_RGB565A8_45x45);
  111. LV_FONT_DECLARE(lv_font_montserratMedium_25)
  112. LV_FONT_DECLARE(lv_font_montserratMedium_16)
  113. LV_FONT_DECLARE(lv_font_montserratMedium_12)
  114. LV_FONT_DECLARE(lv_font_iconfont_25)
  115. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_31)
  116. LV_FONT_DECLARE(lv_font_PuHui_ExtraBold_60)
  117. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_24)
  118. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_18)
  119. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_26)
  120. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_15)
  121. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_20)
  122. LV_FONT_DECLARE(lv_font_Alatsi_Regular_18)
  123. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_16)
  124. LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_20)
  125. #ifdef __cplusplus
  126. }
  127. #endif
  128. #endif