Home
last modified time | relevance | path

Searched full:id (Results 1 – 25 of 137) sorted by relevance

123456

/lvgl-3.5.0/src/extra/widgets/chart/
Dlv_chart.c270 void lv_chart_get_point_pos_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id, lv_point_t … in lv_chart_get_point_pos_by_id() argument
277 if(id >= chart->point_cnt) { in lv_chart_get_point_pos_by_id()
278 LV_LOG_WARN("Invalid index: %d", id); in lv_chart_get_point_pos_by_id()
288 p_out->x = (w * id) / (chart->point_cnt - 1); in lv_chart_get_point_pos_by_id()
291 …p_out->x = lv_map(ser->x_points[id], chart->xmin[ser->x_axis_sec], chart->xmax[ser->x_axis_sec], 0… in lv_chart_get_point_pos_by_id()
302 p_out->x = (int32_t)((int32_t)w * id) / chart->point_cnt; in lv_chart_get_point_pos_by_id()
318 temp_y = (int32_t)((int32_t)ser->y_points[id] - chart->ymin[ser->y_axis_sec]) * h; in lv_chart_get_point_pos_by_id()
412 void lv_chart_set_x_start_point(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id) in lv_chart_set_x_start_point() argument
418 if(id >= chart->point_cnt) return; in lv_chart_set_x_start_point()
419 ser->start_point = id; in lv_chart_set_x_start_point()
[all …]
Dlv_chart.h254 * @param id the index.
257 void lv_chart_get_point_pos_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id, lv_point_t …
306 * @param id the index of the x point in the data array
308 void lv_chart_set_x_start_point(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id);
392 * @param id the index of the x point in the array
395 void lv_chart_set_value_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id, lv_coord_t valu…
402 * @param id the index of the x point in the array
406 void lv_chart_set_value_by_id2(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id, lv_coord_t x_v…
/lvgl-3.5.0/src/extra/widgets/tabview/
Dlv_tabview.c124 void lv_tabview_rename_tab(lv_obj_t * obj, uint32_t id, const char * new_name) in lv_tabview_rename_tab() argument
129 if(id >= tabview->tab_cnt) return; in lv_tabview_rename_tab()
130 if(tabview->tab_pos & LV_DIR_HOR) id *= 2; in lv_tabview_rename_tab()
132 lv_mem_free(tabview->map[id]); in lv_tabview_rename_tab()
133 tabview->map[id] = lv_mem_alloc(strlen(new_name) + 1); in lv_tabview_rename_tab()
134 strcpy(tabview->map[id], new_name); in lv_tabview_rename_tab()
138 void lv_tabview_set_act(lv_obj_t * obj, uint32_t id, lv_anim_enable_t anim_en) in lv_tabview_set_act() argument
143 if(id >= tabview->tab_cnt) { in lv_tabview_set_act()
144 id = tabview->tab_cnt - 1; in lv_tabview_set_act()
157 lv_obj_scroll_to_x(cont, id * (gap + w), anim_en); in lv_tabview_set_act()
[all …]
/lvgl-3.5.0/src/widgets/
Dlv_table.h89 * @param row id of the row [0 .. row_cnt -1]
90 * @param col id of the column [0 .. col_cnt -1]
99 * @param row id of the row [0 .. row_cnt -1]
100 * @param col id of the column [0 .. col_cnt -1]
123 * @param col_id id of the column [0 .. LV_TABLE_COL_MAX -1]
131 * @param row id of the row [0 .. row_cnt -1]
132 * @param col id of the column [0 .. col_cnt -1]
141 * @param row id of the row [0 .. row_cnt -1]
142 * @param col id of the column [0 .. col_cnt -1]
154 * @param row id of the row [0 .. row_cnt -1]
[all …]
Dlv_roller.c149 * @param sel_opt id of the selected option (0 ... number of option - 1);
162 /*In infinite mode interpret the new ID relative to the currently visible "page"*/ in lv_roller_set_selected()
206 * Get the id of the selected option
208 * @return id of the selected option (0 ... number of option - 1);
594 * Refresh the position of the roller. It uses the id stored in: roller->ddlist.selected_option_id
630 int32_t id = roller->sel_opt_id; in refr_position() local
631 lv_coord_t sel_y1 = id * (font_h + line_space); in refr_position()
708 int32_t id = (mid - label_y1) / label_unit; in release_handler() local
710 if(id < 0) id = 0; in release_handler()
711 if(id >= roller->option_cnt) id = roller->option_cnt - 1; in release_handler()
[all …]
Dlv_dropdown.c50 static void draw_box(lv_obj_t * dropdown_obj, lv_draw_ctx_t * draw_ctx, uint16_t id, lv_state_t sta…
51 static void draw_box_label(lv_obj_t * dropdown_obj, lv_draw_ctx_t * draw_ctx, uint16_t id, lv_state…
923 static void draw_box(lv_obj_t * dropdown_obj, lv_draw_ctx_t * draw_ctx, uint16_t id, lv_state_t sta… in draw_box() argument
925 if(id == LV_DROPDOWN_PR_NONE) return; in draw_box()
945 rect_area.y1 += id * (font_h + line_space); in draw_box()
961 static void draw_box_label(lv_obj_t * dropdown_obj, lv_draw_ctx_t * draw_ctx, uint16_t id, lv_state… in draw_box_label() argument
963 if(id == LV_DROPDOWN_PR_NONE) return; in draw_box_label()
988 area_sel.y1 += id * (font_h + label_dsc.line_space); in draw_box_label()
1018 uint32_t id = dropdown->sel_opt_id; /*Just to use uint32_t in event data*/ in btn_release_handler() local
1019 res = lv_event_send(obj, LV_EVENT_VALUE_CHANGED, &id); in btn_release_handler()
[all …]
/lvgl-3.5.0/demos/music/
Dlv_demo_music_main.c62 static void track_load(uint32_t id);
297 uint32_t id = track_id; in _lv_demo_music_album_next() local
299 id++; in _lv_demo_music_album_next()
300 if(id >= ACTIVE_TRACK_CNT) id = 0; in _lv_demo_music_album_next()
303 if(id == 0) { in _lv_demo_music_album_next()
304 id = ACTIVE_TRACK_CNT - 1; in _lv_demo_music_album_next()
307 id--; in _lv_demo_music_album_next()
312 _lv_demo_music_play(id); in _lv_demo_music_album_next()
315 track_load(id); in _lv_demo_music_album_next()
319 void _lv_demo_music_play(uint32_t id) in _lv_demo_music_play() argument
[all …]
/lvgl-3.5.0/src/extra/libs/sjpg/
Dtjpgd.c174 i = d & 3; /* Get table ID */ in create_qt_tbl()
284 unsigned int id, /* Table ID (0:Y, 1:C) */ in huffext() argument
294 const uint8_t *hb = jd->huffbits[id][cls]; /* Bit distribution table */ in huffext()
295 const uint16_t *hc = jd->huffcode[id][cls]; /* Code word table */ in huffext()
296 const uint8_t *hd = jd->huffdata[id][cls]; /* Data table */ in huffext()
373 d = jd->hufflut_ac[id][d]; /* Table decode */ in huffext()
379 d = jd->hufflut_dc[id][d]; /* Table decode */ in huffext()
387 hb = jd->huffbits[id][cls] + HUFF_BIT; /* Bit distribution table */ in huffext()
388 hc = jd->huffcode[id][cls] + jd->longofs[id][cls]; /* Code word table */ in huffext()
389 hd = jd->huffdata[id][cls] + jd->longofs[id][cls]; /* Data table */ in huffext()
[all …]
Dtjpgd.h55 uint8_t qtid[3]; /* Quantization table ID of each component, Y, Cb, Cr */
60 uint8_t* huffbits[2][2]; /* Huffman bit distribution tables [id][dcac] */
61 uint16_t* huffcode[2][2]; /* Huffman code word tables [id][dcac] */
62 uint8_t* huffdata[2][2]; /* Huffman decoded data tables [id][dcac] */
63 int32_t* qttbl[4]; /* Dequantizer tables [id] */
68 uint8_t longofs[2][2]; /* Table offset of long code [id][dcac] */
69 uint16_t* hufflut_ac[2]; /* Fast huffman decode tables for AC short code [id] */
70 uint8_t* hufflut_dc[2]; /* Fast huffman decode tables for DC short code [id] */
/lvgl-3.5.0/docs/widgets/extra/
Dchart.md60 2. Use `lv_chart_set_value_by_id(chart, ser, id, value)` where `id` is the index of the point you w…
66 For `LV_CHART_TYPE_SCATTER` type `lv_chart_set_value_by_id2(chart, ser, id, value)` and `lv_chart_…
97 index with the function `lv_chart_set_x_start_point(chart, ser, id)` where `id` is the new index po…
124 `lv_chart_get_point_pos_by_id(chart, series, id, &point_out)` gets the coordinate of a given point.…
136 - `id`: index of the line
141 - `id`: index of the point
142 - `value`: value of `id`th point
150 - `id`: index of the point
151 - `value`: value of `id`th point
163 - `id`: axis
/lvgl-3.5.0/src/extra/others/msg/
Dlv_msg.h30 uint32_t id; /*Identifier of the message*/ member
51 * @param msg_id the message ID to listen to
60 * `LV_EVENT_MSG_RECEIVED` will be triggered if a message with matching ID was sent
61 * @param msg_id the message ID to listen to
76 * Unsubscribe an object from a message ID
77 * @param msg_id the message ID to unsubcribe from or `LV_MSG_ID_ANY` for any message ID
84 * Send a message with a given ID and payload
85 * @param msg_id ID of the message to send
91 * Get the ID of a message object. Typically used in the subscriber callback.
93 * @return the ID of the message
/lvgl-3.5.0/src/core/
Dlv_obj_tree.c299 lv_obj_t * lv_obj_get_child(const lv_obj_t * obj, int32_t id) in lv_obj_get_child() argument
306 if(id < 0) { in lv_obj_get_child()
307 id = obj->spec_attr->child_cnt + id; in lv_obj_get_child()
308 if(id < 0) return NULL; in lv_obj_get_child()
309 idu = (uint32_t) id; in lv_obj_get_child()
312 idu = id; in lv_obj_get_child()
316 else return obj->spec_attr->children[id]; in lv_obj_get_child()
400 uint32_t id = i; in obj_del_core() local
401 for(i = id; i < disp->screen_cnt - 1; i++) { in obj_del_core()
409 uint32_t id = lv_obj_get_index(obj); in obj_del_core() local
[all …]
/lvgl-3.5.0/env_support/cmsis-pack/
DLVGL.lvgl.pdsc105 <condition id="Arm Compiler">
111 <condition id="Arm GCC">
115 <condition id="Cortex-M Processors">
133 <condition id="CMSIS-CORE">
140 <condition id="Cortex-M Arm GCC">
145 <condition id="Cortex-M Arm Compiler">
151 <condition id="Cortex-M Arm GCC CMSIS-CORE">
157 <condition id="Cortex-M Arm Compiler CMSIS-CORE">
165 <condition id="LVGL-Essential">
170 <condition id="Arm-2D">
[all …]
/lvgl-3.5.0/src/draw/
Dlv_draw_mask.c79 * @return the an integer, the ID of the mask. Can be used in `lv_draw_mask_remove_id`.
138 * @param ids ID array of added buffers
139 * @param ids_count number of ID array
152 int16_t id = ids[i]; in lv_draw_mask_apply_ids() local
153 if(id == LV_MASK_ID_INV) continue; in lv_draw_mask_apply_ids()
154 dsc = LV_GC_ROOT(_lv_draw_mask_list[id]).param; in lv_draw_mask_apply_ids()
166 * Remove a mask with a given ID
167 * @param id the ID of the mask. Returned by `lv_draw_mask_add`
169 * If more masks have `custom_id` ID then the last mask's parameter will be returned
171 void * lv_draw_mask_remove_id(int16_t id) in lv_draw_mask_remove_id() argument
[all …]
Dlv_draw_mask.h227 * @return the an integer, the ID of the mask. Can be used in `lv_draw_mask_remove_id`.
253 * @param ids ID array of added buffers
254 * @param ids_count number of ID array
266 * Remove a mask with a given ID
267 * @param id the ID of the mask. Returned by `lv_draw_mask_add`
269 * If more masks have `custom_id` ID then the last mask's parameter will be returned
271 void * lv_draw_mask_remove_id(int16_t id);
274 * Remove all mask with a given custom ID
277 * If more masks have `custom_id` ID then the last mask's parameter will be returned
Dlv_img_buf.c302 * @param id the palette color to set:
309 void lv_img_buf_set_palette(lv_img_dsc_t * dsc, uint8_t id, lv_color_t c) in lv_img_buf_set_palette() argument
311 …if((dsc->header.cf == LV_IMG_CF_ALPHA_1BIT && id > 1) || (dsc->header.cf == LV_IMG_CF_ALPHA_2BIT &… in lv_img_buf_set_palette()
312 … (dsc->header.cf == LV_IMG_CF_ALPHA_4BIT && id > 15) || (dsc->header.cf == LV_IMG_CF_ALPHA_8BIT)) { in lv_img_buf_set_palette()
313 LV_LOG_WARN("lv_img_buf_set_px_alpha: invalid 'id'"); in lv_img_buf_set_palette()
320 lv_memcpy_small(&buf[id * sizeof(c32)], &c32, sizeof(c32)); in lv_img_buf_set_palette()
/lvgl-3.5.0/scripts/
Dchangelog-template.hbs6 - :warning: {{message}} [`{{id}}`]({{href}})
17 - {{message}} [`{{id}}`]({{href}})
28 - {{message}} [`{{id}}`]({{href}})
40 - {{message}} [`{{id}}`]({{href}})
51 - {{message}} [`{{id}}`]({{href}})
63 - {{message}} [`{{id}}`]({{href}})
75 - {{message}} [`{{id}}`]({{href}})
86 - {{message}} [`{{id}}`]({{href}})
97 - {{message}} [`{{id}}`]({{href}})
/lvgl-3.5.0/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_2.c15 if(dsc->id == 1) { in event_cb()
17 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb()
26 else if(dsc->id == 2) { in event_cb()
28 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb()
33 else if(dsc->id == 3) { in event_cb()
45 if(dsc->id == 3) { in event_cb()
60 … if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) img_draw_dsc.recolor_opa = LV_OPA_30; in event_cb()
Dlv_example_btnmatrix_2.py27 if dsc.id == 1:
29 if obj.get_selected_btn() == dsc.id:
41 elif dsc.id == 2:
43 if obj.get_selected_btn() == dsc.id:
49 elif dsc.id == 3:
54 if dsc.id == 3:
70 if obj.get_selected_btn() == dsc.id:
/lvgl-3.5.0/examples/porting/
Dlv_port_indev_template.c48 static bool button_is_pressed(uint8_t id);
369 /*Get the pressed button's ID*/
380 /*Save the last pressed button's ID*/
384 /*Get ID (0, 1, 2 ..) of the pressed button*/
391 /*Return the pressed button's ID*/
401 /*Test if `id` button is pressed or not*/
402 static bool button_is_pressed(uint8_t id)
/lvgl-3.5.0/src/misc/
Dlv_style.h359 * @return a new property ID, or LV_STYLE_PROP_INV if there are no more available.
390 * @param prop the ID of a property (e.g. `LV_STYLE_BG_COLOR`)
399 * @param prop the ID of a property (e.g. `LV_STYLE_BG_COLOR`)
407 * @param prop the ID of a property
433 * @param prop the ID of a property
441 * @param prop the ID of a property
561 * @param prop Property ID
/lvgl-3.5.0/examples/widgets/chart/
Dlv_example_chart_4.py12 id = lv.chart.get_pressed_point(chart)
13 if id == lv.CHART_POINT.NONE:
15 # print("Selected point ", id)
18 chart.get_point_pos_by_id(series[i], id, p)
19 value = series_points[i][id]
Dlv_example_chart_4.c18 int32_t id = lv_chart_get_pressed_point(chart); in event_cb() local
19 if(id == LV_CHART_POINT_NONE) return; in event_cb()
21 LV_LOG_USER("Selected point %d", (int)id); in event_cb()
26 lv_chart_get_point_pos_by_id(chart, ser, id, &p); in event_cb()
29 lv_coord_t value = y_array[id]; in event_cb()
Dlv_example_chart_7.c12 dsc->rect_dsc->bg_opa = (LV_OPA_COVER * dsc->id) / (cnt - 1); in draw_event_cb()
17 /*dsc->id is the tells drawing order, but we need the ID of the point being drawn.*/ in draw_event_cb()
19 …uint32_t p_act = (start_point + dsc->id) % cnt; /*Consider start point to get the index of the arr… in draw_event_cb()
/lvgl-3.5.0/src/extra/widgets/calendar/
Dlv_calendar.c297 if(dsc->id < 7) { in draw_part_begin_event_cb()
301 else if(lv_btnmatrix_has_btn_ctrl(obj, dsc->id, LV_BTNMATRIX_CTRL_DISABLED)) { in draw_part_begin_event_cb()
307 if(lv_btnmatrix_has_btn_ctrl(obj, dsc->id, LV_CALENDAR_CTRL_HIGHLIGHT)) { in draw_part_begin_event_cb()
310 if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) { in draw_part_begin_event_cb()
315 if(lv_btnmatrix_has_btn_ctrl(obj, dsc->id, LV_CALENDAR_CTRL_TODAY)) { in draw_part_begin_event_cb()

123456