Home
last modified time | relevance | path

Searched refs:top_num (Results 1 – 1 of 1) sorted by relevance

/lvgl-latest/examples/scroll/
Dlv_example_scroll_7.c6 static int32_t top_num; variable
27 int32_t top_num_original = top_num; in update_scroll()
37 while(top_num < 30 && lv_obj_get_scroll_top(obj) < 200) { in update_scroll()
38 top_num += 1; in update_scroll()
40 lv_obj_t * new_item = load_item(obj, top_num); in update_scroll()
45 LV_LOG_USER("loaded top num: %"PRId32, top_num); in update_scroll()
57 top_num -= 1; in update_scroll()
64 LV_LOG_USER("deleted top num: %"PRId32, top_num); in update_scroll()
67 if(top_num != top_num_original) { in update_scroll()
68 lv_label_set_text_fmt(high_label, "current largest\nloaded value:\n%"PRId32, top_num); in update_scroll()
[all …]