Home
last modified time | relevance | path

Searched refs:Left (Results 1 - 25 of 217) sorted by relevance

123456789

/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Drect.h73 double Left() const in Left() function in OHOS::Ace::Rect
153 return (Left() >= other.Left()) && (Right() <= other.Right()) && (Top() >= other.Top()) && in IsWrappedBy()
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() || other.Bottom() <= Top() || other.Top() >= Bottom()); in IsIntersectByCommonSideWith()
249 double left = std::max(Left(), othe in IntersectRect()
[all...]
/foundation/arkui/ace_engine/frameworks/core/accessibility/
H A Daccessibility_utils.cpp76 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()
105 distance = nodeRect.Left() - itemRect.Left(); 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() in MinorAxisDistance()
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Drect_t.h93 T Left() const in Left() function in OHOS::Ace::NG::RectT
197 return GreatOrEqual(Left(), other.Left()) && LessOrEqual(Right(), other.Right()) && in IsWrappedBy()
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()
327 return !(LessOrEqual(other.Right(), Left() in IsInnerIntersectWithRound()
[all...]
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_viewport_config.h33 config_.Left() == other.config_.Left() && in operator ==()
45 config_.Left() != other.config_.Left() || in operator !=()
/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drosen_render_svg_pattern.cpp54 SkRect skRect = SkRect::MakeXYWH(tileRect.Left(), tileRect.Top(), tileRect.Width(), tileRect.Height()); in OnAsPaint()
79 RSRect rect = RSRect(tileRect.Left(), tileRect.Top(), tileRect.Right(), tileRect.Bottom()); in OnAsPaint()
112 tx_ = tileRect.Width() * 0.5 - (viewBox_.Width() * 0.5 + viewBox_.Left()) * scale_; in FitAttribute()
127 if (!NearZero(patternRect.Left()) || !NearZero(patternRect.Top())) { in GetTransform()
129 Matrix4::CreateTranslate(patternRect.Left(), patternRect.Top(), 0) * transformInfo.matrix4; in GetTransform()
143 Rect rect(patternRect.Left(), patternRect.Top(), patternRect.Width() / scaleX_, patternRect.Height() / scaleY_); in FitRenderContext()
H A Drosen_render_svg_mask.cpp37 SkRect maskBounds = SkRect::MakeXYWH(SkDoubleToScalar(paintRect.Left() + ParseUnitsAttr(x_, paintRect.Width())), in PaintMaskLayer()
57 RSRect maskBounds = RSRect(static_cast<RSScalar>(paintRect.Left() + ParseUnitsAttr(x_, paintRect.Width())), in PaintMaskLayer()
60 paintRect.Left() + ParseUnitsAttr(x_, paintRect.Width())), in PaintMaskLayer()
/foundation/arkui/ace_engine/frameworks/core/components/side_bar/
H A Drosen_render_side_bar_container.cpp40 skPath.addRect(SkRect::MakeXYWH(paintRect.Left(), paintRect.Top(), paintRect.Width(), paintRect.Height())); in Paint()
44 dPath.AddRect(RSRect(paintRect.Left(), paintRect.Top(), paintRect.Right(), paintRect.Bottom())); in Paint()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Drosen_render_picker_base.cpp117 double leftLine = rect.Left(); in Paint()
157 SkPoint beginPoint = SkPoint::Make(SkDoubleToScalar(rect.Left()), SkDoubleToScalar(rect.Top())); in PaintGradient()
158 SkPoint endPoint = SkPoint::Make(SkDoubleToScalar(rect.Left()), SkDoubleToScalar(rect.Bottom())); in PaintGradient()
162 RSPoint beginPoint(static_cast<RSScalar>(rect.Left()), static_cast<RSScalar>(rect.Top())); 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/adapter/ohos/osal/
H A Dstylus_detector_mgr.cpp188 rect.Left, rect.Top, rect.Width, rect.Height); in DeleteText()
197 windowRect.Left(), windowRect.Top()); in DeleteText()
198 Offset startCenterGlobalOffset = Offset(rect.Left - windowRect.Left(), in DeleteText()
200 Offset endCenterGlobalOffset = Offset(rect.Left - windowRect.Left() + rect.Width, in DeleteText()
239 windowRect.Left(), windowRect.Top()); in ChoiceText()
240 Offset startCenterGlobalOffset = Offset(rect.Left - windowRect.Left(), in ChoiceText()
242 Offset endCenterGlobalOffset = Offset(rect.Left in ChoiceText()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_overlay_modifier.cpp63 rect.SetWidth(std::max(contentRect_.value().Right() - rect.Left(), 0.0f)); in onDraw()
66 drawingContext.canvas.DrawRect(RSRect(paintOffset.GetX() + rect.Left(), paintOffset.GetY() + rect.Top(), in onDraw()
78 rect.SetWidth(std::max(contentRect_.value().Right() - rect.Left(), 0.0f)); in onDraw()
81 drawingContext.canvas.DrawRect(RSRect(paintOffset.GetX() + rect.Left(), paintOffset.GetY() + rect.Top(), in onDraw()
H A Dtext_base.cpp71 auto rect = RectF(line.second.Left(), lastLineBottom, longestLine - line.second.Left(), in CalculateSelectedRect()
76 selectedRect.emplace_back(RectF(end.second.Left(), lastLineBottom, end.second.Width(), end.second.Height())); in CalculateSelectedRect()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dfocus_state_modifier.h46 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()
129 rect.GetRect().Left() - borderWidth / 2, rect.GetRect().Top() - borderWidth / 2, in SetRoundRect()
/foundation/arkui/ace_engine/frameworks/core/components/padding/
H A Drender_padding.cpp39 auto width = NormalizePercentToPx(padding_.Left(), false) + NormalizePercentToPx(padding_.Right(), false); in PerformLayout()
41 auto left = NormalizePercentToPx(padding_.Left(), false); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/select_popup/
H A Drosen_render_select_popup.cpp91 RSPoint beginPoint(static_cast<RSScalar>(gradientRect.Left()), static_cast<RSScalar>(gradientRect.Top())); in PaintGradient()
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/box/
H A Dbox_component_helper.h58 return decoration->GetBorder().Left().GetColor(); in GetBorderColor()
66 return decoration->GetBorder().Left().GetColor(); in GetBorderColorLeft()
209 return border.Left().GetBorderStyle(); in GetBorderStyle()
218 return border.Left().GetBorderStyle(); in GetBorderStyleLeft()
278 return decoration->GetBorder().Left().GetWidth(); in GetBorderWidth()
286 return decoration->GetBorder().Left().GetWidth(); in GetBorderLeftWidth()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dselect_overlay_content_modifier.cpp231 auto left = viewPort_->Get().Left(); in ClipViewPort()
254 left = std::min(upHandle.Left() + halfWidth - handleRadius, left); in ClipViewPort()
261 left = std::min(downHandle.Left() + halfWidth - handleRadius, left); 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()
397 ? handleRect.Left() - extendDimension in ClipHandleDrawRect()
398 : viewPort.Left(); in ClipHandleDrawRect()
406 auto right = LessOrEqual(handleRect.Left(), viewPor in ClipHandleDrawRect()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Drosen_render_text_field.cpp63 auto leftWidth = decoration.GetBorder().Left().GetWidth().ConvertToPx(dipScale) + in GetInnerRect()
64 NormalizePercentToPx(decoration.GetPadding().Left(), false); in GetInnerRect()
81 return Rect(outer.Left() + leftWidth + passwordIconSpacing, outer.Top() + topWidth, in GetInnerRect()
85 return Rect(outer.Left() + leftWidth + iconSpacing, outer.Top() + topWidth, in GetInnerRect()
148 SkRect::MakeLTRB(caretRect.Left(), caretRect.Top(), caretRect.Right(), caretRect.Bottom()), paint); in PaintCaret()
152 rrect.setRectXY(SkRect::MakeLTRB(SkDoubleToScalar(caretRect.Left()), SkDoubleToScalar(caretRect.Top()), in PaintCaret()
161 canvas.DrawRect(RSRect(caretRect.Left(), caretRect.Top(), caretRect.Right(), caretRect.Bottom())); in PaintCaret()
164 RSRoundRect rrect(RSRect(static_cast<RSScalar>(caretRect.Left()), static_cast<RSScalar>(caretRect.Top()), in PaintCaret()
203 canvas->drawLine((caretRect.Left() + caretRect.Right()) / 2.0, caretRect.Top(), in PaintSelectCaret()
204 (caretRect.Top(), caretRect.Left() in PaintSelectCaret()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_svg.cpp73 canvas.Translate(-1 * viewBox.Left(), -1 * viewBox.Top()); in AdjustContentAreaByViewBox()
81 canvas.Translate(-1 * viewBox.Left(), -1 * viewBox.Top()); in AdjustContentAreaByViewBox()
89 canvas.Translate(-1 * viewBox.Left(), -1 * viewBox.Top()); in AdjustContentAreaByViewBox()
99 canvas.Translate(-1 * viewBox.Left(), -1 * viewBox.Top()); in AdjustContentAreaByViewBox()
/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Dviewport_config.h53 int32_t Left() const in Left() function in OHOS::Ace::ViewportConfig
97 posX_ == other.Left() && in operator ==()
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_universal_painter.cpp60 SkRect skRect = SkRect::MakeXYWH(paintRect.Left(), paintRect.Top(), paintRect.Width(), paintRect.Height()); in DrawRRectBackground()
87 RSRect rect = RSRect(paintRect.Left(), paintRect.Top(), in DrawRRectBackground()
88 paintRect.Width() + paintRect.Left(), paintRect.Height() + paintRect.Top()); in DrawRRectBackground()
/foundation/arkui/ace_engine/frameworks/core/components/tip/
H A Drender_tip.cpp60 double paddingLeft = NormalizeToPx(padding_.Left()); in PerformLayout()
90 padding_.SetLeft(Dimension(NormalizeToPx(padding_.Left()), DimensionUnit::PX)); in AdaptChildPadding()
/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Dbutton_element.cpp129 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 Dswiper_indicator_layout_property.h25 ACE_DEFINE_PROPERTY_GROUP_ITEM(Left, Dimension);
97 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP(IndicatorLayoutStyle, Left, Dimension, PROPERTY_UPDATE_MEASURE_SELF);
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
H A Drosen_render_context.cpp126 SkRect::MakeXYWH(estimatedRect_.Left(), estimatedRect_.Top(), estimatedRect_.Width(), estimatedRect_.Height())); in StartRecording()
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()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dimage_composed_element.cpp196 int32_t style = static_cast<int32_t>(border.Left().GetBorderStyle()); in GetBorderStyle()
207 return border.Left().GetWidth().ToString(); in GetBorderWidth()
217 return border.Left().GetColor().ColorToString(); in GetBorderColor()

Completed in 12 milliseconds

123456789