Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 54) sorted by relevance

123

/lvgl-latest/tests/src/test_cases/
Dtest_snapshot.c13 uint32_t idx = 0; in test_snapshot_should_not_leak_memory() local
23 for(idx = 0; idx < NUM_SNAPSHOTS; idx++) { in test_snapshot_should_not_leak_memory()
24 snapshots[idx] = lv_snapshot_take(lv_screen_active(), LV_COLOR_FORMAT_NATIVE_WITH_ALPHA); in test_snapshot_should_not_leak_memory()
25 TEST_ASSERT_NOT_NULL(snapshots[idx]); in test_snapshot_should_not_leak_memory()
28 for(idx = 0; idx < NUM_SNAPSHOTS; idx++) { in test_snapshot_should_not_leak_memory()
29 lv_draw_buf_destroy(snapshots[idx]); in test_snapshot_should_not_leak_memory()
40 uint32_t idx = 0; in test_snapshot_with_transform_should_not_leak_memory() local
55 for(idx = 0; idx < NUM_SNAPSHOTS; idx++) { in test_snapshot_with_transform_should_not_leak_memory()
56 snapshots[idx] = lv_snapshot_take(lv_screen_active(), LV_COLOR_FORMAT_NATIVE_WITH_ALPHA); in test_snapshot_with_transform_should_not_leak_memory()
57 TEST_ASSERT_NOT_NULL(snapshots[idx]); in test_snapshot_with_transform_should_not_leak_memory()
[all …]
Dtest_bindings.c209 uint32_t idx = lv_buttonmatrix_get_selected_button(buttonmatrix); in buttonmatrix_event_cb() local
210 const char * text = lv_buttonmatrix_get_button_text(buttonmatrix, idx); in buttonmatrix_event_cb()
220 uint32_t idx = lv_obj_get_index(btn); in list_button_create() local
224 lv_label_set_text_fmt(label, LV_SYMBOL_FILE " Item %d", idx); in list_button_create()
/lvgl-latest/src/libs/thorvg/
DtvgSwMemPool.cpp38 SwOutline* mpoolReqOutline(SwMpool* mpool, unsigned idx) in mpoolReqOutline() argument
40 return &mpool->outline[idx]; in mpoolReqOutline()
44 void mpoolRetOutline(SwMpool* mpool, unsigned idx) in mpoolRetOutline() argument
46 mpool->outline[idx].pts.clear(); in mpoolRetOutline()
47 mpool->outline[idx].cntrs.clear(); in mpoolRetOutline()
48 mpool->outline[idx].types.clear(); in mpoolRetOutline()
49 mpool->outline[idx].closed.clear(); in mpoolRetOutline()
53 SwOutline* mpoolReqStrokeOutline(SwMpool* mpool, unsigned idx) in mpoolReqStrokeOutline() argument
55 return &mpool->strokeOutline[idx]; in mpoolReqStrokeOutline()
59 void mpoolRetStrokeOutline(SwMpool* mpool, unsigned idx) in mpoolRetStrokeOutline() argument
[all …]
DtvgSvgUtil.cpp55 int idx =0; in svgUtilURLDecode() local
60 decoded[idx++] = (_hexCharToDec(a) << 4) + _hexCharToDec(b); in svgUtilURLDecode()
63 decoded[idx++] = ' '; in svgUtilURLDecode()
66 decoded[idx++] = *src++; in svgUtilURLDecode()
69 decoded[idx] = '\0'; in svgUtilURLDecode()
72 return idx + 1; in svgUtilURLDecode()
DtvgArray.h87 const T& operator[](size_t idx) const
89 return data[idx];
92 T& operator[](size_t idx)
94 return data[idx];
DtvgSwPostEffect.cpp54 static int _gaussianRemap(int end, int idx, int border) in _gaussianRemap() argument
57 if (border == 1) return idx % end; in _gaussianRemap()
60 if (idx < 0) return 0; in _gaussianRemap()
61 else if (idx >= end) return end - 1; in _gaussianRemap()
62 return idx; in _gaussianRemap()
DtvgLottieAnimation.cpp80 const char* LottieAnimation::marker(uint32_t idx) noexcept in marker() argument
84 return static_cast<LottieLoader*>(loader)->markers(idx); in marker()
DtvgCompressor.cpp452 size_t idx = 0; in b64Decode() local
462 output[idx++] = (value1 << 2) + ((value2 & 0x30) >> 4); in b64Decode()
466 output[idx++] = ((value2 & 0x0f) << 4) + ((value3 & 0x3c) >> 2); in b64Decode()
470 output[idx++] = ((value3 & 0x03) << 6) + value4; in b64Decode()
474 return idx; in b64Decode()
DtvgLottieLoader.cpp307 auto idx = 0; in override() local
308 while (auto sid = parser.sid(idx == 0)) { in override()
314 ++idx; in override()
317 if (idx < 1) success = false; in override()
Dthorvg_lottie.h83 const char* marker(uint32_t idx) noexcept;
/lvgl-latest/src/stdlib/builtin/
Dlv_sprintf_builtin.c121 typedef void (*out_fct_type)(char character, void * buffer, size_t idx, size_t maxlen);
130 static inline void _out_buffer(char character, void * buffer, size_t idx, size_t maxlen) in _out_buffer() argument
132 if(idx < maxlen) { in _out_buffer()
133 ((char *)buffer)[idx] = character; in _out_buffer()
138 static inline void _out_null(char character, void * buffer, size_t idx, size_t maxlen) in _out_null() argument
142 LV_UNUSED(idx); in _out_null()
173 static size_t _out_rev(out_fct_type out, char * buffer, size_t idx, size_t maxlen, const char * buf… in _out_rev() argument
176 const size_t start_idx = idx; in _out_rev()
182 out(' ', buffer, idx++, maxlen); in _out_rev()
188 out(buf[--len], buffer, idx++, maxlen); in _out_rev()
[all …]
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_switch.c52 size_t idx = 0; in test_switch_should_not_leak_memory_after_deletion() local
58 for(idx = 0; idx < SWITCHES_CNT; idx++) { in test_switch_should_not_leak_memory_after_deletion()
59 switches[idx] = lv_switch_create(scr); in test_switch_should_not_leak_memory_after_deletion()
62 for(idx = 0; idx < SWITCHES_CNT; idx++) { in test_switch_should_not_leak_memory_after_deletion()
63 lv_obj_delete(switches[idx]); in test_switch_should_not_leak_memory_after_deletion()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_arc.c433 int idx = *pidx; in _add_split_arc_path() local
436 arc_path[idx++] = VLC_OP_LINE; in _add_split_arc_path()
437 arc_path[idx++] = q_arc->p1x + center->x; in _add_split_arc_path()
438 arc_path[idx++] = q_arc->p1y + center->y; in _add_split_arc_path()
439 arc_path[idx++] = VLC_OP_LINE; in _add_split_arc_path()
440 arc_path[idx++] = q_arc->p2x + center->x; in _add_split_arc_path()
441 arc_path[idx++] = q_arc->p2y + center->y; in _add_split_arc_path()
442 arc_path[idx++] = VLC_OP_LINE; in _add_split_arc_path()
443 arc_path[idx++] = q_arc->p3x + center->x; in _add_split_arc_path()
444 arc_path[idx++] = q_arc->p3y + center->y; in _add_split_arc_path()
[all …]
Dlv_draw_vglite_layer.c114 uint32_t idx = 0; in lv_draw_vglite_layer() local
118 idx++; in lv_draw_vglite_layer()
123 fill_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in lv_draw_vglite_layer()
129 border_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in lv_draw_vglite_layer()
148 lv_snprintf(buf, sizeof(buf), "%d", idx); in lv_draw_vglite_layer()
/lvgl-latest/src/core/
Dlv_obj_tree.c331 lv_obj_t * lv_obj_get_child(const lv_obj_t * obj, int32_t idx) in lv_obj_get_child() argument
338 if(idx < 0) { in lv_obj_get_child()
339 idx = obj->spec_attr->child_cnt + idx; in lv_obj_get_child()
340 if(idx < 0) return NULL; in lv_obj_get_child()
341 idu = (uint32_t) idx; in lv_obj_get_child()
344 idu = idx; in lv_obj_get_child()
348 else return obj->spec_attr->children[idx]; in lv_obj_get_child()
351 lv_obj_t * lv_obj_get_child_by_type(const lv_obj_t * obj, int32_t idx, const lv_obj_class_t * class… in lv_obj_get_child_by_type() argument
359 if(idx >= 0) { in lv_obj_get_child_by_type()
362 if(idx == 0) return obj->spec_attr->children[i]; in lv_obj_get_child_by_type()
[all …]
Dlv_obj_tree.h135 lv_obj_t * lv_obj_get_child(const lv_obj_t * obj, int32_t idx);
149 lv_obj_t * lv_obj_get_child_by_type(const lv_obj_t * obj, int32_t idx,
163 lv_obj_t * lv_obj_get_sibling(const lv_obj_t * obj, int32_t idx);
177 lv_obj_t * lv_obj_get_sibling_by_type(const lv_obj_t * obj, int32_t idx,
/lvgl-latest/src/widgets/tabview/
Dlv_tabview.c100 void lv_tabview_rename_tab(lv_obj_t * obj, uint32_t idx, const char * new_name) in lv_tabview_rename_tab() argument
105 lv_obj_t * button = lv_obj_get_child_by_type(tab_bar, idx, &lv_button_class); in lv_tabview_rename_tab()
110 void lv_tabview_set_active(lv_obj_t * obj, uint32_t idx, lv_anim_enable_t anim_en) in lv_tabview_set_active() argument
115 tabview->tab_cur = idx; in lv_tabview_set_active()
121 if(idx >= tab_cnt) return; in lv_tabview_set_active()
132 lv_obj_scroll_to_x(cont, idx * (gap + w), anim_en); in lv_tabview_set_active()
135 int32_t id_rtl = -(int32_t)idx; in lv_tabview_set_active()
142 lv_obj_scroll_to_y(cont, idx * (gap + h), anim_en); in lv_tabview_set_active()
148 lv_obj_set_state(button, LV_STATE_CHECKED, i == idx); in lv_tabview_set_active()
307 int32_t idx = lv_obj_get_index_by_type(button, &lv_button_class); in button_clicked_event_cb() local
[all …]
Dlv_tabview.h52 void lv_tabview_rename_tab(lv_obj_t * obj, uint32_t idx, const char * new_name);
60 void lv_tabview_set_active(lv_obj_t * obj, uint32_t idx, lv_anim_enable_t anim_en);
/lvgl-latest/src/draw/nxp/pxp/
Dlv_draw_pxp_layer.c114 uint32_t idx = 0; in lv_draw_pxp_layer() local
118 idx++; in lv_draw_pxp_layer()
123 fill_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in lv_draw_pxp_layer()
129 border_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in lv_draw_pxp_layer()
148 lv_snprintf(buf, sizeof(buf), "%d", idx); in lv_draw_pxp_layer()
/lvgl-latest/src/widgets/animimage/
Dlv_animimage.c40 static void index_change(lv_obj_t * obj, int32_t idx);
203 static void index_change(lv_obj_t * obj, int32_t idx) in index_change() argument
212 if(idx >= animimg->pic_count) idx = animimg->pic_count - 1; in index_change()
214 lv_image_set_src(obj, animimg->dsc[idx]); in index_change()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw.c83 draw_sw_unit->idx = i; in lv_draw_sw_init()
303 int32_t idx = 0; in execute_drawing() local
307 idx++; in execute_drawing()
311 fill_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in execute_drawing()
317 border_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in execute_drawing()
336 lv_snprintf(buf, sizeof(buf), "%d", idx); in execute_drawing()
Dlv_draw_sw_private.h43 uint32_t idx; member
/lvgl-latest/examples/others/observer/
Dlv_example_observer_4.c169 uint32_t idx = lv_obj_get_index(btn); in btn_click_event_cb() local
170 lv_subject_set_int(&current_tab_subject, idx); in btn_click_event_cb()
179 int32_t idx = (int32_t)lv_obj_get_index(btn); in btn_observer_cb() local
181 if(idx == prev_v) lv_obj_remove_state(btn, LV_STATE_CHECKED); in btn_observer_cb()
182 if(idx == cur_v) lv_obj_add_state(btn, LV_STATE_CHECKED); in btn_observer_cb()
/lvgl-latest/demos/ebike/
Dlv_demo_ebike.c180 uint32_t idx = lv_obj_get_index(icon); in menu_item_click_event_cb() local
186 lv_obj_set_style_image_opa(lv_obj_get_child(menu_cont, idx), LV_OPA_100, 0); in menu_item_click_event_cb()
187 switch(idx) { in menu_item_click_event_cb()
/lvgl-latest/tests/src/test_cases/draw/
Dtest_draw_blend.c92 const char * name_sub, lv_color_format_t small_render_cf, uint32_t idx) in canvas_blend_test() argument
100 area.x1 = (idx % 2) * 380 + 10; in canvas_blend_test()
102 area.y1 = (idx / 2) * 190 + 10; in canvas_blend_test()

123