Home
last modified time | relevance | path

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

123456

/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.c269 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
276 if(id >= chart->point_cnt) { in lv_chart_get_point_pos_by_id()
277 LV_LOG_WARN("Invalid index: %d", id); in lv_chart_get_point_pos_by_id()
287 p_out->x = (w * id) / (chart->point_cnt - 1); in lv_chart_get_point_pos_by_id()
290 …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()
309 p_out->x = (int32_t)((int32_t)(w + block_gap) * id) / chart->point_cnt; in lv_chart_get_point_pos_by_id()
321 id = ((int32_t)start_point + id) % chart->point_cnt; in lv_chart_get_point_pos_by_id()
323 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()
417 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
423 if(id >= chart->point_cnt) return; in lv_chart_set_x_start_point()
[all …]
Dlv_chart.h253 * @param id the index.
256 void lv_chart_get_point_pos_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id, lv_point_t …
305 * @param id the index of the x point in the data array
307 void lv_chart_set_x_start_point(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id);
389 * @param id the index of the x point in the array
392 void lv_chart_set_value_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id, lv_coord_t valu…
399 * @param id the index of the x point in the array
403 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-latest/src/widgets/
Dlv_table.h98 * @param row id of the row [0 .. row_cnt -1]
99 * @param col id of the column [0 .. col_cnt -1]
108 * @param row id of the row [0 .. row_cnt -1]
109 * @param col id of the column [0 .. col_cnt -1]
132 * @param col_id id of the column [0 .. LV_TABLE_COL_MAX -1]
140 * @param row id of the row [0 .. row_cnt -1]
141 * @param col id of the column [0 .. col_cnt -1]
149 * @param row id of the row [0 .. row_cnt -1]
150 * @param col id of the column [0 .. col_cnt -1]
159 * @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);
590 * Refresh the position of the roller. It uses the id stored in: roller->ddlist.selected_option_id
626 int32_t id = roller->sel_opt_id; in refr_position() local
627 lv_coord_t sel_y1 = id * (font_h + line_space); in refr_position()
704 int32_t id = (mid - label_y1) / label_unit; in release_handler() local
706 if(id < 0) id = 0; in release_handler()
707 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…
929 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
931 if(id == LV_DROPDOWN_PR_NONE) return; in draw_box()
951 rect_area.y1 += id * (font_h + line_space); in draw_box()
967 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
969 if(id == LV_DROPDOWN_PR_NONE) return; in draw_box_label()
994 area_sel.y1 += id * (font_h + label_dsc.line_space); in draw_box_label()
1023 uint32_t id = dropdown->sel_opt_id; /*Just to use uint32_t in event data*/ in btn_release_handler() local
1024 res = lv_event_send(obj, LV_EVENT_VALUE_CHANGED, &id); in btn_release_handler()
[all …]
/lvgl-latest/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((void *)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((void *)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
145 if(id >= tabview->tab_cnt) { in lv_tabview_set_act()
146 id = tabview->tab_cnt - 1; in lv_tabview_set_act()
159 lv_obj_scroll_to_x(cont, id * (gap + w), anim_en); in lv_tabview_set_act()
[all …]
/lvgl-latest/demos/music/
Dlv_demo_music_main.c62 static void track_load(uint32_t id);
304 uint32_t id = track_id; in _lv_demo_music_album_next() local
306 id++; in _lv_demo_music_album_next()
307 if(id >= ACTIVE_TRACK_CNT) id = 0; in _lv_demo_music_album_next()
310 if(id == 0) { in _lv_demo_music_album_next()
311 id = ACTIVE_TRACK_CNT - 1; in _lv_demo_music_album_next()
314 id--; in _lv_demo_music_album_next()
319 _lv_demo_music_play(id); in _lv_demo_music_album_next()
322 track_load(id); in _lv_demo_music_album_next()
326 void _lv_demo_music_play(uint32_t id) in _lv_demo_music_play() argument
[all …]
/lvgl-latest/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-latest/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-latest/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-latest/src/core/
Dlv_obj_tree.c293 lv_obj_t * lv_obj_get_child(const lv_obj_t * obj, int32_t id) in lv_obj_get_child() argument
300 if(id < 0) { in lv_obj_get_child()
301 id = obj->spec_attr->child_cnt + id; in lv_obj_get_child()
302 if(id < 0) return NULL; in lv_obj_get_child()
303 idu = (uint32_t) id; in lv_obj_get_child()
306 idu = id; in lv_obj_get_child()
310 else return obj->spec_attr->children[id]; in lv_obj_get_child()
396 uint32_t id = i; in obj_del_core() local
397 for(i = id; i < disp->screen_cnt - 1; i++) { in obj_del_core()
405 uint32_t id = lv_obj_get_index(obj); in obj_del_core() local
[all …]
/lvgl-latest/env_support/cmsis-pack/
DLVGL.lvgl.pdsc131 <condition id="Arm Compiler">
137 <condition id="Arm GCC">
141 <condition id="Cortex-M Processors">
159 <condition id="CMSIS-CORE">
166 <condition id="Cortex-M Arm GCC">
171 <condition id="Cortex-M Arm Compiler">
177 <condition id="Cortex-M Arm GCC CMSIS-CORE">
183 <condition id="Cortex-M Arm Compiler CMSIS-CORE">
191 <condition id="LVGL-Essential">
196 <condition id="Arm-2D">
[all …]
/lvgl-latest/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
153 int16_t id = ids[i]; in lv_draw_mask_apply_ids() local
154 if(id == LV_MASK_ID_INV) continue; in lv_draw_mask_apply_ids()
155 dsc = LV_GC_ROOT(_lv_draw_mask_list[id]).param; in lv_draw_mask_apply_ids()
167 * Remove a mask with a given ID
168 * @param id the ID of the mask. Returned by `lv_draw_mask_add`
170 * If more masks have `custom_id` ID then the last mask's parameter will be returned
172 void * lv_draw_mask_remove_id(int16_t id) in lv_draw_mask_remove_id() argument
[all …]
Dlv_draw_mask.h221 * @return the an integer, the ID of the mask. Can be used in `lv_draw_mask_remove_id`.
247 * @param ids ID array of added buffers
248 * @param ids_count number of ID array
261 * Remove a mask with a given ID
262 * @param id the ID of the mask. Returned by `lv_draw_mask_add`
264 * If more masks have `custom_id` ID then the last mask's parameter will be returned
266 void * lv_draw_mask_remove_id(int16_t id);
269 * Remove all mask with a given custom ID
272 * If more masks have `custom_id` ID then the last mask's parameter will be returned
Dlv_img_buf.c265 void lv_img_buf_set_palette(const lv_img_dsc_t * dsc, uint8_t id, lv_color_t c) in lv_img_buf_set_palette() argument
267 …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()
268 … (dsc->header.cf == LV_IMG_CF_ALPHA_4BIT && id > 15) || (dsc->header.cf == LV_IMG_CF_ALPHA_8BIT)) { in lv_img_buf_set_palette()
269 LV_LOG_WARN("lv_img_buf_set_px_alpha: invalid 'id'"); in lv_img_buf_set_palette()
276 lv_memcpy_small(&buf[id * sizeof(c32)], &c32, sizeof(c32)); in lv_img_buf_set_palette()
/lvgl-latest/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-latest/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_2.c14 if(dsc->id == 1) { in event_cb()
16 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb()
25 else if(dsc->id == 2) { in event_cb()
27 …if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) dsc->rect_dsc->bg_color = lv_palette_darken(LV_… in event_cb()
32 else if(dsc->id == 3) { in event_cb()
44 if(dsc->id == 3) { in event_cb()
59 … 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-latest/docs/_static/js/
Dcustom.js6 if(dt.id == document.location.hash.substring(1))
48 // Check if the child has an id
49 if (child.id) {
50 // Prepend 'docs-' to the id
51 child.id = 'docs-' + child.id;
/lvgl-latest/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-latest/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-latest/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.c17 int32_t id = lv_chart_get_pressed_point(chart); in event_cb() local
18 if(id == LV_CHART_POINT_NONE) return; in event_cb()
20 LV_LOG_USER("Selected point %d", (int)id); in event_cb()
25 lv_chart_get_point_pos_by_id(chart, ser, id, &p); in event_cb()
28 lv_coord_t value = y_array[id]; in event_cb()
/lvgl-latest/src/extra/widgets/calendar/
Dlv_calendar.c296 if(dsc->id < 7) { in draw_part_begin_event_cb()
300 else if(lv_btnmatrix_has_btn_ctrl(obj, dsc->id, LV_BTNMATRIX_CTRL_DISABLED)) { in draw_part_begin_event_cb()
306 if(lv_btnmatrix_has_btn_ctrl(obj, dsc->id, LV_CALENDAR_CTRL_HIGHLIGHT)) { in draw_part_begin_event_cb()
309 if(lv_btnmatrix_get_selected_btn(obj) == dsc->id) { in draw_part_begin_event_cb()
314 if(lv_btnmatrix_has_btn_ctrl(obj, dsc->id, LV_CALENDAR_CTRL_TODAY)) { in draw_part_begin_event_cb()

123456