Home
last modified time | relevance | path

Searched refs:GetRelativeRect (Results 1 - 10 of 10) sorted by relevance

/foundation/arkui/ui_lite/frameworks/layout/
H A Dflex_layout.cpp113 totalValidLength += (child->GetRelativeRect().GetWidth() + left + right); in CalValidLength()
117 totalValidLength += (child->GetRelativeRect().GetHeight() + top + bottom); in CalValidLength()
139 if ((pos + child->GetRelativeRect().GetWidth() + right) > GetWidth()) { in CalRowCount()
143 pos += child->GetRelativeRect().GetWidth() + right; in CalRowCount()
171 if ((pos + child->GetRelativeRect().GetWidth() + right) > GetWidth()) { in GetRowMaxHeight()
177 height = MATH_MAX(height, child->GetRelativeRect().GetHeight() + top + bottom); in GetRowMaxHeight()
179 pos += child->GetRelativeRect().GetWidth() + right; in GetRowMaxHeight()
204 if ((pos + child->GetRelativeRect().GetWidth() + right) > GetWidth()) { in GetRowsWidth()
212 width += child->GetRelativeRect().GetWidth() + right + left; in GetRowsWidth()
216 pos += child->GetRelativeRect() in GetRowsWidth()
[all...]
H A Dgrid_layout.cpp72 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left; in LayoutHorizontal()
74 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutHorizontal()
106 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left; in LayoutVertical()
108 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutVertical()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_list.cpp55 int16_t y = childHead->GetRelativeRect().GetTop() - height - childHead->GetStyle(STYLE_MARGIN_TOP); in MeasureAdapterRelativeRect()
65 int16_t x = childHead->GetRelativeRect().GetLeft() - width - childHead->GetStyle(STYLE_MARGIN_LEFT); in MeasureAdapterRelativeRect()
119 listView_->childrenTail_->GetY() + listView_->childrenTail_->GetRelativeRect().GetHeight(); in FillActiveView()
131 childRight = listView_->childrenTail_->GetX() + listView_->childrenTail_->GetRelativeRect().GetWidth(); in FillActiveView()
288 if (childrenTail_->GetRelativeRect().GetRight() + childrenTail_->GetStyle(STYLE_MARGIN_RIGHT) < in DragXInner()
291 } else if ((childrenTail_->GetRelativeRect().GetRight() + childrenTail_->GetStyle(STYLE_MARGIN_RIGHT) + in DragXInner()
293 distance = listWidth - scrollBlankSize_ - reboundSize - childrenTail_->GetRelativeRect().GetRight() - in DragXInner()
328 if (childrenTail_->GetRelativeRect().GetBottom() + childrenTail_->GetStyle(STYLE_MARGIN_BOTTOM) < in DragYInner()
331 } else if ((childrenTail_->GetRelativeRect().GetBottom() + childrenTail_->GetStyle(STYLE_MARGIN_BOTTOM) + in DragYInner()
333 distance = listHeight - scrollBlankSize_ - reboundSize - childrenTail_->GetRelativeRect() in DragYInner()
[all...]
H A Dui_swipe_view.cpp114 if (childrenTail_->GetRelativeRect().GetRight() < width - blankSize_) { in DragXInner()
141 if (childrenTail_->GetRelativeRect().GetBottom() < height - blankSize_) { in DragYInner()
330 next->SetX(pre->GetRelativeRect().GetRight() + pre->GetStyle(STYLE_MARGIN_RIGHT) + 1); in SortChild()
332 next->SetY(pre->GetRelativeRect().GetBottom() + pre->GetStyle(STYLE_MARGIN_BOTTOM) + 1); in SortChild()
535 Rect swipeRect(0, 0, GetRelativeRect().GetWidth() - 1, GetRelativeRect().GetHeight() - 1); in CalculateInvalidate()
539 Rect rect = view->GetRelativeRect(); in CalculateInvalidate()
H A Dui_view.cpp832 x += par->GetRelativeRect().GetX() + par->GetStyle(STYLE_PADDING_LEFT) + par->GetStyle(STYLE_BORDER_WIDTH); in GetOrigRect()
833 y += par->GetRelativeRect().GetY() + par->GetStyle(STYLE_PADDING_TOP) + par->GetStyle(STYLE_BORDER_WIDTH); in GetOrigRect()
1363 return GetRelativeRect().GetWidth() + GetStyle(STYLE_MARGIN_LEFT) + GetStyle(STYLE_MARGIN_RIGHT); in GetWidthWithMargin()
1368 return GetRelativeRect().GetHeight() + GetStyle(STYLE_MARGIN_TOP) + GetStyle(STYLE_MARGIN_BOTTOM); in GetHeightWithMargin()
1371 Rect UIView::GetRelativeRect() const in GetRelativeRect() function in OHOS::UIView
H A Dui_view_group.cpp264 Rect rectChild = view->GetRelativeRect(); in GetAllChildRelativeRect()
H A Droot_view.cpp660 relativeRect = curView->GetRelativeRect(); in Render()
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_button.h265 return GetRelativeRect().GetWidth() - (style->paddingLeft_ + style->paddingRight_) -
279 return GetRelativeRect().GetHeight() - (style->paddingTop_ + style->paddingBottom_) -
H A Dui_view.h813 Rect GetRelativeRect() const;
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_view_unit_test.cpp1066 Rect rect = view_->GetRelativeRect(); in HWTEST_F()
1093 rect = view_->GetRelativeRect(); in HWTEST_F()
1119 rect = view_->GetRelativeRect(); in HWTEST_F()

Completed in 10 milliseconds