Home
last modified time | relevance | path

Searched refs:childRect (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_scroll_view.cpp98 Rect childRect = GetAllChildRelativeRect(); in OnRotateEvent() local
99 SetIsEdge(lastIsEdge, childRect); in OnRotateEvent()
109 childRect = GetAllChildRelativeRect(); in OnRotateEvent()
112 …if (childRect.GetLeft() - scrollBlankSize_ >= 0 || childRect.GetRight() + scrollBlankSize_ <= GetW… in OnRotateEvent()
116 …if (childRect.GetTop() - scrollBlankSize_ >= 0 || childRect.GetBottom() + scrollBlankSize_ <= GetH… in OnRotateEvent()
152 …if (childRect.GetLeft() - scrollBlankSize_ >= 0 || childRect.GetRight() + scrollBlankSize_ <= GetW… in SetIsEdge()
156 …if (childRect.GetTop() - scrollBlankSize_ >= 0 || childRect.GetBottom() + scrollBlankSize_ <= GetH… in SetIsEdge()
180 Rect childRect = GetAllChildRelativeRect(); in DragXInner() local
198 int16_t childRight = childRect.GetRight(); in DragXInner()
212 Rect childRect = GetAllChildRelativeRect(); in DragYInner() local
[all …]
H A Dui_swipe_view.cpp488 Rect childRect = GetAllChildRelativeRect(); in IsNeedLoop() local
490 if ((childRect.GetWidth() - childrenHead_->GetWidth() >= GetWidth()) && in IsNeedLoop()
491 (childRect.GetWidth() - childrenTail_->GetWidth() >= GetWidth())) { in IsNeedLoop()
495 if ((childRect.GetHeight() - childrenHead_->GetHeight() >= GetHeight()) && in IsNeedLoop()
496 (childRect.GetHeight() - childrenTail_->GetHeight() >= GetHeight())) { in IsNeedLoop()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/flex/
H A Dflex_element.cpp56 Rect childRect; in AcceptFocusByRectOfLastFocus() local
57 if (!CalculateRect(*it, childRect)) { in AcceptFocusByRectOfLastFocus()
61 Offset vec = childRect.Center() - rect.Center(); in AcceptFocusByRectOfLastFocus()
66 offset = childRect.GetOffset(); in AcceptFocusByRectOfLastFocus()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_cache_layout_test_ng.cpp122 RectF childRect = GetChildRect(frameNode_, index); variable
126 EXPECT_TRUE(IsEqual(childRect, expectRect)) << "index: " << index;
152 RectF childRect = GetChildRect(frameNode_, index); variable
162 EXPECT_TRUE(IsEqual(childRect, expectRect)) << "index: " << index;
188 RectF childRect = GetChildRect(frameNode_, index); variable
198 EXPECT_TRUE(IsEqual(childRect, expectRect)) << "index: " << index;
H A Dgrid_layout_test_ng.cpp212 RectF childRect = GetChildRect(frameNode_, index); variable
1290 RectF childRect = GetChildRect(frameNode_, index); variable
1322 RectF childRect = GetChildRect(frameNode_, index); variable
1355 RectF childRect = GetChildRect(frameNode_, index); variable
1387 RectF childRect = GetChildRect(frameNode_, index); variable
1420 RectF childRect = GetChildRect(frameNode_, index); variable
1444 RectF childRect = GetChildRect(frameNode_, index); variable
1468 RectF childRect = GetChildRect(frameNode_, index); variable
1579 RectF childRect = GetChildRect(frameNode_, index); variable
1608 RectF childRect = GetChildRect(frameNode_, index); variable
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/focus/
H A Dfocus_node.cpp703 Rect childRect; in CalculatePosition() local
704 if (!CalculateRect(*itLastFocusNode_, childRect)) { in CalculatePosition()
714 Rect rect(childRect.GetOffset(), renderNode->GetLayoutSize()); in CalculatePosition()
718 SetRect((*itLastFocusNode_)->GetRect() + childRect.GetOffset()); in CalculatePosition()
772 Rect childRect; in TryRequestFocus() local
773 if (!CalculateRect(focusNode, childRect) || in TryRequestFocus()
774 !focusNode->AcceptFocusByRectOfLastFocus(rect - childRect.GetOffset())) { in TryRequestFocus()
795 Rect childRect; in AcceptFocusByRectOfLastFocus() local
796 if (!CalculateRect(*itLastFocusNode_, childRect)) { in AcceptFocusByRectOfLastFocus()
800 if ((*itLastFocusNode_)->AcceptFocusByRectOfLastFocus(rect - childRect.GetOffset())) { in AcceptFocusByRectOfLastFocus()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dfocus_hub.cpp1264 RectF childRect; in TryRequestFocus() local
1265 if (!CalculateRect(focusNode, childRect) || in TryRequestFocus()
1290 RectF childRect; in CalculatePosition() local
1291 if (!CalculateRect(lastFocusNode, childRect)) { in CalculatePosition()
1298 RectF rect(childRect.GetOffset(), lastFocusGeometryNode->GetFrameSize()); in CalculatePosition()
1302 SetRect(lastFocusNode->GetRect() + childRect.GetOffset()); in CalculatePosition()
1853 RectF childRect; in AcceptFocusByRectOfLastFocusFlex() local
1854 if (!CalculateRect(child, childRect)) { in AcceptFocusByRectOfLastFocusFlex()
1857 if (!childRect.IsValid() || NearZero(childRect.Width()) || NearZero(childRect.Height())) { in AcceptFocusByRectOfLastFocusFlex()
1860 OffsetF vec = childRect.Center() - rect.Center(); in AcceptFocusByRectOfLastFocusFlex()
[all …]
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_scroll_view.h251 void SetIsEdge(bool& lastIsEdge, Rect childRect);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/event/
H A Dfocus_hub_test_ng_new.cpp44 RectF childRect; variable
46 parent->TryRequestFocus(focusHub, childRect, FocusStep::TAB);
49 childRect.width_ = -1;
51 parent->TryRequestFocus(focusHub, childRect, FocusStep::NONE);
313 RectF childRect; variable
319 EXPECT_FALSE(focusHub->RequestNextFocus(FocusStep::LEFT, childRect));
320 EXPECT_FALSE(focusHub->RequestNextFocus(FocusStep::SHIFT_TAB, childRect));
322 EXPECT_FALSE(focusHub->RequestNextFocus(FocusStep::TAB, childRect));
H A Dfocus_hub_test_ng.cpp1833 RectF childRect; variable
1836 EXPECT_FALSE(focusHub->AcceptFocusByRectOfLastFocus(childRect));
1839 EXPECT_FALSE(focusHub->AcceptFocusByRectOfLastFocus(childRect));
1842 EXPECT_FALSE(focusHub->AcceptFocusByRectOfLastFocus(childRect));
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_render_node.cpp1787 auto childRect = selfDrawRect_; in MapAndUpdateChildrenRect() local
1791 childRect = childRect.JoinRect(childrenRect_.ConvertTo<float>()); in MapAndUpdateChildrenRect()
1800 childRectMapped = geoPtr->MapRect(childRect, geoPtr->GetMatrix()); in MapAndUpdateChildrenRect()
1807 childRectMapped = geoPtr->MapRect(childRect, childRelativeToParentMatrix); in MapAndUpdateChildrenRect()
1809 childRectMapped = geoPtr->MapRect(childRect, geoPtr->GetMatrix()); in MapAndUpdateChildrenRect()
1817 childRect = childRectMapped.ConvertTo<float>(); in MapAndUpdateChildrenRect()
1818 if (!childRect.IsInsideOf(parentNode->GetSelfDrawRect())) { in MapAndUpdateChildrenRect()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
H A Drender_node.cpp264 for (auto& childRect : childTouchRectList) { in CompareTouchRectList() local
266 auto rect = childRect; in CompareTouchRectList()
269 rect.SetOffset(childRect.GetOffset() + GetPaintRect().GetOffset()); in CompareTouchRectList()