Home
last modified time | relevance | path

Searched refs:parent_rect_size (Results 1 – 2 of 2) sorted by relevance

/dports/devel/godot-tools/godot-3.2.3-stable/scene/gui/
H A Dcontrol.cpp1795 Size2 parent_rect_size = get_parent_anchorable_rect().size; in _compute_anchors() local
1796 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() local
1808 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 …]
/dports/devel/godot/godot-3.2.3-stable/scene/gui/
H A Dcontrol.cpp1795 Size2 parent_rect_size = get_parent_anchorable_rect().size; in _compute_anchors() local
1796 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() local
1808 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 …]