/lvgl-2.7.6/src/lv_widgets/ |
D | lv_spinbox.c | 63 lv_spinbox_ext_t * ext = lv_obj_allocate_ext_attr(spinbox, sizeof(lv_spinbox_ext_t)); in lv_spinbox_create() local 64 LV_ASSERT_MEM(ext); in lv_spinbox_create() 65 if(ext == NULL) { in lv_spinbox_create() 74 ext->value = 0; in lv_spinbox_create() 75 ext->dec_point_pos = 0; in lv_spinbox_create() 76 ext->digit_count = 5; in lv_spinbox_create() 77 ext->digit_padding_left = 0; in lv_spinbox_create() 78 ext->step = 1; in lv_spinbox_create() 79 ext->range_max = 99999; in lv_spinbox_create() 80 ext->range_min = -99999; in lv_spinbox_create() [all …]
|
D | lv_tabview.c | 83 lv_tabview_ext_t * ext = lv_obj_allocate_ext_attr(tabview, sizeof(lv_tabview_ext_t)); in lv_tabview_create() local 84 LV_ASSERT_MEM(ext); in lv_tabview_create() 85 if(ext == NULL) { in lv_tabview_create() 91 ext->tab_cur = 0; in lv_tabview_create() 92 ext->tab_cnt = 0; in lv_tabview_create() 93 ext->point_last.x = 0; in lv_tabview_create() 94 ext->point_last.y = 0; in lv_tabview_create() 95 ext->content = NULL; in lv_tabview_create() 96 ext->indic = NULL; in lv_tabview_create() 97 ext->btns = NULL; in lv_tabview_create() [all …]
|
D | lv_arc.c | 70 lv_arc_ext_t * ext = lv_obj_allocate_ext_attr(arc, sizeof(lv_arc_ext_t)); in lv_arc_create() local 71 LV_ASSERT_MEM(ext); in lv_arc_create() 72 if(ext == NULL) { in lv_arc_create() 81 ext->rotation_angle = 0; in lv_arc_create() 82 ext->bg_angle_start = 135; in lv_arc_create() 83 ext->bg_angle_end = 45; in lv_arc_create() 84 ext->arc_angle_start = 135; in lv_arc_create() 85 ext->arc_angle_end = 270; in lv_arc_create() 86 ext->type = LV_ARC_TYPE_NORMAL; in lv_arc_create() 87 ext->cur_value = -1; in lv_arc_create() [all …]
|
D | lv_btnmatrix.c | 84 lv_btnmatrix_ext_t * ext = lv_obj_allocate_ext_attr(btnm, sizeof(lv_btnmatrix_ext_t)); in lv_btnmatrix_create() local 85 LV_ASSERT_MEM(ext); in lv_btnmatrix_create() 86 if(ext == NULL) { in lv_btnmatrix_create() 91 ext->btn_cnt = 0; in lv_btnmatrix_create() 92 ext->btn_id_pr = LV_BTNMATRIX_BTN_NONE; in lv_btnmatrix_create() 93 ext->btn_id_focused = LV_BTNMATRIX_BTN_NONE; in lv_btnmatrix_create() 94 ext->btn_id_act = LV_BTNMATRIX_BTN_NONE; in lv_btnmatrix_create() 95 ext->button_areas = NULL; in lv_btnmatrix_create() 96 ext->ctrl_bits = NULL; in lv_btnmatrix_create() 97 ext->map_p = NULL; in lv_btnmatrix_create() [all …]
|
D | lv_dropdown.c | 97 lv_dropdown_ext_t * ext = lv_obj_allocate_ext_attr(ddlist, sizeof(lv_dropdown_ext_t)); in lv_dropdown_create() local 98 LV_ASSERT_MEM(ext); in lv_dropdown_create() 99 if(ext == NULL) { in lv_dropdown_create() 105 ext->page = NULL; in lv_dropdown_create() 106 ext->options = NULL; in lv_dropdown_create() 107 ext->symbol = LV_SYMBOL_DOWN; in lv_dropdown_create() 108 ext->text = "Select"; in lv_dropdown_create() 109 ext->static_txt = 1; in lv_dropdown_create() 110 ext->show_selected = 1; in lv_dropdown_create() 111 ext->sel_opt_id = 0; in lv_dropdown_create() [all …]
|
D | lv_textarea.c | 103 lv_textarea_ext_t * ext = lv_obj_allocate_ext_attr(ta, sizeof(lv_textarea_ext_t)); in lv_textarea_create() local 104 LV_ASSERT_MEM(ext); in lv_textarea_create() 105 if(ext == NULL) { in lv_textarea_create() 110 ext->pwd_mode = 0; in lv_textarea_create() 111 ext->pwd_tmp = NULL; in lv_textarea_create() 112 ext->pwd_show_time = LV_TEXTAREA_DEF_PWD_SHOW_TIME; in lv_textarea_create() 113 ext->accapted_chars = NULL; in lv_textarea_create() 114 ext->max_length = 0; in lv_textarea_create() 115 ext->cursor.state = 1; in lv_textarea_create() 116 ext->cursor.hidden = 0; in lv_textarea_create() [all …]
|
D | lv_table.c | 69 lv_table_ext_t * ext = lv_obj_allocate_ext_attr(table, sizeof(lv_table_ext_t)); in lv_table_create() local 70 LV_ASSERT_MEM(ext); in lv_table_create() 71 if(ext == NULL) { in lv_table_create() 80 ext->cell_data = NULL; in lv_table_create() 81 ext->col_cnt = 0; in lv_table_create() 82 ext->row_cnt = 0; in lv_table_create() 83 ext->row_h = NULL; in lv_table_create() 84 ext->cell_types = 1; in lv_table_create() 88 lv_style_list_init(&ext->cell_style[i]); in lv_table_create() 92 ext->col_w[i] = LV_DPI; in lv_table_create() [all …]
|
D | lv_keyboard.c | 129 lv_keyboard_ext_t * ext = lv_obj_allocate_ext_attr(kb, sizeof(lv_keyboard_ext_t)); in lv_keyboard_create() local 130 LV_ASSERT_MEM(ext); in lv_keyboard_create() 131 if(ext == NULL) { in lv_keyboard_create() 137 ext->ta = NULL; in lv_keyboard_create() 138 ext->mode = LV_KEYBOARD_MODE_TEXT_LOWER; in lv_keyboard_create() 139 ext->cursor_mng = 0; in lv_keyboard_create() 156 lv_btnmatrix_set_map(kb, kb_map[ext->mode]); in lv_keyboard_create() 157 lv_btnmatrix_set_ctrl_map(kb, kb_ctrl[ext->mode]); in lv_keyboard_create() 164 ext->ta = copy_ext->ta; in lv_keyboard_create() 165 ext->mode = copy_ext->mode; in lv_keyboard_create() [all …]
|
D | lv_calendar.c | 93 lv_calendar_ext_t * ext = lv_obj_allocate_ext_attr(calendar, sizeof(lv_calendar_ext_t)); in lv_calendar_create() local 94 LV_ASSERT_MEM(ext); in lv_calendar_create() 95 if(ext == NULL) { in lv_calendar_create() 104 ext->today.year = 2020; in lv_calendar_create() 105 ext->today.month = 1; in lv_calendar_create() 106 ext->today.day = 1; in lv_calendar_create() 108 ext->showed_date.year = 2020; in lv_calendar_create() 109 ext->showed_date.month = 1; in lv_calendar_create() 110 ext->showed_date.day = 1; in lv_calendar_create() 112 ext->pressed_date.year = 0; in lv_calendar_create() [all …]
|
D | lv_bar.c | 89 lv_bar_ext_t * ext = lv_obj_allocate_ext_attr(bar, sizeof(lv_bar_ext_t)); in lv_bar_create() local 90 LV_ASSERT_MEM(ext); in lv_bar_create() 91 if(ext == NULL) { in lv_bar_create() 96 ext->min_value = 0; in lv_bar_create() 97 ext->start_value = 0; in lv_bar_create() 98 ext->max_value = 100; in lv_bar_create() 99 ext->cur_value = 0; in lv_bar_create() 101 ext->anim_time = 200; in lv_bar_create() 102 lv_bar_init_anim(bar, &ext->cur_value_anim); in lv_bar_create() 103 lv_bar_init_anim(bar, &ext->start_value_anim); in lv_bar_create() [all …]
|
D | lv_img.c | 72 lv_img_ext_t * ext = lv_obj_allocate_ext_attr(img, sizeof(lv_img_ext_t)); in lv_img_create() local 73 LV_ASSERT_MEM(ext); in lv_img_create() 74 if(ext == NULL) { in lv_img_create() 79 ext->src = NULL; in lv_img_create() 80 ext->src_type = LV_IMG_SRC_UNKNOWN; in lv_img_create() 81 ext->cf = LV_IMG_CF_UNKNOWN; in lv_img_create() 82 ext->w = lv_obj_get_width(img); in lv_img_create() 83 ext->h = lv_obj_get_height(img); in lv_img_create() 84 ext->angle = 0; in lv_img_create() 85 ext->zoom = LV_IMG_ZOOM_NONE; in lv_img_create() [all …]
|
D | lv_label.c | 91 lv_label_ext_t * ext = lv_obj_get_ext_attr(new_label); in lv_label_create() local 92 LV_ASSERT_MEM(ext); in lv_label_create() 93 if(ext == NULL) { in lv_label_create() 98 ext->text = NULL; in lv_label_create() 99 ext->static_txt = 0; in lv_label_create() 100 ext->recolor = 0; in lv_label_create() 101 ext->align = LV_LABEL_ALIGN_AUTO; in lv_label_create() 102 ext->dot_end = LV_LABEL_DOT_END_INV; in lv_label_create() 103 ext->long_mode = LV_LABEL_LONG_EXPAND; in lv_label_create() 105 ext->anim_speed = LV_LABEL_DEF_SCROLL_SPEED; in lv_label_create() [all …]
|
D | lv_win.c | 85 lv_win_ext_t * ext = lv_obj_allocate_ext_attr(new_win, sizeof(lv_win_ext_t)); in lv_win_create() local 86 LV_ASSERT_MEM(ext); in lv_win_create() 87 if(ext == NULL) { in lv_win_create() 92 ext->page = NULL; in lv_win_create() 93 ext->header = NULL; in lv_win_create() 94 ext->title_txt = lv_mem_alloc(strlen(DEF_TITLE) + 1); in lv_win_create() 95 strcpy(ext->title_txt, DEF_TITLE); in lv_win_create() 115 ext->btn_w = LV_DPX(65); in lv_win_create() 117 ext->page = lv_page_create(new_win, NULL); in lv_win_create() 118 lv_obj_add_protect(ext->page, LV_PROTECT_PARENT); in lv_win_create() [all …]
|
D | lv_spinner.c | 75 lv_spinner_ext_t * ext = lv_obj_allocate_ext_attr(spinner, sizeof(lv_spinner_ext_t)); in lv_spinner_create() local 76 LV_ASSERT_MEM(ext); in lv_spinner_create() 77 if(ext == NULL) { in lv_spinner_create() 86 ext->arc_length = LV_SPINNER_DEF_ARC_LENGTH; in lv_spinner_create() 87 ext->anim_type = LV_SPINNER_DEF_ANIM; in lv_spinner_create() 88 ext->anim_dir = LV_SPINNER_DIR_FORWARD; in lv_spinner_create() 89 ext->time = LV_SPINNER_DEF_SPIN_TIME; in lv_spinner_create() 96 ext->arc.bg_angle_start = 0; in lv_spinner_create() 97 ext->arc.bg_angle_end = 360; in lv_spinner_create() 105 ext->arc_length = copy_ext->arc_length; in lv_spinner_create() [all …]
|
D | lv_tileview.c | 75 lv_tileview_ext_t * ext = lv_obj_allocate_ext_attr(new_tileview, sizeof(lv_tileview_ext_t)); in lv_tileview_create() local 76 LV_ASSERT_MEM(ext); in lv_tileview_create() 77 if(ext == NULL) { in lv_tileview_create() 88 ext->anim_time = LV_TILEVIEW_DEF_ANIM_TIME; in lv_tileview_create() 90 ext->act_id.x = 0; in lv_tileview_create() 91 ext->act_id.y = 0; in lv_tileview_create() 92 ext->valid_pos = NULL; in lv_tileview_create() 93 ext->valid_pos_cnt = 0; in lv_tileview_create() 127 ext->act_id.x = copy_ext->act_id.x; in lv_tileview_create() 128 ext->act_id.y = copy_ext->act_id.y; in lv_tileview_create() [all …]
|
D | lv_linemeter.c | 65 lv_linemeter_ext_t * ext = lv_obj_allocate_ext_attr(linemeter, sizeof(lv_linemeter_ext_t)); in lv_linemeter_create() local 66 LV_ASSERT_MEM(ext); in lv_linemeter_create() 67 if(ext == NULL) { in lv_linemeter_create() 73 ext->min_value = 0; in lv_linemeter_create() 74 ext->max_value = 100; in lv_linemeter_create() 75 ext->cur_value = 0; in lv_linemeter_create() 76 ext->line_cnt = 18; in lv_linemeter_create() 77 ext->scale_angle = 240; in lv_linemeter_create() 78 ext->angle_ofs = 0; in lv_linemeter_create() 79 ext->mirrored = 0; in lv_linemeter_create() [all …]
|
D | lv_msgbox.c | 81 lv_msgbox_ext_t * ext = lv_obj_allocate_ext_attr(mbox, sizeof(lv_msgbox_ext_t)); in lv_msgbox_create() local 82 LV_ASSERT_MEM(ext); in lv_msgbox_create() 83 if(ext == NULL) { in lv_msgbox_create() 88 ext->text = NULL; in lv_msgbox_create() 89 ext->btnm = NULL; in lv_msgbox_create() 91 ext->anim_time = LV_MSGBOX_CLOSE_ANIM_TIME; in lv_msgbox_create() 99 ext->text = lv_label_create(mbox, NULL); in lv_msgbox_create() 100 lv_label_set_align(ext->text, LV_LABEL_ALIGN_CENTER); in lv_msgbox_create() 101 lv_label_set_long_mode(ext->text, LV_LABEL_LONG_BREAK); in lv_msgbox_create() 102 lv_label_set_text(ext->text, "Message"); in lv_msgbox_create() [all …]
|
D | lv_slider.c | 74 lv_slider_ext_t * ext = lv_obj_allocate_ext_attr(slider, sizeof(lv_slider_ext_t)); in lv_slider_create() local 75 LV_ASSERT_MEM(ext); in lv_slider_create() 76 if(ext == NULL) { in lv_slider_create() 82 ext->value_to_set = NULL; in lv_slider_create() 83 ext->dragging = 0; in lv_slider_create() 84 lv_style_list_init(&ext->style_knob); in lv_slider_create() 102 lv_style_list_copy(&ext->style_knob, ©_ext->style_knob); in lv_slider_create() 103 lv_area_copy(&ext->left_knob_area, ©_ext->left_knob_area); in lv_slider_create() 104 lv_area_copy(&ext->right_knob_area, ©_ext->right_knob_area); in lv_slider_create() 142 lv_slider_ext_t * ext = lv_obj_get_ext_attr(slider); in lv_slider_is_dragged() local [all …]
|
D | lv_cpicker.c | 114 lv_cpicker_ext_t * ext = lv_obj_allocate_ext_attr(cpicker, sizeof(lv_cpicker_ext_t)); in lv_cpicker_create() local 115 LV_ASSERT_MEM(ext); in lv_cpicker_create() 116 if(ext == NULL) { in lv_cpicker_create() 122 ext->type = LV_CPICKER_DEF_TYPE; in lv_cpicker_create() 123 ext->hsv = LV_CPICKER_DEF_HSV; in lv_cpicker_create() 124 ext->knob.colored = 1; in lv_cpicker_create() 125 ext->color_mode = LV_CPICKER_COLOR_MODE_HUE; in lv_cpicker_create() 126 ext->color_mode_fixed = 0; in lv_cpicker_create() 127 ext->last_click_time = 0; in lv_cpicker_create() 128 ext->last_change_time = 0; in lv_cpicker_create() [all …]
|
D | lv_chart.c | 93 lv_chart_ext_t * ext = lv_obj_allocate_ext_attr(chart, sizeof(lv_chart_ext_t)); in lv_chart_create() local 94 LV_ASSERT_MEM(ext); in lv_chart_create() 95 if(ext == NULL) { in lv_chart_create() 100 _lv_ll_init(&ext->series_ll, sizeof(lv_chart_series_t)); in lv_chart_create() 104 ext->ymin[i] = LV_CHART_YMIN_DEF; in lv_chart_create() 105 ext->ymax[i] = LV_CHART_YMAX_DEF; in lv_chart_create() 108 ext->hdiv_cnt = LV_CHART_HDIV_DEF; in lv_chart_create() 109 ext->vdiv_cnt = LV_CHART_VDIV_DEF; in lv_chart_create() 110 ext->point_cnt = LV_CHART_PNUM_DEF; in lv_chart_create() 111 ext->type = LV_CHART_TYPE_LINE; in lv_chart_create() [all …]
|
D | lv_gauge.c | 75 lv_gauge_ext_t * ext = lv_obj_allocate_ext_attr(gauge, sizeof(lv_gauge_ext_t)); in lv_gauge_create() local 76 LV_ASSERT_MEM(ext); in lv_gauge_create() 77 if(ext == NULL) { in lv_gauge_create() 83 ext->needle_count = 0; in lv_gauge_create() 84 ext->values = NULL; in lv_gauge_create() 85 ext->needle_colors = NULL; in lv_gauge_create() 86 ext->label_count = LV_GAUGE_DEF_LABEL_COUNT; in lv_gauge_create() 87 ext->format_cb = NULL; in lv_gauge_create() 89 ext->needle_img = 0; in lv_gauge_create() 90 ext->needle_img_pivot.x = 0; in lv_gauge_create() [all …]
|
D | lv_checkbox.c | 61 lv_checkbox_ext_t * ext = lv_obj_allocate_ext_attr(cb, sizeof(lv_checkbox_ext_t)); in lv_checkbox_create() local 62 LV_ASSERT_MEM(ext); in lv_checkbox_create() 63 if(ext == NULL) { in lv_checkbox_create() 68 ext->bullet = NULL; in lv_checkbox_create() 69 ext->label = NULL; in lv_checkbox_create() 75 ext->bullet = lv_obj_create(cb, NULL); in lv_checkbox_create() 76 lv_obj_set_click(ext->bullet, false); in lv_checkbox_create() 78 ext->label = lv_label_create(cb, NULL); in lv_checkbox_create() 91 ext->bullet = lv_obj_create(cb, copy_ext->bullet); in lv_checkbox_create() 92 ext->label = lv_label_create(cb, copy_ext->label); in lv_checkbox_create() [all …]
|
D | lv_page.c | 93 lv_page_ext_t * ext = lv_obj_allocate_ext_attr(page, sizeof(lv_page_ext_t)); in lv_page_create() local 94 LV_ASSERT_MEM(ext); in lv_page_create() 95 if(ext == NULL) { in lv_page_create() 100 ext->scrl = NULL; in lv_page_create() 101 lv_style_list_init(&ext->scrlbar.style); in lv_page_create() 102 ext->scrlbar.hor_draw = 0; in lv_page_create() 103 ext->scrlbar.ver_draw = 0; in lv_page_create() 104 ext->scrlbar.mode = LV_SCROLLBAR_MODE_AUTO; in lv_page_create() 106 lv_style_list_init(&ext->edge_flash.style); in lv_page_create() 107 ext->edge_flash.enabled = 0; in lv_page_create() [all …]
|
D | lv_line.c | 65 lv_line_ext_t * ext = lv_obj_allocate_ext_attr(line, sizeof(lv_line_ext_t)); in lv_line_create() local 66 LV_ASSERT_MEM(ext); in lv_line_create() 67 if(ext == NULL) { in lv_line_create() 72 ext->point_num = 0; in lv_line_create() 73 ext->point_array = NULL; in lv_line_create() 74 ext->auto_size = 1; in lv_line_create() 75 ext->y_inv = 0; in lv_line_create() 121 lv_line_ext_t * ext = lv_obj_get_ext_attr(line); in lv_line_set_points() local 122 ext->point_array = point_a; in lv_line_set_points() 123 ext->point_num = point_num; in lv_line_set_points() [all …]
|
D | lv_imgbtn.c | 65 lv_imgbtn_ext_t * ext = lv_obj_allocate_ext_attr(imgbtn, sizeof(lv_imgbtn_ext_t)); in lv_imgbtn_create() local 66 LV_ASSERT_MEM(ext); in lv_imgbtn_create() 67 if(ext == NULL) { in lv_imgbtn_create() 76 _lv_memset_00((void *)ext->img_src_mid, sizeof(ext->img_src_mid)); in lv_imgbtn_create() 78 _lv_memset_00(ext->img_src_left, sizeof(ext->img_src_left)); in lv_imgbtn_create() 79 _lv_memset_00(ext->img_src_right, sizeof(ext->img_src_right)); in lv_imgbtn_create() 81 ext->tiled = 0; in lv_imgbtn_create() 83 ext->act_cf = LV_IMG_CF_UNKNOWN; in lv_imgbtn_create() 96 _lv_memcpy((void *)ext->img_src_mid, copy_ext->img_src_mid, sizeof(ext->img_src_mid)); in lv_imgbtn_create() 98 _lv_memcpy((void *)ext->img_src_left, copy_ext->img_src_left, sizeof(ext->img_src_left)); in lv_imgbtn_create() [all …]
|