Lines Matching full:if

68     if((res_x == LV_STYLE_RES_FOUND && v_x.num != x) || res_x == LV_STYLE_RES_NOT_FOUND) {  in lv_obj_set_x()
82 if((res_y == LV_STYLE_RES_FOUND && v_y.num != y) || res_y == LV_STYLE_RES_NOT_FOUND) { in lv_obj_set_y()
91 /*If the width or height is set by a layout do not modify them*/ in lv_obj_refr_size()
92 if(obj->w_layout && obj->h_layout) return false; in lv_obj_refr_size()
95 if(parent == NULL) return false; in lv_obj_refr_size()
101 if(obj->w_layout) { in lv_obj_refr_size()
110 if(w_is_content) { in lv_obj_refr_size()
113 else if(w_is_pct) { in lv_obj_refr_size()
114 /*If parent has content size and the child has pct size in lv_obj_refr_size()
116 if(parent->w_layout == 0 && lv_obj_get_style_width(parent, 0) == LV_SIZE_CONTENT) { in lv_obj_refr_size()
133 if(obj->h_layout) { in lv_obj_refr_size()
142 if(h_is_content) { in lv_obj_refr_size()
145 else if(h_is_pct) { in lv_obj_refr_size()
146 /*If parent has content size and the child has pct size in lv_obj_refr_size()
148 if(parent->h_layout == 0 && lv_obj_get_style_height(parent, 0) == LV_SIZE_CONTENT) { in lv_obj_refr_size()
162 /*Do nothing if the size is not changed*/ in lv_obj_refr_size()
164 if(lv_obj_get_width(obj) == w && lv_obj_get_height(obj) == h) return false; in lv_obj_refr_size()
173 /*Check if the object inside the parent or not*/ in lv_obj_refr_size()
177 /*If the object is already out of the parent and its position is changes in lv_obj_refr_size()
180 if(!on1) lv_obj_scrollbar_invalidate(parent); in lv_obj_refr_size()
185 if(lv_obj_get_style_base_dir(obj, LV_PART_MAIN) == LV_BASE_DIR_RTL) { in lv_obj_refr_size()
203 /*If the object was out of the parent invalidate the new scrollbar area too. in lv_obj_refr_size()
204 *If it wasn't out of the parent but out now, also invalidate the scrollbars*/ in lv_obj_refr_size()
206 if(on1 || (!on1 && on2)) lv_obj_scrollbar_invalidate(parent); in lv_obj_refr_size()
229 if((res_w == LV_STYLE_RES_FOUND && v_w.num != w) || res_w == LV_STYLE_RES_NOT_FOUND) { in lv_obj_set_width()
242 if((res_h == LV_STYLE_RES_FOUND && v_h.num != h) || res_h == LV_STYLE_RES_NOT_FOUND) { in lv_obj_set_height()
272if(lv_obj_has_flag_any(obj, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_FLOATING)… in lv_obj_is_layout_positioned()
275 if(parent == NULL) return false; in lv_obj_is_layout_positioned()
278 if(layout) return true; in lv_obj_is_layout_positioned()
297 if(update_layout_mutex) { in lv_obj_update_layout()
333 if(base == NULL) base = lv_obj_get_parent(obj); in lv_obj_align_to()
350 if(align == LV_ALIGN_DEFAULT) { in lv_obj_align_to()
351if(lv_obj_get_style_base_dir(base, LV_PART_MAIN) == LV_BASE_DIR_RTL) align = LV_ALIGN_TOP_RIGHT; in lv_obj_align_to()
464 if(LV_COORD_IS_PCT(x_ofs)) x_ofs = (lv_obj_get_width(base) * LV_COORD_GET_PCT(x_ofs)) / 100; in lv_obj_align_to()
465 if(LV_COORD_IS_PCT(y_ofs)) y_ofs = (lv_obj_get_height(base) * LV_COORD_GET_PCT(y_ofs)) / 100; in lv_obj_align_to()
466 if(lv_obj_get_style_base_dir(parent, LV_PART_MAIN) == LV_BASE_DIR_RTL) { in lv_obj_align_to()
491 if(parent) { in lv_obj_get_x()
515 if(parent) { in lv_obj_get_y()
607 if(w_set != LV_SIZE_CONTENT && h_set != LV_SIZE_CONTENT) return false; in lv_obj_refresh_self_size()
615 if(lv_obj_is_layout_positioned(obj)) return; in lv_obj_refr_pos()
621 if(parent == NULL) { in lv_obj_refr_pos()
629 if(LV_COORD_IS_PCT(x)) { in lv_obj_refr_pos()
630if(lv_obj_get_style_width(parent, 0) == LV_SIZE_CONTENT) x = 0; /*Avoid circular dependency*/ in lv_obj_refr_pos()
634 if(LV_COORD_IS_PCT(y)) { in lv_obj_refr_pos()
635if(lv_obj_get_style_height(parent, 0) == LV_SIZE_CONTENT) y = 0; /*Avoid circular dependency*/ in lv_obj_refr_pos()
644 if(LV_COORD_IS_PCT(tr_x)) tr_x = (w * LV_COORD_GET_PCT(tr_x)) / 100; in lv_obj_refr_pos()
645 if(LV_COORD_IS_PCT(tr_y)) tr_y = (h * LV_COORD_GET_PCT(tr_y)) / 100; in lv_obj_refr_pos()
653 if(align == LV_ALIGN_DEFAULT) { in lv_obj_refr_pos()
654if(lv_obj_get_style_base_dir(parent, LV_PART_MAIN) == LV_BASE_DIR_RTL) align = LV_ALIGN_TOP_RIGHT; in lv_obj_refr_pos()
701 if(parent) { in lv_obj_move_to()
702 if(lv_obj_has_flag(obj, LV_OBJ_FLAG_FLOATING)) { in lv_obj_move_to()
720 /*Do nothing if the position is not changed*/ in lv_obj_move_to()
723 if(diff.x == 0 && diff.y == 0) return; in lv_obj_move_to()
732 /*Check if the object inside the parent or not*/ in lv_obj_move_to()
735 if(parent) { in lv_obj_move_to()
738 /*If the object is already out of the parent and its position is changes in lv_obj_move_to()
741 if(!on1) lv_obj_scrollbar_invalidate(parent); in lv_obj_move_to()
752 if(parent) lv_obj_send_event(parent, LV_EVENT_CHILD_CHANGED, obj); in lv_obj_move_to()
757 /*If the object was out of the parent invalidate the new scrollbar area too. in lv_obj_move_to()
758 *If it wasn't out of the parent but out now, also invalidate the scrollbars*/ in lv_obj_move_to()
759 if(parent) { in lv_obj_move_to()
761 if(on1 || (!on1 && on2)) lv_obj_scrollbar_invalidate(parent); in lv_obj_move_to()
771 if(ignore_floating && lv_obj_has_flag(child, LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_move_children_by()
789 if(obj) { in lv_obj_transform_point_array()
794 if(inverse) { in lv_obj_transform_point_array()
795if(recursive) lv_obj_transform_point_array(lv_obj_get_parent(obj), points, count, flags); in lv_obj_transform_point_array()
796 if(do_tranf) transform_point_array(obj, points, count, inverse); in lv_obj_transform_point_array()
799 if(do_tranf) transform_point_array(obj, points, count, inverse); in lv_obj_transform_point_array()
800if(recursive) lv_obj_transform_point_array(lv_obj_get_parent(obj), points, count, flags); in lv_obj_transform_point_array()
827 if(!lv_display_is_invalidation_enabled(disp)) return; in lv_obj_invalidate_area()
832 if(!lv_obj_area_is_visible(obj, &area_tmp)) return; in lv_obj_invalidate_area()
833 #if LV_DRAW_TRANSFORM_USE_MATRIX in lv_obj_invalidate_area()
840 if(obj->spec_attr && obj->spec_attr->layer_type == LV_LAYER_TYPE_TRANSFORM) { in lv_obj_invalidate_area()
868 if(lv_obj_has_flag(obj, LV_OBJ_FLAG_HIDDEN)) return false; in lv_obj_area_is_visible()
870 /*Invalidate the object only if it belongs to the current or previous or one of the layers'*/ in lv_obj_area_is_visible()
873 if(obj_scr != lv_display_get_screen_active(disp) && in lv_obj_area_is_visible()
888 if(!lv_area_intersect(area, area, &obj_coords)) return false; in lv_obj_area_is_visible()
890 if(!is_transformed(obj)) { in lv_obj_area_is_visible()
900 /*If the parent is hidden then the child is hidden and won't be drawn*/ in lv_obj_area_is_visible()
901 if(lv_obj_has_flag(parent, LV_OBJ_FLAG_HIDDEN)) return false; in lv_obj_area_is_visible()
903 /*Truncate to the parent and if no common parts break*/ in lv_obj_area_is_visible()
905 if(lv_obj_has_flag(parent, LV_OBJ_FLAG_OVERFLOW_VISIBLE)) { in lv_obj_area_is_visible()
910 if(!is_transformed(parent)) { in lv_obj_area_is_visible()
916 if(!lv_area_intersect(area, area, &parent_coords)) return false; in lv_obj_area_is_visible()
950 if(obj->spec_attr) { in lv_obj_get_click_area()
957 if(!lv_obj_has_flag(obj, LV_OBJ_FLAG_CLICKABLE)) return false; in lv_obj_hit_test()
962 if(res == false) return false; in lv_obj_hit_test()
964 if(lv_obj_has_flag(obj, LV_OBJ_FLAG_ADV_HITTEST)) { in lv_obj_hit_test()
977 if(LV_COORD_IS_PCT(min_width)) min_width = (ref_width * LV_COORD_GET_PCT(min_width)) / 100; in lv_clamp_width()
978 if(LV_COORD_IS_PCT(max_width)) max_width = (ref_width * LV_COORD_GET_PCT(max_width)) / 100; in lv_clamp_width()
984 if(LV_COORD_IS_PCT(min_height)) min_height = (ref_height * LV_COORD_GET_PCT(min_height)) / 100; in lv_clamp_height()
985 if(LV_COORD_IS_PCT(max_height)) max_height = (ref_height * LV_COORD_GET_PCT(max_height)) / 100; in lv_clamp_height()
996 #if LV_DRAW_TRANSFORM_USE_MATRIX in lv_obj_set_transform()
999 if(!matrix) { in lv_obj_set_transform()
1005 if(!obj->spec_attr->matrix) { in lv_obj_set_transform()
1030 #if LV_DRAW_TRANSFORM_USE_MATRIX in lv_obj_reset_transform()
1032 if(!obj->spec_attr) { in lv_obj_reset_transform()
1036 if(!obj->spec_attr->matrix) { in lv_obj_reset_transform()
1059 #if LV_DRAW_TRANSFORM_USE_MATRIX in lv_obj_get_transform()
1061 if(obj->spec_attr) { in lv_obj_get_transform()
1077 if(obj->spec_attr && obj->spec_attr->layer_type == LV_LAYER_TYPE_TRANSFORM) return true; in is_transformed()
1086 if(obj->spec_attr) obj->spec_attr->scroll.x = 0; in calc_content_width()
1098 if(lv_obj_get_style_base_dir(obj, LV_PART_MAIN) == LV_BASE_DIR_RTL) { in calc_content_width()
1102 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in calc_content_width()
1104 if(!lv_obj_is_layout_positioned(child)) { in calc_content_width()
1115 /* Consider other cases only if x=0 and use the width of the object. in calc_content_width()
1117 if(lv_obj_get_style_x(child, 0) == 0) { in calc_content_width()
1129 if(child_res != LV_COORD_MIN) { in calc_content_width()
1138 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in calc_content_width()
1140 if(!lv_obj_is_layout_positioned(child)) { in calc_content_width()
1151 /* Consider other cases only if x=0 and use the width of the object. in calc_content_width()
1153 if(lv_obj_get_style_x(child, 0) == 0) { in calc_content_width()
1167 if(child_res != LV_COORD_MIN) { in calc_content_width()
1172 if(obj->spec_attr) obj->spec_attr->scroll.x = -scroll_x_tmp; in calc_content_width()
1174 if(child_res == LV_COORD_MIN) return self_w; in calc_content_width()
1181 if(obj->spec_attr) obj->spec_attr->scroll.y = 0; in calc_content_height()
1195 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in calc_content_height()
1197 if(!lv_obj_is_layout_positioned(child)) { in calc_content_height()
1208 /* Consider other cases only if y=0 and use the height of the object. in calc_content_height()
1210 if(lv_obj_get_style_y(child, 0) == 0) { in calc_content_height()
1224 if(obj->spec_attr) obj->spec_attr->scroll.y = -scroll_y_tmp; in calc_content_height()
1226 if(child_res == LV_COORD_MIN) return self_h; in calc_content_height()
1239 if(obj->layout_inv) { in layout_update_core()
1244 if(child_cnt > 0) { in layout_update_core()
1249 if(obj->readjust_scroll_after_layout) { in layout_update_core()
1257 #if LV_DRAW_TRANSFORM_USE_MATRIX in transform_point_array()
1259 if(obj_matrix) { in transform_point_array()
1266 if(inv) { in transform_point_array()
1285 if(scale_x == 0) scale_x = 1; in transform_point_array()
1286 if(scale_y == 0) scale_y = 1; in transform_point_array()
1288 if(angle == 0 && scale_x == LV_SCALE_NONE && scale_y == LV_SCALE_NONE) return; in transform_point_array()
1295 if(LV_COORD_IS_PCT(pivot.x)) { in transform_point_array()
1298 if(LV_COORD_IS_PCT(pivot.y)) { in transform_point_array()
1305 if(inv) { in transform_point_array()