Lines Matching refs:section

118         lv_scale_section_t * section = lv_scale_add_section(scale);  in test_scale_render_example_2()  local
120 lv_scale_section_set_range(section, 75, 100); in test_scale_render_example_2()
121 lv_scale_section_set_style(section, LV_PART_INDICATOR, &section_label_style); in test_scale_render_example_2()
122 lv_scale_section_set_style(section, LV_PART_ITEMS, &section_minor_tick_style); in test_scale_render_example_2()
123 lv_scale_section_set_style(section, LV_PART_MAIN, &section_main_line_style); in test_scale_render_example_2()
236 lv_scale_section_t * section = lv_scale_add_section(scale); in test_scale_render_example_4() local
237 lv_scale_section_set_range(section, 75, 100); in test_scale_render_example_4()
238 lv_scale_section_set_style(section, LV_PART_INDICATOR, &section_label_style); in test_scale_render_example_4()
239 lv_scale_section_set_style(section, LV_PART_ITEMS, &section_minor_tick_style); in test_scale_render_example_4()
240 lv_scale_section_set_style(section, LV_PART_MAIN, &section_main_line_style); in test_scale_render_example_4()
323 lv_scale_section_t * section = lv_scale_add_section(scale); in test_scale_set_style() local
324 lv_scale_section_set_range(section, 75, 100); in test_scale_set_style()
326 lv_scale_section_set_style(section, LV_PART_MAIN, &section_main_line_style); in test_scale_set_style()
327 TEST_ASSERT_NOT_NULL(section->main_style); in test_scale_set_style()
328 TEST_ASSERT_NULL(section->indicator_style); in test_scale_set_style()
329 TEST_ASSERT_NULL(section->items_style); in test_scale_set_style()
331 TEST_ASSERT_EQUAL(section->main_style, &section_main_line_style); in test_scale_set_style()
333 lv_scale_section_set_style(section, LV_PART_INDICATOR, &section_label_style); in test_scale_set_style()
334 TEST_ASSERT_NOT_NULL(section->main_style); in test_scale_set_style()
335 TEST_ASSERT_NOT_NULL(section->indicator_style); in test_scale_set_style()
336 TEST_ASSERT_NULL(section->items_style); in test_scale_set_style()
338 TEST_ASSERT_EQUAL(section->main_style, &section_main_line_style); in test_scale_set_style()
339 TEST_ASSERT_EQUAL(section->indicator_style, &section_label_style); in test_scale_set_style()
341 lv_scale_section_set_style(section, LV_PART_ITEMS, &section_minor_tick_style); in test_scale_set_style()
342 TEST_ASSERT_NOT_NULL(section->main_style); in test_scale_set_style()
343 TEST_ASSERT_NOT_NULL(section->indicator_style); in test_scale_set_style()
344 TEST_ASSERT_NOT_NULL(section->items_style); in test_scale_set_style()
346 TEST_ASSERT_EQUAL(section->main_style, &section_main_line_style); in test_scale_set_style()
347 TEST_ASSERT_EQUAL(section->indicator_style, &section_label_style); in test_scale_set_style()
348 TEST_ASSERT_EQUAL(section->items_style, &section_minor_tick_style); in test_scale_set_style()
351 lv_scale_section_set_style(section, LV_PART_CURSOR, &section_minor_tick_style); in test_scale_set_style()
352 TEST_ASSERT_NOT_NULL(section->main_style); in test_scale_set_style()
353 TEST_ASSERT_NOT_NULL(section->indicator_style); in test_scale_set_style()
354 TEST_ASSERT_NOT_NULL(section->items_style); in test_scale_set_style()
356 TEST_ASSERT_EQUAL(section->main_style, &section_main_line_style); in test_scale_set_style()
357 TEST_ASSERT_EQUAL(section->indicator_style, &section_label_style); in test_scale_set_style()
358 TEST_ASSERT_EQUAL(section->items_style, &section_minor_tick_style); in test_scale_set_style()