sggt/LVGL/myGUI/generated/setup_scr_screen_hidden.c

61 lines
3.4 KiB
C

/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/
#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"
void setup_scr_screen_hidden(lv_ui *ui)
{
//Write codes screen_hidden
ui->screen_hidden = lv_obj_create(NULL);
lv_obj_set_size(ui->screen_hidden, 320, 240);
lv_obj_set_scrollbar_mode(ui->screen_hidden, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_hidden, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_hidden, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_hidden, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_hidden, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_hidden_label_size14
ui->screen_hidden_label_size14 = lv_label_create(ui->screen_hidden);
lv_label_set_text(ui->screen_hidden_label_size14, "热电偶 阻 ℃ Ω 类型 频率\n\n采样间隔 描点数量 输入出 颜色\n\n记录 编程 通讯\n\n照明 开 关 语言 简体中文 配置 保存 复位 已 未\n\n");
lv_label_set_long_mode(ui->screen_hidden_label_size14, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_hidden_label_size14, 0, 0);
lv_obj_set_size(ui->screen_hidden_label_size14, 320, 120);
//Write style for screen_hidden_label_size14, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_hidden_label_size14, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_hidden_label_size14, &lv_font_SourceHanSerifSC_Regular_14, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_hidden_label_size14, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_hidden_label_size14, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_hidden_label_size14, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_hidden_label_size14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//The custom code of screen_hidden.
//Update current screen layout.
lv_obj_update_layout(ui->screen_hidden);
}