Home
last modified time | relevance | path

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

123456789

/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Drect.h78 double Top() const in Top() function in OHOS::Ace::Rect
153 return (Left() >= other.Left()) && (Right() <= other.Right()) && (Top() >= other.Top()) && in IsWrappedBy()
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()
251 double top = std::max(Top(), othe in IntersectRect()
[all...]
/foundation/arkui/ace_engine/frameworks/core/accessibility/
H A Daccessibility_utils.cpp73 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()
111 distance = nodeRect.Top() - itemRect.Top(); 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() in MinorAxisDistance()
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Drect_t.h98 T Top() const in Top() function in OHOS::Ace::NG::RectT
198 GreatOrEqual(Top(), other.Top()) && LessOrEqual(Bottom(), other.Bottom()); in IsWrappedBy()
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()
328 LessOrEqual(other.Bottom(), Top() in IsInnerIntersectWithRound()
[all...]
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_viewport_config.h34 config_.Top() == other.config_.Top() && in operator ==()
46 config_.Top() != other.config_.Top() || 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()
113 ty_ = tileRect.Height() * 0.5 - (viewBox_.Height() * 0.5 + viewBox_.Top()) * 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.cpp38 SkDoubleToScalar(paintRect.Top() + ParseUnitsAttr(y_, paintRect.Height())), in PaintMaskLayer()
58 static_cast<RSScalar>(paintRect.Top() + ParseUnitsAttr(y_, paintRect.Height())), in PaintMaskLayer()
62 paintRect.Top() + ParseUnitsAttr(y_, paintRect.Height()))); 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_ng/pattern/select_content_overlay/
H A Dselect_content_overlay_pattern.cpp104 isReversed = GreatNotEqual(firstRect.Top(), secondRect.Top()); in CheckHandleReverse()
118 if (GreatNotEqual(first.Top(), second.Top())) { in IsHandleInSameLine()
119 lowerHandleTop = first.Top() + 0.5f; // 0.5f : for round in IsHandleInSameLine()
122 lowerHandleTop = second.Top() + 0.5f; // 0.5f : for round in IsHandleInSameLine()
125 return GreatNotEqual(lowerHandleTop, heigherHandleRect.Top()) && in IsHandleInSameLine()
/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()
199 rect.Top - windowRect.Top() + rect.Height / 2); in DeleteText()
201 rect.Top - windowRect.Top() + rect.Height / 2); in DeleteText()
239 windowRect.Left(), windowRect.Top()); in ChoiceText()
241 rect.Top - windowRect.Top() + rect.Height / 2); in ChoiceText()
243 rect.Top in ChoiceText()
[all...]
/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_ng/pattern/select_overlay/
H A Dselect_overlay_layout_algorithm.cpp111 auto top = info_->isNewAvoid ? info_->selectArea.Top() : firstHandleRect.Top(); in CalculateCustomMenuLayoutConstraint()
326 static_cast<float>(singleHandle.Top() - menuSpacing - menuHeight)); in ComputeSelectMenuPosition()
330 static_cast<float>(firstHandleRect.Top() - menuSpacing - menuHeight)); in ComputeSelectMenuPosition()
339 !NearEqual(firstHandleRect.Top(), secondHandleRect.Top())) { in ComputeSelectMenuPosition()
340 auto top = std::min(firstHandleRect.Top(), secondHandleRect.Top()); in ComputeSelectMenuPosition()
368 menuPosition.SetY(singleHandle.Top()); in ComputeSelectMenuPosition()
371 if (safeAreaManager && safeAreaManager->GetSystemSafeArea().top_.Length() > singleHandle.Top()) { in ComputeSelectMenuPosition()
[all...]
H A Dselect_overlay_pattern.cpp190 auto secondHandleOffsetY = secondHandle.Top(); in UpdateHandleHotZone()
202 auto firstHandleOffsetY = firstHandle.Top(); in UpdateHandleHotZone()
216 auto firstHandleOffsetY = firstHandle.Top(); in UpdateHandleHotZone()
218 auto secondHandleOffsetY = secondHandle.Top(); in UpdateHandleHotZone()
221 auto firstHandleOffsetY = firstHandle.Top(); in UpdateHandleHotZone()
223 auto secondHandleOffsetY = secondHandle.Top(); in UpdateHandleHotZone()
456 } else if (GreatNotEqual(info_->firstHandle.paintRect.Top(), info_->secondHandle.paintRect.Top())) { in CheckHandleReverse()
476 if (GreatNotEqual(info_->firstHandle.paintRect.Top(), info_->secondHandle.paintRect.Top())) { in IsHandlesInSameLine()
[all...]
H A Dselect_overlay_content_modifier.cpp232 auto top = viewPort_->Get().Top(); in ClipViewPort()
256 top = std::min(upHandle.Top() - handleDiameter, top); in ClipViewPort()
263 top = std::min(downHandle.Top(), top); in ClipViewPort()
310 centerOffset.SetY(handleRect.Top() - handleRadius); in PaintHandle()
399 auto topInViewPort = GreatOrEqual(handleRect.Top(), viewPort.Top() - VIEW_PORT_MODIFICATION_VALUE); in ClipHandleDrawRect()
401 auto top = viewPort.Top() - (topInViewPort ? handleRect.Width() / 2.0f : 0.0f); in ClipHandleDrawRect()
404 top = viewPort.Top() - 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/padding/
H A Drender_padding.cpp40 auto height = NormalizePercentToPx(padding_.Top(), true) + NormalizePercentToPx(padding_.Bottom(), true); in PerformLayout()
42 auto top = NormalizePercentToPx(padding_.Top(), true); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Drosen_render_picker_base.cpp115 double upperLine = rect.Top() + rect.Height() / 2.0 - dividerSpacing / 2.0; in Paint()
116 double downLine = rect.Top() + rect.Height() / 2.0 + dividerSpacing / 2.0; in Paint()
157 SkPoint beginPoint = SkPoint::Make(SkDoubleToScalar(rect.Left()), SkDoubleToScalar(rect.Top())); in PaintGradient()
162 RSPoint beginPoint(static_cast<RSScalar>(rect.Left()), static_cast<RSScalar>(rect.Top())); 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_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.h58 int32_t Top() const in Top() function in OHOS::Ace::ViewportConfig
98 posY_ == other.Top() && 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/ability/ability_lite/frameworks/ability_lite/include/
H A Dability_slice_stack.h35 const AbilitySlice *Top() const;
/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Drosen_render_text_field.cpp65 auto topWidth = decoration.GetBorder().Top().GetWidth().ConvertToPx(dipScale) + in GetInnerRect()
66 NormalizePercentToPx(decoration.GetPadding().Top(), true); 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(), caretRec in PaintSelectCaret()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/tip/
H A Drender_tip.cpp61 double paddingTop = NormalizeToPx(padding_.Top()); in PerformLayout()
76 padding_.SetTop(Dimension(NormalizeToPx(padding_.Top()), DimensionUnit::PX)); in AdaptChildPadding()
/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()
105 canvas->DrawRect(RSRect(gradientRect.Left(), gradientRect.Top(), gradientRect.Right(), gradientRect.Bottom())); in PaintGradient()
/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.h26 ACE_DEFINE_PROPERTY_GROUP_ITEM(Top, Dimension);
98 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP(IndicatorLayoutStyle, Top, 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()

Completed in 18 milliseconds

123456789