/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | rect.h | 88 double Bottom() const in Bottom() function in OHOS::Ace::Rect 154 (Bottom() <= other.Bottom()); in IsWrappedBy() 165 double bottom = Bottom(); in Constrain() 167 double top = std::clamp(y_, other.Top(), other.Bottom()); in Constrain() 169 bottom = std::clamp(bottom, other.Top(), other.Bottom()) - top; in Constrain() 238 return !(other.Right() < Left() || other.Left() > Right() || other.Bottom() < Top() || other.Top() > Bottom()); in IsIntersectWith() 244 other.Right() <= Left() || other.Left() >= Right() || other.Bottom() <= Top() || other.Top() >= Bottom()); in IsIntersectByCommonSideWith() [all...] |
/foundation/arkui/ace_engine/frameworks/core/accessibility/ |
H A D | accessibility_utils.cpp | 73 return nodeRect.Top() < itemRect.Bottom() && itemRect.Top() < nodeRect.Bottom(); in CheckRectBeam() 91 return nodeRect.Top() >= itemRect.Bottom(); in IsToDirectionOf() 93 return nodeRect.Bottom() <= itemRect.Top(); in IsToDirectionOf() 114 distance = itemRect.Bottom() - nodeRect.Bottom(); in MajorAxisDistanceToFarEdge() 134 distance = nodeRect.Top() - itemRect.Bottom(); in MajorAxisDistance() 137 distance = itemRect.Top() - nodeRect.Bottom(); in MajorAxisDistance() 152 distance = fabs((nodeRect.Top() + nodeRect.Bottom()) / AVERAGE_BASE - in MinorAxisDistance() 153 (itemRect.Top() + itemRect.Bottom()) / AVERAGE_BAS in MinorAxisDistance() [all...] |
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | rect_t.h | 108 T Bottom() const in Bottom() function in OHOS::Ace::NG::RectT 198 GreatOrEqual(Top(), other.Top()) && LessOrEqual(Bottom(), other.Bottom()); in IsWrappedBy() 214 T bottom = Bottom(); in Constrain() 216 T top = std::clamp(y_, other.Top(), other.Bottom()); in Constrain() 218 bottom = std::clamp(bottom, other.Top(), other.Bottom()) - top; in Constrain() 316 LessNotEqual(other.Bottom(), Top()) || GreatNotEqual(other.Top(), Bottom())); in IsIntersectWith() 322 LessOrEqual(other.Bottom(), Top()) || GreatOrEqual(other.Top(), Bottom())); in IsInnerIntersectWith() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
H A D | select_overlay_layout_algorithm.cpp | 112 auto bottom = info_->isNewAvoid ? info_->selectArea.Bottom() : secondHandleRect.Bottom(); in CalculateCustomMenuLayoutConstraint() 333 menuPosition.SetY(secondHandleRect.Bottom() + menuSpacing); in ComputeSelectMenuPosition() 336 menuPosition.SetY(firstHandleRect.Bottom() + menuSpacing); in ComputeSelectMenuPosition() 373 static_cast<float>(singleHandle.Bottom() + menuSpacingBetweenText + menuSpacingBetweenHandle)); in ComputeSelectMenuPosition() 377 static_cast<float>(singleHandle.Bottom() + menuSpacingBetweenText + menuSpacingBetweenHandle)); in ComputeSelectMenuPosition() 408 OffsetF(downHandleRect.GetX() - (circleDiameter - downHandleRect.Width()) / 2.0f, downHandleRect.Bottom()); in ComputeSelectMenuPosition() 412 menuPosition.SetY(downHandleRect.Bottom() + menuSpacing); in ComputeSelectMenuPosition() 469 menuOffset.SetY(upPaint.Bottom() + spaceBetweenText + spaceBetweenHandle); in AdjustSelectMenuOffset() 481 GreatNotEqual(keyboardInsert.Length(), 0.0f) && GreatNotEqual(menuRect.Bottom(), keyboardInser in AdjustSelectMenuOffset() [all...] |
H A D | select_overlay_content_modifier.cpp | 234 auto bottom = viewPort_->Get().Bottom(); in ClipViewPort() 257 bottom = std::max(upHandle.Bottom(), bottom); in ClipViewPort() 264 bottom = std::max(downHandle.Bottom() + handleDiameter, bottom); in ClipViewPort() 314 centerOffset.SetY(handleRect.Bottom() + handleRadius); in PaintHandle() 409 auto bottomInViewPort = LessOrEqual(handleRect.Bottom(), viewPort.Bottom() + VIEW_PORT_MODIFICATION_VALUE); in ClipHandleDrawRect() 410 auto bottom = viewPort.Bottom() + (bottomInViewPort ? handleRect.Width() / 2.0f : 0.0f); in ClipHandleDrawRect() 412 bottom = viewPort.Bottom() + extendDimension * 2.0f; in ClipHandleDrawRect() 416 RSRect draggingRect = RSRect(handleRect.Left(), handleRect.Top(), handleRect.Right(), handleRect.Bottom()); in ClipHandleDrawRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | focus_state_modifier.h | 46 RSRect(realRect.Left(), realRect.Top(), realRect.Right(), realRect.Bottom())); 69 rosen::Rect(rect.GetRect().Left(), rect.GetRect().Top(), rect.GetRect().Right(), rect.GetRect().Bottom())); in SetRoundRect() 84 RSRect(rect.GetRect().Left(), rect.GetRect().Top(), rect.GetRect().Right(), rect.GetRect().Bottom())); in SetRoundRect() 100 RSRect(rect.GetRect().Left(), rect.GetRect().Top(), rect.GetRect().Right(), rect.GetRect().Bottom())); in SetRoundRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_layout_property.h | 138 margin.bottom = CalcLength(dialogTheme->GetDividerPadding().Bottom()); in UpdateDialogMargin() 140 margin.top = CalcLength(dialogTheme->GetActionsPadding().Bottom()); in UpdateDialogMargin() 141 margin.bottom = CalcLength(dialogTheme->GetActionsPadding().Bottom()); in UpdateDialogMargin()
|
/foundation/arkui/ace_engine/frameworks/core/components/select_popup/ |
H A D | rosen_render_select_popup.cpp | 92 RSPoint endPoint(static_cast<RSScalar>(gradientRect.Left()), static_cast<RSScalar>(gradientRect.Bottom())); in PaintGradient() 105 canvas->DrawRect(RSRect(gradientRect.Left(), gradientRect.Top(), gradientRect.Right(), gradientRect.Bottom())); in PaintGradient()
|
/foundation/arkui/ace_engine/frameworks/core/components/button/ |
H A D | button_element.cpp | 129 Offset((GetRect().Left() + GetRect().Right()) / 2, (GetRect().Top() + GetRect().Bottom()) / 2)); in OnClick() 131 Offset((GetRect().Right() - GetRect().Left()) / 2, (GetRect().Bottom() - GetRect().Top()) / 2)); in OnClick()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_layout_property.h | 28 ACE_DEFINE_PROPERTY_GROUP_ITEM(Bottom, Dimension); 100 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP(IndicatorLayoutStyle, Bottom, Dimension, PROPERTY_UPDATE_MEASURE_SELF);
|
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | rosen_render_picker_base.cpp | 158 SkPoint endPoint = SkPoint::Make(SkDoubleToScalar(rect.Left()), SkDoubleToScalar(rect.Bottom())); in PaintGradient() 163 RSPoint endPoint(static_cast<RSScalar>(rect.Left()), static_cast<RSScalar>(rect.Bottom())); in PaintGradient() 181 canvas->drawRect({ rect.Left(), rect.Top(), rect.Right(), rect.Bottom() }, paint); in PaintGradient() 190 canvas->DrawRect(RSRect(rect.Left(), rect.Top(), rect.Right(), rect.Bottom())); in PaintGradient()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_scroll_bar_painter.cpp | 146 SkRect backgroundRect = SkRect::MakeLTRB(barRect.Left(), barRect.Top(), barRect.Right(), barRect.Bottom()); in PaintRectBar() 154 SkRect::MakeLTRB(activeRect.Left(), activeRect.Top(), activeRect.Right(), activeRect.Bottom()); in PaintRectBar() 176 barRect.Left(), barRect.Top(), barRect.Right(), barRect.Bottom()); in PaintRectBar() 191 activeRect.Left(), activeRect.Top(), activeRect.Right(), activeRect.Bottom()); in PaintRectBar()
|
/foundation/arkui/ace_engine/frameworks/core/components/side_bar/ |
H A D | rosen_render_side_bar_container.cpp | 44 dPath.AddRect(RSRect(paintRect.Left(), paintRect.Top(), paintRect.Right(), paintRect.Bottom())); in Paint()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/ |
H A D | text_drag_pattern.cpp | 42 if (box.Bottom() + textStartY > contentRect.Top() + BOX_EPSILON) { in GetFirstBoxRect() 55 auto caculateBottom = box.Bottom() + textStartY; in GetLastBoxRect() 56 bool isReachingBottom = (caculateBottom >= maxBottom) || (caculateBottom >= contentRect.Bottom()); in GetLastBoxRect() 62 if (hasResult && box.Bottom() == result.Bottom()) { in GetLastBoxRect() 64 } else if (hasResult && box.Bottom() != result.Bottom()) { in GetLastBoxRect()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | rosen_render_text_field.cpp | 69 auto bottomWidth = decoration.GetBorder().Bottom().GetWidth().ConvertToPx(dipScale) + in GetInnerRect() 70 NormalizePercentToPx(decoration.GetPadding().Bottom(), true); in GetInnerRect() 83 outer.Bottom() - bottomWidth - topWidth); in GetInnerRect() 87 outer.Bottom() - bottomWidth - topWidth); in GetInnerRect() 148 SkRect::MakeLTRB(caretRect.Left(), caretRect.Top(), caretRect.Right(), caretRect.Bottom()), paint); in PaintCaret() 153 SkDoubleToScalar(caretRect.Right()), SkDoubleToScalar(caretRect.Bottom())), radius, radius); in PaintCaret() 161 canvas.DrawRect(RSRect(caretRect.Left(), caretRect.Top(), caretRect.Right(), caretRect.Bottom())); in PaintCaret() 165 static_cast<RSScalar>(caretRect.Right()), static_cast<RSScalar>(caretRect.Bottom())), in PaintCaret() 204 (caretRect.Top(), caretRect.Left() + caretRect.Right()) / 2.0, caretRect.Bottom(), paint); in PaintSelectCaret() 208 RSPoint((caretRect.Top(), caretRect.Left() + caretRect.Right()) / 2.0, caretRect.Bottom())); in PaintSelectCaret() [all...] |
/foundation/arkui/ace_engine/test/mock/core/render/ |
H A D | mock_drawing_convertor.cpp | 53 return RSRect(rect.Left(), rect.Top(), rect.Right(), rect.Bottom()); in ToRSRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_layout_property.cpp | 45 indicator.SetTop(indicator.Bottom() + childColumnRect.GetY()); in GetIndicatorRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_manager.cpp | 196 (caretRect.Bottom() + RESERVE_BOTTOM_HEIGHT.ConvertToPx()))) { in ScrollToSafeAreaHelper() 209 if (isShowKeyboard && LessNotEqual((caretRect.Bottom() + RESERVE_BOTTOM_HEIGHT.ConvertToPx()), bottomInset.start)) { in ScrollToSafeAreaHelper() 216 auto scrollBottom = isShowKeyboard && GreatOrEqual(scrollableRect.Bottom(), bottomInset.start) ? in ScrollToSafeAreaHelper() 217 bottomInset.start : scrollableRect.Bottom(); in ScrollToSafeAreaHelper() 218 diffBot = scrollBottom - caretRect.Bottom() - RESERVE_BOTTOM_HEIGHT.ConvertToPx(); in ScrollToSafeAreaHelper()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_overlay_modifier.cpp | 67 paintOffset.GetX() + rect.Right(), paintOffset.GetY() + rect.Bottom())); in onDraw() 82 paintOffset.GetX() + rect.Right(), paintOffset.GetY() + rect.Bottom())); in onDraw()
|
H A D | text_base.cpp | 72 line.second.Bottom() - lastLineBottom); in CalculateSelectedRect() 74 lastLineBottom = line.second.Bottom(); in CalculateSelectedRect()
|
H A D | base_text_select_overlay.cpp | 339 if (GreatNotEqual(backRect.Bottom(), frontRect.Bottom())) { in MergeSelectedBoxes() 341 contentRect.Width(), backRect.Bottom() - frontRect.Top()); in MergeSelectedBoxes() 345 backRect.Bottom() - frontRect.Top()); in MergeSelectedBoxes() 355 std::vector<OffsetF> points = { OffsetF(left, localHandleRect.Top()), OffsetF(left, localHandleRect.Bottom()) }; in SetTransformPaintInfo() 392 leftBottom = OffsetF(visibleContentRect.Left(), visibleContentRect.Bottom()); in CheckHandleIsVisibleWithTransform() 393 rightBottom = OffsetF(visibleContentRect.Right(), visibleContentRect.Bottom()); in CheckHandleIsVisibleWithTransform() 490 OffsetF(rect.Left() - extendValue, rect.Bottom() + extendValue), in GetGlobalRectVertexWithTransform() 491 OffsetF(rect.Right() + extendValue, rect.Bottom() + extendValue) in GetGlobalRectVertexWithTransform() 542 OffsetF(rect.Left(), rect.Bottom()), in GetLocalRectWithTransform() [all...] |
H A D | text_select_overlay.cpp | 122 PointF bottomPoint = { paintLeft, paintRect.Bottom() - BOX_EPSILON }; in CheckAndAdjustHandleWithContent() 130 paintRect.SetHeight(visibleContentRect.Bottom() - paintRect.Top()); in CheckAndAdjustHandleWithContent() 132 paintRect.SetHeight(paintRect.Bottom() - visibleContentRect.Top()); in CheckAndAdjustHandleWithContent() 156 PointF bottomPoint = { paintRect.Left(), paintRect.Bottom() - BOX_EPSILON }; in CheckHandleVisible() 489 rect.SetHeight(visibleRect.Bottom() - rect.Top()); in UpdateClipHandleViewPort()
|
/foundation/arkui/ace_engine/frameworks/core/components/padding/ |
H A D | render_padding.cpp | 40 auto height = NormalizePercentToPx(padding_.Top(), true) + NormalizePercentToPx(padding_.Bottom(), true); in PerformLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | scroll_bar.cpp | 53 barRect_ = Rect(0.0, size.Height() - normalWidth - NormalizeToPx(padding_.Bottom()), in SetBarRegion() 91 size.Height() - normalWidth - NormalizeToPx(padding_.Bottom()) + NormalizeToPx(position_); in SetRectTrickRegion() 95 - NormalizeToPx(padding_.Bottom())); in SetRectTrickRegion()
|
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | box_component_helper.h | 90 return decoration->GetBorder().Bottom().GetColor(); in GetBorderColorBottom() 245 return border.Bottom().GetBorderStyle(); in GetBorderStyleBottom() 310 return decoration->GetBorder().Bottom().GetWidth(); in GetBorderBottomWidth()
|