Home
last modified time | relevance | path

Searched refs:scr (Results 1 – 25 of 35) sorted by relevance

12

/lvgl-latest/demos/benchmark/
Dlv_demo_benchmark.c134 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()
[all …]
/lvgl-latest/tests/src/test_cases/xml/
Dtest_xml_slider.c19 lv_obj_t * scr = lv_screen_active(); in test_with_attrs() local
21 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_COLUMN); in test_with_attrs()
22 …lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER); in test_with_attrs()
24 lv_xml_create(scr, name, NULL); in test_with_attrs()
32 lv_xml_create(scr, name, attrs_1); in test_with_attrs()
42 lv_xml_create(scr, name, attrs_2); in test_with_attrs()
52 lv_xml_create(scr, name, attrs_3); in test_with_attrs()
Dtest_xml_image.c21 lv_obj_t * scr = lv_screen_active(); in test_xml_tabview_with_attrs() local
33 lv_xml_create(scr, "lv_image", image1_attrs); in test_xml_tabview_with_attrs()
47 lv_xml_create(scr, "lv_image", image2_attrs); in test_xml_tabview_with_attrs()
Dtest_xml_dropdown.c19 lv_obj_t * scr = lv_screen_active(); in test_xml_tabview_with_attrs() local
29 lv_obj_t * dropdown = lv_xml_create(scr, "lv_dropdown", dropdown_attrs); in test_xml_tabview_with_attrs()
Dtest_xml_table.c19 lv_obj_t * scr = lv_screen_active(); in test_xml_table_with_attrs() local
27 lv_obj_t * table = lv_xml_create(scr, "lv_table", table_attrs); in test_xml_table_with_attrs()
Dtest_xml_chart.c19 lv_obj_t * scr = lv_screen_active(); in test_xml_chart_with_attrs() local
29 lv_obj_t * chart = lv_xml_create(scr, "lv_chart", chart_attrs); in test_xml_chart_with_attrs()
Dtest_xml_tabview.c19 lv_obj_t * scr = lv_screen_active(); in test_xml_tabview_with_attrs() local
29 lv_obj_t * tabview = lv_xml_create(scr, "lv_tabview", tabview_attrs); in test_xml_tabview_with_attrs()
/lvgl-latest/examples/scroll/
Dlv_example_scroll_1.c47 lv_obj_t * scr; in lv_example_scroll_1() local
48 scr = lv_screen_active(); in lv_example_scroll_1()
49 panel = lv_obj_create(scr); in lv_example_scroll_1()
88 save_button = lv_button_create(scr); in lv_example_scroll_1()
89 restore_button = lv_button_create(scr); in lv_example_scroll_1()
Dlv_example_scroll_7.c96 lv_obj_t * scr = lv_screen_active(); in lv_example_scroll_7() local
97 lv_obj_t * obj = lv_obj_create(scr); in lv_example_scroll_7()
103 high_label = lv_label_create(scr); in lv_example_scroll_7()
107 lv_obj_t * checkbox = lv_checkbox_create(scr); in lv_example_scroll_7()
112 low_label = lv_label_create(scr); in lv_example_scroll_7()
/lvgl-latest/tests/src/test_cases/
Dtest_bindings.c51 lv_obj_t * scr = lv_screen_active(); in create_ui() local
56 lv_obj_set_grid_dsc_array(scr, gird_cols, gird_rows); in create_ui()
62 lv_obj_t * dropdown = lv_dropdown_create(scr); in create_ui()
88 lv_obj_t * label = lv_label_create(scr); in create_ui()
108 lv_obj_t * btnmatrix = lv_buttonmatrix_create(scr); in create_ui()
121 lv_obj_t * cont = lv_obj_create(scr); in create_ui()
175 lv_obj_t * canvas = lv_canvas_create(scr); in create_ui()
184 img = lv_image_create(scr); in create_ui()
189 img = lv_image_create(scr); in create_ui()
Dtest_font_loader.c76 lv_obj_t * scr = lv_screen_active(); in common() local
77 lv_obj_t * label1 = lv_label_create(scr); in common()
78 lv_obj_t * label2 = lv_label_create(scr); in common()
79 lv_obj_t * label3 = lv_label_create(scr); in common()
81 lv_obj_set_flex_flow(scr, LV_FLEX_FLOW_COLUMN); in common()
82 lv_obj_set_flex_align(scr, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER); in common()
151 lv_obj_t * scr = lv_screen_active(); in test_font_loader_reload() local
152 lv_obj_t * label = lv_label_create(scr); in test_font_loader_reload()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_switch.c13 lv_obj_t * scr = NULL; variable
19 scr = lv_screen_active(); in setUp()
20 sw = lv_switch_create(scr); in setUp()
59 switches[idx] = lv_switch_create(scr); in test_switch_should_not_leak_memory_after_deletion()
141 lv_obj_clean(scr); in test_screeshots()
Dtest_table.c7 static lv_obj_t * scr = NULL; variable
12 scr = lv_screen_active(); in setUp()
13 table = lv_table_create(scr); in setUp()
/lvgl-latest/tests/micropy_test/
Dmicropy.py114 scr = lv.screen_active()
116 scr.add_event_cb(event_callback, lv.EVENT.CLICKED, None)
118 scr.send_event(lv.EVENT.CLICKED, None)
144 scr = lv.screen_active()
149 scr.set_grid_dsc_array(gird_cols, gird_rows)
155 dropdown = lv.dropdown(scr)
193 label = lv.label(scr)
208 btnmatrix = lv.buttonmatrix(scr)
232 cont = lv.obj(scr)
282 canvas = lv.canvas(scr)
[all …]
/lvgl-latest/src/themes/simple/
Dlv_theme_simple.c37 lv_style_t scr; member
84 style_init_reset(&theme->styles.scr); in style_init()
85 lv_style_set_bg_opa(&theme->styles.scr, LV_OPA_COVER); in style_init()
86 lv_style_set_bg_color(&theme->styles.scr, COLOR_SCR); in style_init()
87 lv_style_set_text_color(&theme->styles.scr, COLOR_DIM); in style_init()
213 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
222 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
227 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
376 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
409 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
/lvgl-latest/src/themes/mono/
Dlv_theme_mono.c39 lv_style_t scr; member
93 style_init_reset(&theme->styles.scr); in style_init()
94 lv_style_set_bg_opa(&theme->styles.scr, LV_OPA_COVER); in style_init()
95 lv_style_set_bg_color(&theme->styles.scr, COLOR_BG); in style_init()
96 lv_style_set_text_color(&theme->styles.scr, COLOR_FG); in style_init()
97 lv_style_set_pad_row(&theme->styles.scr, PAD_DEF); in style_init()
98 lv_style_set_pad_column(&theme->styles.scr, PAD_DEF); in style_init()
99 lv_style_set_text_font(&theme->styles.scr, font); in style_init()
240 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
503 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
/lvgl-latest/docs/details/base-widget/
Dlayer.rst36 lv_obj_t * scr = lv_obj_create(NULL);
37 lv_screen_load(scr); /* Load the screen */
40 lv_obj_t * btn1 = lv_button_create(scr); /* Create the first button on the screen */
43 lv_obj_t * btn2 = lv_button_create(scr); /* Create the second button on the screen */
Dscroll.rst251 lv_obj_t * scr = lv_event_get_target(e);
252 scroll_value = lv_obj_get_scroll_top(scr);
256 lv_obj_t * scr = lv_obj_create(NULL);
257 lv_obj_add_event_cb(scr, store_scroll_top_value_event_cb, LV_EVENT_SCROLL, NULL);
/lvgl-latest/src/display/
Dlv_display.c41 static void scr_load_internal(lv_obj_t * scr);
632 void lv_screen_load(struct _lv_obj_t * scr) in lv_screen_load() argument
634 lv_screen_load_anim(scr, LV_SCR_LOAD_ANIM_NONE, 0, 0, false); in lv_screen_load()
1143 static void scr_load_internal(lv_obj_t * scr) in scr_load_internal() argument
1146 LV_ASSERT_NULL(scr); in scr_load_internal()
1147 if(scr == NULL) return; in scr_load_internal()
1149 lv_display_t * d = lv_obj_get_display(scr); in scr_load_internal()
1155 lv_obj_send_event(scr, LV_EVENT_SCREEN_LOAD_START, NULL); in scr_load_internal()
1157 d->act_scr = scr; in scr_load_internal()
1160 lv_obj_send_event(scr, LV_EVENT_SCREEN_LOADED, NULL); in scr_load_internal()
[all …]
Dlv_display.h406 void lv_screen_load(struct _lv_obj_t * scr);
416 void lv_screen_load_anim(lv_obj_t * scr, lv_screen_load_anim_t anim_type, uint32_t time, uint32_t d…
/lvgl-latest/src/themes/default/
Dlv_theme_default.c51 lv_style_t scr; member
260 style_init_reset(&theme->styles.scr); in style_init()
261 lv_style_set_bg_opa(&theme->styles.scr, LV_OPA_COVER); in style_init()
262 lv_style_set_bg_color(&theme->styles.scr, theme->color_scr); in style_init()
263 lv_style_set_text_color(&theme->styles.scr, theme->color_text); in style_init()
264 lv_style_set_text_font(&theme->styles.scr, theme->base.font_normal); in style_init()
265 lv_style_set_pad_row(&theme->styles.scr, PAD_SMALL); in style_init()
266 lv_style_set_pad_column(&theme->styles.scr, PAD_SMALL); in style_init()
267 lv_style_set_rotary_sensitivity(&theme->styles.scr, theme->disp_dpi / 4 * 256); in style_init()
734 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply()
[all …]
/lvgl-latest/src/core/
Dlv_obj_tree.c305 const lv_obj_t * scr; in lv_obj_get_display() local
307 if(obj->parent == NULL) scr = obj; /*`obj` is a screen*/ in lv_obj_get_display()
308 else scr = lv_obj_get_screen(obj); /*get the screen of `obj`*/ in lv_obj_get_display()
315 if(d->screens[i] == scr) return d; in lv_obj_get_display()
Dlv_obj_pos.c287 lv_obj_t * scr = lv_obj_get_screen(obj); in lv_obj_mark_layout_as_dirty() local
288 scr->scr_layout_inv = 1; in lv_obj_mark_layout_as_dirty()
291 lv_display_t * disp = lv_obj_get_display(scr); in lv_obj_mark_layout_as_dirty()
304 lv_obj_t * scr = lv_obj_get_screen(obj); in lv_obj_update_layout() local
306 while(scr->scr_layout_inv) { in lv_obj_update_layout()
308 scr->scr_layout_inv = 0; in lv_obj_update_layout()
309 layout_update_core(scr); in lv_obj_update_layout()
/lvgl-latest/demos/render/
Dlv_demo_render.c1130 lv_obj_t * scr = lv_screen_active(); in lv_demo_render() local
1131 lv_obj_clean(scr); in lv_demo_render()
1132 lv_obj_remove_style_all(scr); in lv_demo_render()
1133 lv_obj_set_style_bg_opa(scr, LV_OPA_COVER, 0); in lv_demo_render()
1134 lv_obj_set_style_text_color(scr, lv_color_black(), 0); in lv_demo_render()
1135 lv_obj_set_style_bg_color(scr, lv_color_white(), 0); in lv_demo_render()
1137 lv_obj_t * main_parent = lv_obj_create(scr); in lv_demo_render()
/lvgl-latest/docs/details/integration/framework/
Dtasmota-berry.rst88 scr = lv.screen_active() # get default screen
89 btn = lv.btn(scr) # create button

12