Lines Matching refs:scr
134 lv_obj_t * scr = lv_screen_active(); in multiple_rgb_images_cb() local
135 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in multiple_rgb_images_cb()
136 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in multiple_rgb_images_cb()
137 lv_obj_set_style_pad_bottom(scr, FALL_HEIGHT + PAD_BASIC, 0); in multiple_rgb_images_cb()
140 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 160; in multiple_rgb_images_cb()
141 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / 160; in multiple_rgb_images_cb()
161 lv_obj_t * scr = lv_screen_active(); in multiple_argb_images_cb() local
162 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in multiple_argb_images_cb()
163 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in multiple_argb_images_cb()
164 lv_obj_set_style_pad_bottom(scr, FALL_HEIGHT + PAD_BASIC, 0); in multiple_argb_images_cb()
167 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 160; in multiple_argb_images_cb()
168 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / 160; in multiple_argb_images_cb()
188 lv_obj_t * scr = lv_screen_active(); in rotated_argb_image_cb() local
189 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in rotated_argb_image_cb()
190 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in rotated_argb_image_cb()
191 lv_obj_set_style_pad_bottom(scr, FALL_HEIGHT + PAD_BASIC, 0); in rotated_argb_image_cb()
194 …int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 240; /*240 instead of 160 to have l… in rotated_argb_image_cb()
195 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / 240; in rotated_argb_image_cb()
216 lv_obj_t * scr = lv_screen_active(); in multiple_labels_cb() local
217 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in multiple_labels_cb()
218 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in multiple_labels_cb()
222 if(hor_res * ver_res > 800 * 480) lv_obj_set_style_text_font(scr, &lv_font_montserrat_26, 0); in multiple_labels_cb()
223 … else if(hor_res * ver_res > 320 * 240) lv_obj_set_style_text_font(scr, &lv_font_montserrat_20, 0); in multiple_labels_cb()
224 else lv_obj_set_style_text_font(scr, &lv_font_montserrat_14, 0); in multiple_labels_cb()
227 lv_text_get_size(&s, "Hello LVGL!", lv_obj_get_style_text_font(scr, 0), 0, 0, LV_COORD_MAX, in multiple_labels_cb()
230 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / (s.x * 3 / 2); in multiple_labels_cb()
231 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / (s.y * 3); in multiple_labels_cb()
259 lv_obj_t * scr = lv_screen_active(); in screen_sized_text_cb() local
262 if(hor_res * ver_res > 800 * 480) lv_obj_set_style_text_font(scr, &lv_font_montserrat_26, 0); in screen_sized_text_cb()
263 … else if(hor_res * ver_res > 320 * 240) lv_obj_set_style_text_font(scr, &lv_font_montserrat_20, 0); in screen_sized_text_cb()
264 else lv_obj_set_style_text_font(scr, &lv_font_montserrat_14, 0); in screen_sized_text_cb()
266 lv_obj_t * obj = lv_label_create(scr); in screen_sized_text_cb()
272 scroll_anim(scr, lv_obj_get_scroll_bottom(scr)); in screen_sized_text_cb()
277 lv_obj_t * scr = lv_screen_active(); in multiple_arcs_cb() local
278 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in multiple_arcs_cb()
279 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in multiple_arcs_cb()
283 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 160; in multiple_arcs_cb()
284 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / 160; in multiple_arcs_cb()
313 lv_obj_t * scr = lv_screen_active(); in containers_cb() local
314 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in containers_cb()
315 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in containers_cb()
316 lv_obj_set_style_pad_bottom(scr, FALL_HEIGHT + PAD_BASIC, 0); in containers_cb()
318 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 350; in containers_cb()
319 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / 170; in containers_cb()
337 lv_obj_t * scr = lv_screen_active(); in containers_with_overlay_cb() local
338 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in containers_with_overlay_cb()
339 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in containers_with_overlay_cb()
340 lv_obj_set_style_pad_bottom(scr, FALL_HEIGHT + PAD_BASIC, 0); in containers_with_overlay_cb()
342 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 350; in containers_with_overlay_cb()
343 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / 170; in containers_with_overlay_cb()
364 lv_obj_t * scr = lv_screen_active(); in containers_with_opa_cb() local
365 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in containers_with_opa_cb()
366 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in containers_with_opa_cb()
367 lv_obj_set_style_pad_bottom(scr, FALL_HEIGHT + PAD_BASIC, 0); in containers_with_opa_cb()
369 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 350; in containers_with_opa_cb()
370 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / 170; in containers_with_opa_cb()
389 lv_obj_t * scr = lv_screen_active(); in containers_with_opa_layer_cb() local
390 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in containers_with_opa_layer_cb()
391 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_SPACE_EV… in containers_with_opa_layer_cb()
392 lv_obj_set_style_pad_bottom(scr, FALL_HEIGHT + PAD_BASIC, 0); in containers_with_opa_layer_cb()
394 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 350; in containers_with_opa_layer_cb()
395 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / 170; in containers_with_opa_layer_cb()
414 lv_obj_t * scr = lv_screen_active(); in containers_with_scrolling_cb() local
415 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_ROW_WRAP); in containers_with_scrolling_cb()
416 … lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_START); in containers_with_scrolling_cb()
417 lv_obj_set_style_pad_row(scr, 32, 0); in containers_with_scrolling_cb()
419 int32_t hor_cnt = ((int32_t)lv_obj_get_content_width(scr)) / 400; in containers_with_scrolling_cb()
420 int32_t ver_cnt = ((int32_t)lv_obj_get_content_height(scr)) / (120 + 32); in containers_with_scrolling_cb()
437 lv_obj_update_layout(scr); in containers_with_scrolling_cb()
438 scroll_anim(scr, lv_obj_get_scroll_bottom(scr)); in containers_with_scrolling_cb()
443 lv_obj_t * scr = lv_screen_active(); in widgets_demo_cb() local
444 lv_obj_set_style_pad_hor(scr, 0, 0); in widgets_demo_cb()
445 lv_obj_set_style_pad_bottom(scr, 0, 0); in widgets_demo_cb()
493 lv_obj_t * scr = lv_screen_active(); in lv_demo_benchmark() local
494 lv_obj_remove_style_all(scr); in lv_demo_benchmark()
495 lv_obj_set_style_bg_opa(scr, LV_OPA_COVER, 0); in lv_demo_benchmark()
496 lv_obj_set_style_text_color(scr, lv_color_black(), 0); in lv_demo_benchmark()
497 lv_obj_set_style_bg_color(scr, lv_palette_lighten(LV_PALETTE_GREY, 4), 0); in lv_demo_benchmark()
526 lv_obj_t * scr = lv_screen_active(); in load_scene() local
527 lv_obj_clean(scr); in load_scene()
528 lv_obj_set_style_bg_color(scr, lv_palette_lighten(LV_PALETTE_GREY, 4), 0); in load_scene()
529 lv_obj_set_style_text_color(scr, lv_color_black(), 0); in load_scene()
530 lv_obj_set_style_text_font(scr, LV_FONT_DEFAULT, 0); in load_scene()
531 lv_obj_set_style_pad_all(scr, PAD_BASIC, 0); in load_scene()
532 lv_obj_set_style_pad_gap(scr, PAD_BASIC, 0); in load_scene()
533 lv_obj_set_style_pad_top(scr, HEADER_HEIGHT, 0); in load_scene()
534 lv_obj_set_layout(scr, LV_LAYOUT_NONE); in load_scene()
537 lv_anim_delete(scr, scroll_anim_y_cb); in load_scene()
538 lv_anim_delete(scr, shake_anim_y_cb); in load_scene()
539 lv_anim_delete(scr, color_anim_cb); in load_scene()