/lvgl-latest/demos/stress/ |
D | lv_demo_stress.c | 23 static void auto_delete(lv_obj_t * obj, uint32_t delay); 25 static void set_y_anim(void * obj, int32_t v); 26 static void set_width_anim(void * obj, int32_t v); 27 static void arc_set_end_angle_anim(void * obj, int32_t v); 67 lv_obj_t * obj; in obj_test_task_cb() local 90 obj = lv_button_create(main_page); in obj_test_task_cb() 91 lv_obj_set_size(obj, 100, 70); in obj_test_task_cb() 92 obj = lv_label_create(obj); in obj_test_task_cb() 93 lv_label_set_text(obj, "Multi line\n"LV_SYMBOL_OK LV_SYMBOL_CLOSE LV_SYMBOL_WIFI); in obj_test_task_cb() 97 obj = lv_tabview_create(lv_screen_active()); in obj_test_task_cb() [all …]
|
/lvgl-latest/tests/src/test_cases/draw/ |
D | test_bg_image.c | 22 lv_obj_t * obj; in test_func_1() local 25 obj = lv_obj_create(lv_screen_active()); in test_func_1() 26 lv_obj_set_size(obj, 60, 40); in test_func_1() 27 lv_obj_set_style_bg_image_src(obj, &test_RGB565_RLE_align64, 0); in test_func_1() 28 lv_obj_set_style_radius(obj, 0, 0); in test_func_1() 30 obj = lv_obj_create(lv_screen_active()); in test_func_1() 31 lv_obj_set_size(obj, 60, 40); in test_func_1() 32 lv_obj_set_style_bg_image_src(obj, &test_RGB565_RLE_align64, 0); in test_func_1() 33 lv_obj_set_style_radius(obj, 20, 0); in test_func_1() 36 obj = lv_obj_create(lv_screen_active()); in test_func_1() [all …]
|
/lvgl-latest/src/core/ |
D | lv_obj_pos.c | 33 static int32_t calc_content_width(lv_obj_t * obj); 34 static int32_t calc_content_height(lv_obj_t * obj); 35 static void layout_update_core(lv_obj_t * obj); 36 static void transform_point_array(const lv_obj_t * obj, lv_point_t * p, size_t p_count, bool inv); 37 static bool is_transformed(const lv_obj_t * obj); 51 void lv_obj_set_pos(lv_obj_t * obj, int32_t x, int32_t y) in lv_obj_set_pos() argument 53 LV_ASSERT_OBJ(obj, MY_CLASS); in lv_obj_set_pos() 55 lv_obj_set_x(obj, x); in lv_obj_set_pos() 56 lv_obj_set_y(obj, y); in lv_obj_set_pos() 59 void lv_obj_set_x(lv_obj_t * obj, int32_t x) in lv_obj_set_x() argument [all …]
|
D | lv_obj.c | 45 static void lv_obj_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 46 static void lv_obj_destructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 49 static void draw_scrollbar(lv_obj_t * obj, lv_layer_t * layer); 50 static lv_result_t scrollbar_init_draw_dsc(lv_obj_t * obj, lv_draw_rect_dsc_t * dsc); 52 static void update_obj_state(lv_obj_t * obj, lv_state_t new_state); 216 lv_obj_t * obj = lv_obj_class_create_obj(MY_CLASS, parent); in lv_obj_create() local 217 LV_ASSERT_NULL(obj); in lv_obj_create() 218 if(obj == NULL) return NULL; in lv_obj_create() 219 lv_obj_class_init_obj(obj); in lv_obj_create() 220 return obj; in lv_obj_create() [all …]
|
D | lv_obj_tree.c | 34 static void lv_obj_delete_async_cb(void * obj); 35 static void obj_delete_core(lv_obj_t * obj); 36 static lv_obj_tree_walk_res_t walk_core(lv_obj_t * obj, lv_obj_tree_walk_cb_t cb, void * user_data); 37 static void dump_tree_core(lv_obj_t * obj, int32_t depth); 38 static lv_obj_t * lv_obj_get_first_not_deleting_child(lv_obj_t * obj); 52 void lv_obj_delete(lv_obj_t * obj) in lv_obj_delete() argument 54 if(obj->is_deleting) in lv_obj_delete() 57 LV_LOG_TRACE("begin (delete %p)", (void *)obj); in lv_obj_delete() 58 LV_ASSERT_OBJ(obj, MY_CLASS); in lv_obj_delete() 59 lv_obj_invalidate(obj); in lv_obj_delete() [all …]
|
D | lv_obj_style_gen.h | 22 static inline int32_t lv_obj_get_style_width(const lv_obj_t * obj, lv_part_t part) in lv_obj_get_style_width() argument 24 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_WIDTH); in lv_obj_get_style_width() 28 static inline int32_t lv_obj_get_style_min_width(const lv_obj_t * obj, lv_part_t part) in lv_obj_get_style_min_width() argument 30 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_WIDTH); in lv_obj_get_style_min_width() 34 static inline int32_t lv_obj_get_style_max_width(const lv_obj_t * obj, lv_part_t part) in lv_obj_get_style_max_width() argument 36 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MAX_WIDTH); in lv_obj_get_style_max_width() 40 static inline int32_t lv_obj_get_style_height(const lv_obj_t * obj, lv_part_t part) in lv_obj_get_style_height() argument 42 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_HEIGHT); in lv_obj_get_style_height() 46 static inline int32_t lv_obj_get_style_min_height(const lv_obj_t * obj, lv_part_t part) in lv_obj_get_style_min_height() argument 48 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_HEIGHT); in lv_obj_get_style_min_height() [all …]
|
D | lv_obj_class.c | 32 static void lv_obj_construct(const lv_obj_class_t * class_p, lv_obj_t * obj); 51 lv_obj_t * obj = lv_malloc_zeroed(s); in lv_obj_class_create_obj() local 52 if(obj == NULL) return NULL; in lv_obj_class_create_obj() 53 obj->class_p = class_p; in lv_obj_class_create_obj() 54 obj->parent = parent; in lv_obj_class_create_obj() 62 lv_free(obj); in lv_obj_class_create_obj() 73 lv_free(obj); in lv_obj_class_create_obj() 79 disp->screens[disp->screen_cnt - 1] = obj; in lv_obj_class_create_obj() 82 obj->coords.x1 = 0; in lv_obj_class_create_obj() 83 obj->coords.y1 = 0; in lv_obj_class_create_obj() [all …]
|
D | lv_obj_pos.h | 54 void lv_obj_set_pos(lv_obj_t * obj, int32_t x, int32_t y); 65 void lv_obj_set_x(lv_obj_t * obj, int32_t x); 76 void lv_obj_set_y(lv_obj_t * obj, int32_t y); 89 void lv_obj_set_size(lv_obj_t * obj, int32_t w, int32_t h); 96 bool lv_obj_refr_size(lv_obj_t * obj); 108 void lv_obj_set_width(lv_obj_t * obj, int32_t w); 120 void lv_obj_set_height(lv_obj_t * obj, int32_t h); 127 void lv_obj_set_content_width(lv_obj_t * obj, int32_t w); 134 void lv_obj_set_content_height(lv_obj_t * obj, int32_t h); 141 void lv_obj_set_layout(lv_obj_t * obj, uint32_t layout); [all …]
|
D | lv_obj_style.h | 54 void lv_obj_add_style(lv_obj_t * obj, const lv_style_t * style, lv_style_selector_t selector); 70 bool lv_obj_replace_style(lv_obj_t * obj, const lv_style_t * old_style, const lv_style_t * new_styl… 88 void lv_obj_remove_style(lv_obj_t * obj, const lv_style_t * style, lv_style_selector_t selector); 94 void lv_obj_remove_style_all(lv_obj_t * obj); 111 void lv_obj_refresh_style(lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop); 130 lv_style_value_t lv_obj_get_style_prop(const lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop); 139 bool lv_obj_has_style_prop(const lv_obj_t * obj, lv_style_selector_t selector, lv_style_prop_t prop… 148 void lv_obj_set_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_value_t value, 151 lv_style_res_t lv_obj_get_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_value_t *… 161 bool lv_obj_remove_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_selector_t selec… [all …]
|
D | lv_obj_style.c | 32 lv_obj_t * obj; member 54 static lv_style_t * get_local_style(lv_obj_t * obj, lv_style_selector_t selector); 55 static lv_obj_style_t * get_trans_style(lv_obj_t * obj, lv_part_t part); 56 static lv_style_res_t get_prop_core(const lv_obj_t * obj, lv_style_selector_t selector, lv_style_pr… 58 static void report_style_change_core(void * style, lv_obj_t * obj); 59 static void refresh_children_style(lv_obj_t * obj); 60 static bool trans_delete(lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, trans_t * tr_limit); 64 static lv_layer_type_t calculate_layer_type(lv_obj_t * obj); 65 static void full_cache_refresh(lv_obj_t * obj, lv_part_t part); 66 static void fade_anim_cb(void * obj, int32_t v); [all …]
|
D | lv_obj_draw.c | 30 static inline lv_opa_t get_layer_opa(const lv_obj_t * obj, lv_part_t part, const lv_draw_dsc_base_t… 44 void lv_obj_init_draw_rect_dsc(lv_obj_t * obj, lv_part_t part, lv_draw_rect_dsc_t * draw_dsc) in lv_obj_init_draw_rect_dsc() argument 47 draw_dsc->base.obj = obj; in lv_obj_init_draw_rect_dsc() 50 lv_opa_t opa = get_layer_opa(obj, part, &draw_dsc->base); in lv_obj_init_draw_rect_dsc() 63 draw_dsc->radius = lv_obj_get_style_radius(obj, part); in lv_obj_init_draw_rect_dsc() 66 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc() 68 draw_dsc->bg_color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc() 69 const lv_grad_dsc_t * grad = lv_obj_get_style_bg_grad(obj, part); in lv_obj_init_draw_rect_dsc() 74 draw_dsc->bg_grad.dir = lv_obj_get_style_bg_grad_dir(obj, part); in lv_obj_init_draw_rect_dsc() 76 … draw_dsc->bg_grad.stops[0].color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc() [all …]
|
D | lv_obj_style_gen.c | 13 void lv_obj_set_style_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_width() argument 18 lv_obj_set_local_style_prop(obj, LV_STYLE_WIDTH, v, selector); in lv_obj_set_style_width() 21 void lv_obj_set_style_min_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_min_width() argument 26 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_WIDTH, v, selector); in lv_obj_set_style_min_width() 29 void lv_obj_set_style_max_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_max_width() argument 34 lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_WIDTH, v, selector); in lv_obj_set_style_max_width() 37 void lv_obj_set_style_height(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_height() argument 42 lv_obj_set_local_style_prop(obj, LV_STYLE_HEIGHT, v, selector); in lv_obj_set_style_height() 45 void lv_obj_set_style_min_height(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_min_height() argument 50 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_HEIGHT, v, selector); in lv_obj_set_style_min_height() [all …]
|
D | lv_obj_scroll.c | 36 static void scroll_x_anim(void * obj, int32_t v); 37 static void scroll_y_anim(void * obj, int32_t v); 58 void lv_obj_set_scrollbar_mode(lv_obj_t * obj, lv_scrollbar_mode_t mode) in lv_obj_set_scrollbar_mode() argument 60 LV_ASSERT_OBJ(obj, MY_CLASS); in lv_obj_set_scrollbar_mode() 62 lv_obj_allocate_spec_attr(obj); in lv_obj_set_scrollbar_mode() 64 if(obj->spec_attr->scrollbar_mode == mode) return; in lv_obj_set_scrollbar_mode() 65 obj->spec_attr->scrollbar_mode = mode; in lv_obj_set_scrollbar_mode() 66 lv_obj_invalidate(obj); in lv_obj_set_scrollbar_mode() 69 void lv_obj_set_scroll_dir(lv_obj_t * obj, lv_dir_t dir) in lv_obj_set_scroll_dir() argument 71 lv_obj_allocate_spec_attr(obj); in lv_obj_set_scroll_dir() [all …]
|
D | lv_obj_scroll.h | 59 void lv_obj_set_scrollbar_mode(lv_obj_t * obj, lv_scrollbar_mode_t mode); 66 void lv_obj_set_scroll_dir(lv_obj_t * obj, lv_dir_t dir); 73 void lv_obj_set_scroll_snap_x(lv_obj_t * obj, lv_scroll_snap_t align); 80 void lv_obj_set_scroll_snap_y(lv_obj_t * obj, lv_scroll_snap_t align); 91 lv_scrollbar_mode_t lv_obj_get_scrollbar_mode(const lv_obj_t * obj); 98 lv_dir_t lv_obj_get_scroll_dir(const lv_obj_t * obj); 105 lv_scroll_snap_t lv_obj_get_scroll_snap_x(const lv_obj_t * obj); 112 lv_scroll_snap_t lv_obj_get_scroll_snap_y(const lv_obj_t * obj); 122 int32_t lv_obj_get_scroll_x(const lv_obj_t * obj); 132 int32_t lv_obj_get_scroll_y(const lv_obj_t * obj); [all …]
|
/lvgl-latest/demos/render/ |
D | lv_demo_render.c | 36 static void add_to_cell(lv_obj_t * obj, int32_t col, int32_t row); 50 lv_obj_t * obj = lv_obj_create(parent); in fill_obj_create() local 51 lv_obj_remove_style_all(obj); in fill_obj_create() 52 lv_obj_set_style_opa(obj, opa_saved, 0); in fill_obj_create() 53 lv_obj_set_style_bg_opa(obj, LV_OPA_COVER, 0); in fill_obj_create() 54 lv_obj_set_style_bg_color(obj, colors[col], 0); in fill_obj_create() 55 lv_obj_set_size(obj, DEF_WIDTH, DEF_HEIGHT); in fill_obj_create() 56 add_to_cell(obj, col, row); in fill_obj_create() 58 return obj; in fill_obj_create() 71 lv_obj_t * obj = fill_obj_create(parent, i, 1); in fill_cb() local [all …]
|
/lvgl-latest/src/widgets/image/ |
D | lv_image.c | 31 static void lv_image_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 32 static void lv_image_destructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 35 static void scale_update(lv_obj_t * obj, int32_t scale_x, int32_t scale_y); 36 static void update_align(lv_obj_t * obj); 38 static void lv_image_set_pivot_helper(lv_obj_t * obj, lv_point_t * pivot); 39 static lv_point_t lv_image_get_pivot_helper(lv_obj_t * obj); 139 lv_obj_t * obj = lv_obj_class_create_obj(MY_CLASS, parent); in lv_image_create() local 140 lv_obj_class_init_obj(obj); in lv_image_create() 141 return obj; in lv_image_create() 148 void lv_image_set_src(lv_obj_t * obj, const void * src) in lv_image_set_src() argument [all …]
|
/lvgl-latest/src/themes/ |
D | lv_theme.c | 25 static void apply_theme(lv_theme_t * th, lv_obj_t * obj); 26 static void apply_theme_recursion(lv_theme_t * th, lv_obj_t * obj); 40 lv_theme_t * lv_theme_get_from_obj(lv_obj_t * obj) in lv_theme_get_from_obj() argument 42 lv_display_t * disp = obj ? lv_obj_get_display(obj) : lv_display_get_default(); in lv_theme_get_from_obj() 46 void lv_theme_apply(lv_obj_t * obj) in lv_theme_apply() argument 48 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_apply() 51 lv_obj_remove_style_all(obj); in lv_theme_apply() 53 apply_theme_recursion(th, obj); /*Apply the theme including the base theme(s)*/ in lv_theme_apply() 66 const lv_font_t * lv_theme_get_font_small(lv_obj_t * obj) in lv_theme_get_font_small() argument 68 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_small() [all …]
|
/lvgl-latest/src/widgets/textarea/ |
D | lv_textarea.h | 84 void lv_textarea_add_char(lv_obj_t * obj, uint32_t c); 91 void lv_textarea_add_text(lv_obj_t * obj, const char * txt); 97 void lv_textarea_delete_char(lv_obj_t * obj); 103 void lv_textarea_delete_char_forward(lv_obj_t * obj); 114 void lv_textarea_set_text(lv_obj_t * obj, const char * txt); 121 void lv_textarea_set_placeholder_text(lv_obj_t * obj, const char * txt); 130 void lv_textarea_set_cursor_pos(lv_obj_t * obj, int32_t pos); 137 void lv_textarea_set_cursor_click_pos(lv_obj_t * obj, bool en); 144 void lv_textarea_set_password_mode(lv_obj_t * obj, bool en); 151 void lv_textarea_set_password_bullet(lv_obj_t * obj, const char * bullet); [all …]
|
D | lv_textarea.c | 48 static void lv_textarea_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 49 static void lv_textarea_destructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 52 static void cursor_blink_anim_cb(void * obj, int32_t show); 53 static void pwd_char_hider_anim(void * obj, int32_t x); 55 static void pwd_char_hider(lv_obj_t * obj); 56 static bool char_is_accepted(lv_obj_t * obj, uint32_t c); 57 static void start_cursor_blink(lv_obj_t * obj); 58 static void refr_cursor_area(lv_obj_t * obj); 60 static lv_result_t insert_handler(lv_obj_t * obj, const char * txt); 63 static void auto_hide_characters(lv_obj_t * obj); [all …]
|
/lvgl-latest/src/libs/barcode/ |
D | lv_barcode.c | 29 static void lv_barcode_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 30 static void lv_barcode_destructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 31 static bool lv_barcode_change_buf_size(lv_obj_t * obj, int32_t w, int32_t h); 32 static void lv_barcode_clear(lv_obj_t * obj); 58 lv_obj_t * obj = lv_obj_class_create_obj(MY_CLASS, parent); in lv_barcode_create() local 59 lv_obj_class_init_obj(obj); in lv_barcode_create() 60 return obj; in lv_barcode_create() 63 void lv_barcode_set_dark_color(lv_obj_t * obj, lv_color_t color) in lv_barcode_set_dark_color() argument 65 LV_ASSERT_OBJ(obj, MY_CLASS); in lv_barcode_set_dark_color() 67 lv_barcode_t * barcode = (lv_barcode_t *)obj; in lv_barcode_set_dark_color() [all …]
|
/lvgl-latest/src/themes/mono/ |
D | lv_theme_mono.c | 72 static void theme_apply(lv_theme_t * th, lv_obj_t * obj); 232 static void theme_apply(lv_theme_t * th, lv_obj_t * obj) in theme_apply() argument 237 lv_obj_t * parent = lv_obj_get_parent(obj); in theme_apply() 240 lv_obj_add_style(obj, &theme->styles.scr, 0); in theme_apply() 241 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply() 245 if(lv_obj_check_type(obj, &lv_obj_class)) { in theme_apply() 253 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply() 254 lv_obj_add_style(obj, &theme->styles.no_radius, 0); in theme_apply() 255 lv_obj_add_style(obj, &theme->styles.scrollbar, LV_PART_SCROLLBAR); in theme_apply() 263 lv_obj_add_style(obj, &theme->styles.card, 0); in theme_apply() [all …]
|
/lvgl-latest/tests/src/test_cases/ |
D | test_anim_timeline.c | 31 lv_obj_t * obj = lv_obj_create(lv_screen_active()); in test_anim_timeline_progress_1() local 32 lv_obj_set_size(obj, 100, 100); in test_anim_timeline_progress_1() 33 lv_obj_set_pos(obj, 30, 40); in test_anim_timeline_progress_1() 38 lv_anim_set_var(&a1, obj); in test_anim_timeline_progress_1() 49 TEST_ASSERT_EQUAL(0, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 53 TEST_ASSERT_EQUAL(700, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 57 TEST_ASSERT_EQUAL(105, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 61 TEST_ASSERT_EQUAL(213, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 65 TEST_ASSERT_EQUAL(319, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 69 TEST_ASSERT_EQUAL(426, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() [all …]
|
/lvgl-latest/src/widgets/slider/ |
D | lv_slider.c | 41 static void lv_slider_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 43 static void position_knob(lv_obj_t * obj, lv_area_t * knob_area, const int32_t knob_size, const boo… 45 static bool is_slider_horizontal(lv_obj_t * obj); 46 static void drag_start(lv_obj_t * obj); 47 static void update_knob_pos(lv_obj_t * obj, bool check_drag); 130 lv_obj_t * obj = lv_obj_class_create_obj(MY_CLASS, parent); in lv_slider_create() local 131 lv_obj_class_init_obj(obj); in lv_slider_create() 132 return obj; in lv_slider_create() 135 bool lv_slider_is_dragged(const lv_obj_t * obj) in lv_slider_is_dragged() argument 137 LV_ASSERT_OBJ(obj, MY_CLASS); in lv_slider_is_dragged() [all …]
|
/lvgl-latest/src/widgets/spinbox/ |
D | lv_spinbox.c | 32 static void lv_spinbox_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj); 34 static void lv_spinbox_updatevalue(lv_obj_t * obj); 59 lv_obj_t * obj = lv_obj_class_create_obj(MY_CLASS, parent); in lv_spinbox_create() local 60 lv_obj_class_init_obj(obj); in lv_spinbox_create() 61 return obj; in lv_spinbox_create() 68 void lv_spinbox_set_value(lv_obj_t * obj, int32_t v) in lv_spinbox_set_value() argument 70 LV_ASSERT_OBJ(obj, MY_CLASS); in lv_spinbox_set_value() 71 lv_spinbox_t * spinbox = (lv_spinbox_t *)obj; in lv_spinbox_set_value() 78 lv_spinbox_updatevalue(obj); in lv_spinbox_set_value() 81 void lv_spinbox_set_rollover(lv_obj_t * obj, bool rollover) in lv_spinbox_set_rollover() argument [all …]
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_obj_property.c | 10 lv_obj_t * obj = lv_obj_create(lv_screen_active()); in test_obj_property_fail_on_invalid_id() local 14 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 17 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 20 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 23 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 27 TEST_ASSERT_EQUAL_INT(LV_RESULT_OK, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 34 lv_obj_t * obj = lv_obj_create(lv_screen_active()); in test_obj_property_set_get_should_match() local 43 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match() 44 TEST_ASSERT_EQUAL_UINT32(0xaabb, lv_obj_get_style_x(obj, 0)); in test_obj_property_set_get_should_match() 45 TEST_ASSERT_EQUAL_UINT32(0xaabb, lv_obj_get_property(obj, LV_PROPERTY_STYLE_X).num); in test_obj_property_set_get_should_match() [all …]
|