/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | rect.h | 83 double Right() const in Right() function in OHOS::Ace::Rect 153 return (Left() >= other.Left()) && (Right() <= other.Right()) && (Top() >= other.Top()) && in IsWrappedBy() 164 double right = Right(); in Constrain() 166 double left = std::clamp(x_, other.Left(), other.Right()); in Constrain() 168 right = std::clamp(right, other.Left(), other.Right()) - left; 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() || othe in IsIntersectByCommonSideWith() [all...] |
/foundation/arkui/ace_engine/frameworks/core/accessibility/ |
H A D | accessibility_utils.cpp | 76 return nodeRect.Left() < itemRect.Right() && itemRect.Left() < nodeRect.Right(); in CheckRectBeam() 87 return nodeRect.Left() >= itemRect.Right(); in IsToDirectionOf() 89 return nodeRect.Right() <= itemRect.Left(); in IsToDirectionOf() 108 distance = itemRect.Right() - nodeRect.Right(); in MajorAxisDistanceToFarEdge() 128 distance = nodeRect.Left() - itemRect.Right(); in MajorAxisDistance() 131 distance = itemRect.Left() - nodeRect.Right(); in MajorAxisDistance() 157 distance = fabs((nodeRect.Left() + nodeRect.Right()) / AVERAGE_BASE - in MinorAxisDistance() 158 (itemRect.Left() + itemRect.Right()) / AVERAGE_BAS in MinorAxisDistance() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_overlay_modifier.cpp | 62 if (rect.Right() > contentRect_.value().Right()) { in onDraw() 63 rect.SetWidth(std::max(contentRect_.value().Right() - rect.Left(), 0.0f)); in onDraw() 67 paintOffset.GetX() + rect.Right(), paintOffset.GetY() + rect.Bottom())); in onDraw() 77 if (rect.Right() > contentRect_.value().Right()) { in onDraw() 78 rect.SetWidth(std::max(contentRect_.value().Right() - rect.Left(), 0.0f)); in onDraw() 82 paintOffset.GetX() + rect.Right(), paintOffset.GetY() + rect.Bottom())); in onDraw()
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | rect_t.h | 103 T Right() const in Right() function in OHOS::Ace::NG::RectT 197 return GreatOrEqual(Left(), other.Left()) && LessOrEqual(Right(), other.Right()) && in IsWrappedBy() 213 T right = Right(); in Constrain() 215 T left = std::clamp(x_, other.Left(), other.Right()); in Constrain() 217 right = std::clamp(right, other.Left(), other.Right()) - left; in Constrain() 315 return !(LessNotEqual(other.Right(), Left()) || GreatNotEqual(other.Left(), Right()) || in IsIntersectWith() 321 return !(LessOrEqual(other.Right(), Left()) || GreatOrEqual(other.Left(), Right()) || in IsInnerIntersectWith() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
H A D | select_overlay_content_modifier.cpp | 233 auto right = viewPort_->Get().Right(); in ClipViewPort() 255 right = std::max(upHandle.Right() - halfWidth + handleRadius, right); in ClipViewPort() 262 right = std::max(downHandle.Right() - halfWidth + handleRadius, right); in ClipViewPort() 302 auto rectTopX = (handleRect.Left() + handleRect.Right()) / 2.0f; in PaintHandle() 384 return GreatOrEqual(handleRect.Right(), viewPort.Left() - VIEW_PORT_MODIFICATION_VALUE) && in CheckHandleCircleIsShow() 385 LessOrEqual(handleRect.Left(), viewPort.Right() + VIEW_PORT_MODIFICATION_VALUE); in CheckHandleCircleIsShow() 396 auto left = GreatOrEqual(handleRect.Right(), viewPort.Left() - VIEW_PORT_MODIFICATION_VALUE) in ClipHandleDrawRect() 406 auto right = LessOrEqual(handleRect.Left(), viewPort.Right() + VIEW_PORT_MODIFICATION_VALUE) in ClipHandleDrawRect() 407 ? handleRect.Right() + extendDimension in ClipHandleDrawRect() 408 : viewPort.Right(); in ClipHandleDrawRect() [all...] |
/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/text_field/ |
H A D | rosen_render_text_field.cpp | 67 auto rightWidth = decoration.GetBorder().Right().GetWidth().ConvertToPx(dipScale) + in GetInnerRect() 68 NormalizePercentToPx(decoration.GetPadding().Right(), false); in GetInnerRect() 82 outer.Right() - rightWidth - leftWidth - iconSpacing - passwordIconSpacing, in GetInnerRect() 86 outer.Right() - rightWidth - leftWidth - iconSpacing - passwordIconSpacing, 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() 203 canvas->drawLine((caretRect.Left() + caretRect.Right()) / 2.0, caretRect.Top(), in PaintSelectCaret() 204 (caretRect.Top(), caretRect.Left() + caretRect.Right()) / 2. in PaintSelectCaret() [all...] |
/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 | 27 ACE_DEFINE_PROPERTY_GROUP_ITEM(Right, Dimension); 99 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP(IndicatorLayoutStyle, Right, Dimension, PROPERTY_UPDATE_MEASURE_SELF);
|
/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()
|
H A D | rosen_scroll_fade_painter.cpp | 49 canvas->clipRect({ clipRect.Left(), clipRect.Top(), clipRect.Right(), clipRect.Bottom() }, SkClipOp::kIntersect); in Paint() 74 canvas->ClipRect(RSRect(clipRect.Left(), clipRect.Top(), clipRect.Right(), clipRect.Bottom()),
|
H A D | rosen_decoration_painter.cpp | 1354 rightWidth_ = NormalizeToPx(border.Right().GetWidth()); in CheckWidth() 1882 border.Right().GetColor().GetValue(), border.Bottom().GetColor().GetValue()); in PaintBorder() 1884 border.Top().GetWidth().ConvertToPx(dipScale), border.Right().GetWidth().ConvertToPx(dipScale), in PaintBorder() 1887 static_cast<uint32_t>(border.Top().GetBorderStyle()), static_cast<uint32_t>(border.Right().GetBorderStyle()), in PaintBorder() 1901 SkRect::MakeLTRB(paintSize.Left(), paintSize.Top(), paintSize.Right(), paintSize.Bottom())); in GetBoxOuterRRect() 1914 outerRRect.SetRect(RSRect(paintSize.Left(), paintSize.Top(), paintSize.Right(), paintSize.Bottom())); in GetBoxOuterRRect() 2034 float rightW = NormalizeToPx(border.Right().GetWidth()); in GetInnerRRect() 2061 float rightW = NormalizeToPx(border.Right().GetWidth()); in GetInnerRRect() 2098 float rightW = NormalizeToPx(border.Right().GetWidth()); in GetClipRRect() 2125 float rightW = NormalizeToPx(border.Right() in GetClipRRect() [all...] |
/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/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/button/ |
H A D | button_layout_property.h | 116 margin.right = CalcLength(dialogTheme->GetDividerPadding().Right()); in BothSidesMargin() 124 margin.right = CalcLength(dialogTheme->GetActionsPadding().Right()); in BothSidesMargin()
|
/foundation/arkui/ace_engine/frameworks/core/components/padding/ |
H A D | render_padding.cpp | 39 auto width = NormalizePercentToPx(padding_.Left(), false) + NormalizePercentToPx(padding_.Right(), false); in PerformLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | rosen_render_picker_base.cpp | 118 double rightLine = rect.Right(); in Paint() 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/properties/ |
H A D | scroll_bar.cpp | 49 barRect_ = Rect(size.Width() - normalWidth - NormalizeToPx(padding_.Right()), 0.0, in SetBarRegion() 81 double x = size.Width() - normalWidth - NormalizeToPx(padding_.Right()) + NormalizeToPx(position_); in SetRectTrickRegion() 86 Offset(NormalizeToPx(touchWidth_) - NormalizeToPx(normalWidth_) - NormalizeToPx(padding_.Right()), in SetRectTrickRegion()
|
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | box_component_helper.h | 74 return decoration->GetBorder().Right().GetColor(); in GetBorderColorRight() 227 return border.Right().GetBorderStyle(); in GetBorderStyleRight() 294 return decoration->GetBorder().Right().GetWidth(); in GetBorderRightWidth()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | rosen_render_context.cpp | 131 SkRect::MakeXYWH(clipHole_.Left(), clipHole_.Top(), clipHole_.Right(), clipHole_.Bottom()), in StartRecording() 140 RSRect(clipHole_.Left(), clipHole_.Top(), clipHole_.Right(), clipHole_.Bottom()), in StartRecording()
|
H A D | flutter_render_context.cpp | 154 recorder_.get(), estimatedRect_.Left(), estimatedRect_.Top(), estimatedRect_.Right(), estimatedRect_.Bottom()); in StartRecording() 159 clipHole_.Left(), clipHole_.Top(), clipHole_.Right(), clipHole_.Bottom(), SkClipOp::kDifference); in StartRecording()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_fe_flood.cpp | 44 { effectFilterArea.Left(), effectFilterArea.Top(), effectFilterArea.Right(), effectFilterArea.Bottom() }); in OnAsImageFilter()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/ |
H A D | focus_hub.cpp | 1140 auto centerToWindow = Offset((rect.Left() + rect.Right()) / 2, (rect.Top() + rect.Bottom()) / 2); 1141 auto centerToNode = Offset((rect.Right() - rect.Left()) / 2, (rect.Bottom() - rect.Top()) / 2); 2288 if (rect.Top() < projectRect.Bottom() && rect.Right() > projectRect.Left() && 2289 rect.Left() < projectRect.Right()) { 2290 areaWidth = std::min(rect.Right(), projectRect.Right()) - std::max(rect.Left(), projectRect.Left()); 2295 if (rect.Bottom() > projectRect.Top() && rect.Right() > projectRect.Left() && 2296 rect.Left() < projectRect.Right()) { 2297 areaWidth = std::min(rect.Right(), projectRect.Right()) [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/ |
H A D | scroll_bar.cpp | 93 auto scrollBarBottomOffset = OffsetF(touchRegion.Right(), touchRegion.Bottom()); in CheckBarDirection() 180 Rect(size.Width() - barWidth_ - NormalizeToPx(padding_.Right()), 0.0, barWidth_, height) + offset; in SetBarRegion() 260 double x = size.Width() - barWidth_ - NormalizeToPx(padding_.Right()) + NormalizeToPx(position_); in CalcScrollBarRegion() 268 Offset(NormalizeToPx(touchWidth_) - barWidth_ - NormalizeToPx(padding_.Right()), 0.0) + in CalcScrollBarRegion() 271 Offset(NormalizeToPx(hoverWidth_) - barWidth_ - NormalizeToPx(padding_.Right()), 0.0) + in CalcScrollBarRegion() 508 padding = NormalizeToPx(padding_.Right()); in GetRadiusAndPadding() 826 DumpLog::GetInstance().AddDesc(std::string("padding.right: ").append(padding_.Right().ToString())); in GetPositionModeDumpInfo() 1061 json->Put("padding.right", padding_.Right().ToString().c_str()); in GetPositionModeDumpInfo()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | text_overlay_manager.cpp | 477 canvas->drawRect(SkRect::MakeLTRB(selectionRect.Left(), selectionRect.Top(), selectionRect.Right(), 481 canvas->drawRect(SkRect::MakeLTRB(selectionRect.Right(), selectionRect.Top(), selectionRect.Left(), 502 RSRect(selectionRect.Left(), selectionRect.Top(), selectionRect.Right(), selectionRect.Bottom())); 505 RSRect(selectionRect.Right(), selectionRect.Top(), selectionRect.Left(), selectionRect.Bottom()));
|