/lvgl-latest/demos/benchmark/ |
D | lv_demo_benchmark.c | 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() [all …]
|
/lvgl-latest/tests/src/test_cases/xml/ |
D | test_xml_slider.c | 19 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()
|
D | test_xml_image.c | 21 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()
|
D | test_xml_dropdown.c | 19 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()
|
D | test_xml_table.c | 19 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()
|
D | test_xml_chart.c | 19 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()
|
D | test_xml_tabview.c | 19 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/ |
D | lv_example_scroll_1.c | 47 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()
|
D | lv_example_scroll_7.c | 96 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/ |
D | test_bindings.c | 51 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()
|
D | test_font_loader.c | 76 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/ |
D | test_switch.c | 13 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()
|
D | test_table.c | 7 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/ |
D | micropy.py | 114 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/ |
D | lv_theme_simple.c | 37 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/ |
D | lv_theme_mono.c | 39 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/ |
D | layer.rst | 36 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 */
|
D | scroll.rst | 251 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/ |
D | lv_display.c | 41 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 …]
|
D | lv_display.h | 406 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/ |
D | lv_theme_default.c | 51 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/ |
D | lv_obj_tree.c | 305 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()
|
D | lv_obj_pos.c | 287 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/ |
D | lv_demo_render.c | 1130 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/ |
D | tasmota-berry.rst | 88 scr = lv.screen_active() # get default screen 89 btn = lv.btn(scr) # create button
|