Searched refs:parent_rect_size (Results 1 – 2 of 2) sorted by relevance
1795 Size2 parent_rect_size = get_parent_anchorable_rect().size; in _compute_anchors() local1796 ERR_FAIL_COND(parent_rect_size.x == 0.0); in _compute_anchors()1797 ERR_FAIL_COND(parent_rect_size.y == 0.0); in _compute_anchors()1799 r_anchors[0] = (p_rect.position.x - p_margins[0]) / parent_rect_size.x; in _compute_anchors()1800 r_anchors[1] = (p_rect.position.y - p_margins[1]) / parent_rect_size.y; in _compute_anchors()1801 r_anchors[2] = (p_rect.position.x + p_rect.size.x - p_margins[2]) / parent_rect_size.x; in _compute_anchors()1802 r_anchors[3] = (p_rect.position.y + p_rect.size.y - p_margins[3]) / parent_rect_size.y; in _compute_anchors()1807 Size2 parent_rect_size = get_parent_anchorable_rect().size; in _compute_margins() local1808 r_margins[0] = p_rect.position.x - (p_anchors[0] * parent_rect_size.x); in _compute_margins()1809 r_margins[1] = p_rect.position.y - (p_anchors[1] * parent_rect_size.y); in _compute_margins()[all …]