Home
last modified time | relevance | path

Searched refs:lv_screen_active (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/lvgl-latest/tests/src/test_cases/xml/
Dtest_xml_general.c14 lv_obj_clean(lv_screen_active()); in tearDown()
20 lv_obj_set_style_pad_all(lv_screen_active(), 16, 0); in test_xml_widget_direct_create()
25 slider = lv_xml_create(lv_screen_active(), "lv_slider", NULL); in test_xml_widget_direct_create()
28 slider = lv_xml_create(lv_screen_active(), "lv_slider", NULL); in test_xml_widget_direct_create()
41 slider = lv_xml_create(lv_screen_active(), "lv_slider", attrs); in test_xml_widget_direct_create()
49 lv_obj_set_style_pad_all(lv_screen_active(), 16, 0); in test_xml_widget_create_from_component()
62 slider = lv_xml_create(lv_screen_active(), "red_slider", NULL); in test_xml_widget_create_from_component()
65 slider = lv_xml_create(lv_screen_active(), "red_slider", NULL); in test_xml_widget_create_from_component()
78 slider = lv_xml_create(lv_screen_active(), "red_slider", attrs); in test_xml_widget_create_from_component()
107 card = lv_xml_create(lv_screen_active(), "card", NULL); in test_xml_nesting()
[all …]
/lvgl-latest/tests/src/test_cases/libs/
Dtest_bmp.c15 lv_obj_clean(lv_screen_active()); in tearDown()
20 lv_obj_t * img = lv_image_create(lv_screen_active()); in create_image()
29 lv_obj_clean(lv_screen_active()); in test_bmp()
33 lv_obj_clean(lv_screen_active()); in test_bmp()
36 lv_obj_invalidate(lv_screen_active()); in test_bmp()
40 lv_obj_clean(lv_screen_active()); in test_bmp()
46 lv_obj_t * img = lv_image_create(lv_screen_active()); in create_image_tile()
57 lv_obj_clean(lv_screen_active()); in test_bmp_align_tile()
61 lv_obj_clean(lv_screen_active()); in test_bmp_align_tile()
64 lv_obj_invalidate(lv_screen_active()); in test_bmp_align_tile()
[all …]
Dtest_tjpgd.c15 lv_obj_clean(lv_screen_active()); in tearDown()
20 lv_obj_clean(lv_screen_active()); in create_images()
26 img = lv_image_create(lv_screen_active()); in create_images()
30 label = lv_label_create(lv_screen_active()); in create_images()
34 img = lv_image_create(lv_screen_active()); in create_images()
38 label = lv_label_create(lv_screen_active()); in create_images()
56 lv_obj_invalidate(lv_screen_active()); in test_tjpgd_1()
71 lv_obj_t * img = lv_image_create(lv_screen_active()); in create_image_2()
85 lv_obj_clean(lv_screen_active()); in test_jdpgd_align_tile()
89 lv_obj_clean(lv_screen_active()); in test_jdpgd_align_tile()
[all …]
Dtest_libjpeg_turbo.c20 lv_obj_clean(lv_screen_active()); in create_images()
25 img = lv_image_create(lv_screen_active()); in create_images()
29 label = lv_label_create(lv_screen_active()); in create_images()
33 img = lv_image_create(lv_screen_active()); in create_images()
37 label = lv_label_create(lv_screen_active()); in create_images()
41 img = lv_image_create(lv_screen_active()); in create_images()
45 label = lv_label_create(lv_screen_active()); in create_images()
49 img = lv_image_create(lv_screen_active()); in create_images()
53 label = lv_label_create(lv_screen_active()); in create_images()
71 lv_obj_invalidate(lv_screen_active()); in test_jpg_2()
Dtest_bin_decoder.c14 lv_obj_clean(lv_screen_active()); in tearDown()
19 lv_obj_t * img = lv_image_create(lv_screen_active()); in create_image()
28 lv_obj_clean(lv_screen_active()); in bin_decoder()
32 lv_obj_clean(lv_screen_active()); in bin_decoder()
35 lv_obj_invalidate(lv_screen_active()); in bin_decoder()
39 lv_obj_clean(lv_screen_active()); in bin_decoder()
45 lv_obj_t * img = lv_image_create(lv_screen_active()); in create_image_tile()
56 lv_obj_clean(lv_screen_active()); in bin_decoder_tile()
60 lv_obj_clean(lv_screen_active()); in bin_decoder_tile()
63 lv_obj_invalidate(lv_screen_active()); in bin_decoder_tile()
[all …]
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_obj_tree.c12 TEST_ASSERT_EQUAL(lv_obj_get_child_count(lv_screen_active()), 0); in test_obj_tree_1()
18 lv_obj_create(lv_screen_active()); in test_obj_tree_2()
19 lv_obj_t * o2 = lv_obj_create(lv_screen_active()); in test_obj_tree_2()
20 lv_obj_create(lv_screen_active()); in test_obj_tree_2()
21 TEST_ASSERT_EQUAL(lv_obj_get_child_count(lv_screen_active()), 3); in test_obj_tree_2()
24 TEST_ASSERT_EQUAL(lv_obj_get_child_count(lv_screen_active()), 2); in test_obj_tree_2()
26 lv_obj_clean(lv_screen_active()); in test_obj_tree_2()
27 TEST_ASSERT_EQUAL(lv_obj_get_child_count(lv_screen_active()), 0); in test_obj_tree_2()
33 lv_obj_remove_style_all(lv_screen_active()); in test_obj_tree_2()
34 lv_obj_set_style_bg_color(lv_screen_active(), lv_color_hex(0x112233), 0); in test_obj_tree_2()
[all …]
Dtest_dropdown.c17 lv_obj_clean(lv_screen_active()); in tearDown()
21 lv_dropdown_create(lv_screen_active()); in test_dropdown_create_delete()
22 TEST_ASSERT_EQUAL(2, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete()
24 lv_obj_t * dd2 = lv_dropdown_create(lv_screen_active()); in test_dropdown_create_delete()
26 TEST_ASSERT_EQUAL(4, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete()
29 TEST_ASSERT_EQUAL(4, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete()
32 TEST_ASSERT_EQUAL(4, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete()
34 lv_obj_t * dd3 = lv_dropdown_create(lv_screen_active()); in test_dropdown_create_delete()
36 TEST_ASSERT_EQUAL(6, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete()
38 TEST_ASSERT_EQUAL(6, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete()
[all …]
Dtest_lottie.c26 lv_obj_clean(lv_screen_active()); in tearDown()
31 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in test_lottie_simple()
56 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in test_lottie_load_from_file()
82 lv_obj_t * lottie1 = lv_lottie_create(lv_screen_active()); in test_lottie_missing_settings()
88 lv_obj_t * lottie2 = lv_lottie_create(lv_screen_active()); in test_lottie_missing_settings()
104 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in test_lottie_rescale()
124 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in test_lottie_non_uniform_shape()
139 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in test_lottie_memory_leak()
152 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in test_lottie_no_jump_when_visible_again()
Dtest_switch.c19 scr = lv_screen_active(); in setUp()
139 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_COLUMN); in test_screeshots()
140 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIG… in test_screeshots()
143 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
145 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
148 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
150 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
153 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
157 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
Dtest_checkbox.c32 active_screen = lv_screen_active(); in test_checkbox_creation_successful()
40 active_screen = lv_screen_active(); in test_checkbox_should_call_event_handler_on_click_when_enabled()
57 active_screen = lv_screen_active(); in test_checkbox_should_have_default_text_when_created()
68 active_screen = lv_screen_active(); in test_checkbox_should_return_dynamically_allocated_text()
85 active_screen = lv_screen_active(); in test_checkbox_should_allocate_memory_for_static_text()
103 lv_obj_t * screen = lv_obj_create(lv_screen_active()); in test_checkbox_rtl()
/lvgl-latest/tests/src/test_cases/draw/
Dtest_bg_image.c14 lv_obj_clean(lv_screen_active()); in tearDown()
19 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_ROW_WRAP); in test_func_1()
25 obj = lv_obj_create(lv_screen_active()); in test_func_1()
30 obj = lv_obj_create(lv_screen_active()); in test_func_1()
36 obj = lv_obj_create(lv_screen_active()); in test_func_1()
41 obj = lv_obj_create(lv_screen_active()); in test_func_1()
47 obj = lv_obj_create(lv_screen_active()); in test_func_1()
53 obj = lv_obj_create(lv_screen_active()); in test_func_1()
60 obj = lv_obj_create(lv_screen_active()); in test_func_1()
67 obj = lv_obj_create(lv_screen_active()); in test_func_1()
Dtest_draw_layer.c15 lv_obj_clean(lv_screen_active()); in tearDown()
21 lv_obj_t * obj = lv_obj_create(lv_screen_active()); in test_obj_create()
41 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_ROW); in test_draw_layer_bitmap_mask_from_variable()
42 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_CENTER, LV_FLE… in test_draw_layer_bitmap_mask_from_variable()
57 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_ROW); in test_draw_layer_bitmap_mask_from_image()
58 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_CENTER, LV_FLE… in test_draw_layer_bitmap_mask_from_image()
74 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_ROW); in test_draw_layer_bitmap_mask_from_image_not_found()
75 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_CENTER, LV_FLE… in test_draw_layer_bitmap_mask_from_image_not_found()
Dtest_clip_corner.c19 lv_obj_t * parent = lv_obj_create(lv_screen_active()); in create_panel()
47 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_ROW_WRAP); in test_clip_corner_1()
48 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIG… in test_clip_corner_1()
49 lv_obj_set_style_pad_column(lv_screen_active(), 40, 0); in test_clip_corner_1()
/lvgl-latest/examples/widgets/switch/
Dlv_example_switch_1.c16 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_COLUMN); in lv_example_switch_1()
17 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIG… in lv_example_switch_1()
21 sw = lv_switch_create(lv_screen_active()); in lv_example_switch_1()
25 sw = lv_switch_create(lv_screen_active()); in lv_example_switch_1()
29 sw = lv_switch_create(lv_screen_active()); in lv_example_switch_1()
33 sw = lv_switch_create(lv_screen_active()); in lv_example_switch_1()
Dlv_example_switch_2.c16 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_ROW); in lv_example_switch_2()
17 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIG… in lv_example_switch_2()
21 sw = lv_switch_create(lv_screen_active()); in lv_example_switch_2()
25 sw = lv_switch_create(lv_screen_active()); in lv_example_switch_2()
/lvgl-latest/examples/widgets/checkbox/
Dlv_example_checkbox_1.c20 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_COLUMN); in lv_example_checkbox_1()
21 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN… in lv_example_checkbox_1()
24 cb = lv_checkbox_create(lv_screen_active()); in lv_example_checkbox_1()
28 cb = lv_checkbox_create(lv_screen_active()); in lv_example_checkbox_1()
33 cb = lv_checkbox_create(lv_screen_active()); in lv_example_checkbox_1()
38 cb = lv_checkbox_create(lv_screen_active()); in lv_example_checkbox_1()
/lvgl-latest/tests/src/test_cases/
Dtest_snapshot.c24 snapshots[idx] = lv_snapshot_take(lv_screen_active(), LV_COLOR_FORMAT_NATIVE_WITH_ALPHA); in test_snapshot_should_not_leak_memory()
46 lv_obj_t * label = lv_label_create(lv_screen_active()); 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()
73 lv_obj_t * label = lv_label_create(lv_screen_active()); in test_snapshot_take_snapshot_immediately_after_obj_create()
78 lv_obj_t * img_obj = lv_image_create(lv_screen_active()); in test_snapshot_take_snapshot_immediately_after_obj_create()
97 lv_obj_t * label = lv_label_create(lv_screen_active()); in test_snapshot_take_snapshot_with_transform()
102 lv_draw_buf_t * draw_dsc = lv_snapshot_take(lv_screen_active(), LV_COLOR_FORMAT_ARGB8888); in test_snapshot_take_snapshot_with_transform()
106 lv_obj_t * img_obj = lv_image_create(lv_screen_active()); in test_snapshot_take_snapshot_with_transform()
Dtest_screen_load.c10 lv_obj_t * screen = lv_screen_active(); in test_screen_load_no_crash()
25 lv_obj_t * screen = lv_screen_active(); in test_screen_load_with_delete_no_crash()
44 TEST_ASSERT_EQUAL(lv_screen_active(), screen_with_anim_2); in test_screen_load_with_delete_no_crash()
57 lv_obj_t * screen = lv_screen_active(); in test_screen_load_with_delete_no_crash2()
78 TEST_ASSERT_EQUAL(lv_screen_active(), screen_with_anim_3); in test_screen_load_with_delete_no_crash2()
100 lv_obj_t * screen = lv_screen_active(); in test_screen_load_with_delete_event()
124 TEST_ASSERT_EQUAL(lv_screen_active(), screen_with_anim_3); in test_screen_load_with_delete_event()
/lvgl-latest/examples/others/xml/
Dlv_example_xml_2.c9 lv_obj_t * label = lv_label_create(lv_screen_active()); in lv_example_xml_2()
18 lv_obj_t * obj = lv_xml_create(lv_screen_active(), "view", NULL); in lv_example_xml_2()
31 lv_xml_create(lv_screen_active(), "my_button", my_button_attrs); in lv_example_xml_2()
41 lv_obj_t * slider = lv_xml_create(lv_screen_active(), "lv_slider", slider_attrs); in lv_example_xml_2()
/lvgl-latest/examples/widgets/bar/
Dlv_example_bar_5.c11 lv_obj_t * bar_ltr = lv_bar_create(lv_screen_active()); in lv_example_bar_5()
16 label = lv_label_create(lv_screen_active()); in lv_example_bar_5()
20 lv_obj_t * bar_rtl = lv_bar_create(lv_screen_active()); in lv_example_bar_5()
26 label = lv_label_create(lv_screen_active()); in lv_example_bar_5()
/lvgl-latest/examples/widgets/dropdown/
Dlv_example_dropdown_2.c15 dd = lv_dropdown_create(lv_screen_active()); in lv_example_dropdown_2()
19 dd = lv_dropdown_create(lv_screen_active()); in lv_example_dropdown_2()
25 dd = lv_dropdown_create(lv_screen_active()); in lv_example_dropdown_2()
31 dd = lv_dropdown_create(lv_screen_active()); in lv_example_dropdown_2()
/lvgl-latest/examples/widgets/textarea/
Dlv_example_textarea_2.c11 lv_obj_t * pwd_ta = lv_textarea_create(lv_screen_active()); in lv_example_textarea_2()
20 lv_obj_t * pwd_label = lv_label_create(lv_screen_active()); in lv_example_textarea_2()
25 lv_obj_t * text_ta = lv_textarea_create(lv_screen_active()); in lv_example_textarea_2()
33 lv_obj_t * oneline_label = lv_label_create(lv_screen_active()); in lv_example_textarea_2()
38 kb = lv_keyboard_create(lv_screen_active()); in lv_example_textarea_2()
/lvgl-latest/demos/benchmark/
Dlv_demo_benchmark.c89 color_anim(lv_screen_active()); in empty_screen_cb()
94 lv_obj_set_style_pad_all(lv_screen_active(), 0, 0); in moving_wallpaper_cb()
97 lv_obj_t * img = lv_image_create(lv_screen_active()); in moving_wallpaper_cb()
106 lv_obj_t * obj = lv_obj_create(lv_screen_active()); in single_rectangle_cb()
118 lv_obj_set_flex_flow(lv_screen_active(), LV_FLEX_FLOW_ROW_WRAP); in multiple_rectangles_cb()
119 …lv_obj_set_flex_align(lv_screen_active(), LV_FLEX_ALIGN_SPACE_EVENLY, LV_FLEX_ALIGN_CENTER, LV_FLE… in multiple_rectangles_cb()
123 lv_obj_t * obj = lv_obj_create(lv_screen_active()); in multiple_rectangles_cb()
134 lv_obj_t * scr = lv_screen_active(); in multiple_rgb_images_cb()
150 lv_obj_t * obj = lv_image_create(lv_screen_active()); in multiple_rgb_images_cb()
161 lv_obj_t * scr = lv_screen_active(); in multiple_argb_images_cb()
[all …]
/lvgl-latest/examples/get_started/
Dlv_example_get_started_1.c10 lv_obj_set_style_bg_color(lv_screen_active(), lv_color_hex(0x003a57), LV_PART_MAIN); in lv_example_get_started_1()
13 lv_obj_t * label = lv_label_create(lv_screen_active()); in lv_example_get_started_1()
15 lv_obj_set_style_text_color(lv_screen_active(), lv_color_hex(0xffffff), LV_PART_MAIN); in lv_example_get_started_1()
/lvgl-latest/demos/ebike/
Dlv_demo_ebike.c71 …lv_subject_add_observer_obj(&ebike_subject_language, language_observer_cb, lv_screen_active(), NUL… in lv_demo_ebike()
81 …lv_obj_set_flex_flow(lv_screen_active(), LV_DEMO_EBIKE_PORTRAIT ? LV_FLEX_FLOW_COLUMN : LV_FLEX_FL… in lv_demo_ebike()
82 lv_obj_remove_flag(lv_screen_active(), LV_OBJ_FLAG_SCROLLABLE); in lv_demo_ebike()
83 lv_obj_set_style_text_color(lv_screen_active(), lv_color_white(), 0); in lv_demo_ebike()
85 lv_obj_t * bg = lv_image_create(lv_screen_active()); in lv_demo_ebike()
96 lv_obj_set_style_bg_color(lv_screen_active(), lv_color_hex(0xffeeaa), 0); in lv_demo_ebike()
99 main_cont = lv_obj_create(lv_screen_active()); in lv_demo_ebike()
132 lv_obj_t * menu_cont = lv_obj_create(lv_screen_active()); in menu_bar_create()

12345678910>>...14