Home
last modified time | relevance | path

Searched refs:paintInfo (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dselect_overlay_property.h86 SelectHandlePaintInfo paintInfo; member
91 … return (isShow == info.isShow) && (paintRect == info.paintRect) && (paintInfo == info.paintInfo);
102 auto offsetX = std::max(paintInfo.startPoint.GetX(), paintInfo.endPoint.GetX()); in GetPaintRect()
103 auto offsetY = std::min(paintInfo.startPoint.GetY(), paintInfo.endPoint.GetY()); in GetPaintRect()
104 auto height = paintInfo.endPoint.GetY() - paintInfo.startPoint.GetY(); in GetPaintRect()
105 return RectF(OffsetF(offsetX, offsetY), SizeF(paintInfo.width, std::abs(height))); in GetPaintRect()
H A Dselect_overlay_content_modifier.h172 void SetSecondHandlePaintInfo(const SelectHandlePaintInfo& paintInfo) in SetSecondHandlePaintInfo() argument
174 secondHandlePaintInfo_ = paintInfo; in SetSecondHandlePaintInfo()
177 void SetFirstHandlePaintInfo(const SelectHandlePaintInfo& paintInfo) in SetFirstHandlePaintInfo() argument
179 firstHandlePaintInfo_ = paintInfo; in SetFirstHandlePaintInfo()
218 RectF ConvertPointsToRect(const SelectHandlePaintInfo& paintInfo) const;
H A Dselect_overlay_content_modifier.cpp277 RectF SelectOverlayContentModifier::ConvertPointsToRect(const SelectHandlePaintInfo& paintInfo) con… in ConvertPointsToRect()
280 auto left = std::min(paintInfo.startPoint.GetX(), paintInfo.endPoint.GetX()) - handleDiameter; in ConvertPointsToRect()
281 auto right = std::max(paintInfo.startPoint.GetX(), paintInfo.endPoint.GetX()) + handleDiameter; in ConvertPointsToRect()
282 auto top = std::min(paintInfo.startPoint.GetY(), paintInfo.endPoint.GetY()) - handleDiameter; in ConvertPointsToRect()
283 auto bottom = std::max(paintInfo.startPoint.GetY(), paintInfo.endPoint.GetY()) + handleDiameter; in ConvertPointsToRect()
284 auto width = std::max(right - left, paintInfo.width); in ConvertPointsToRect()
285 auto height = std::max(bottom - top, paintInfo.width); in ConvertPointsToRect()
H A Dselect_overlay_paint_method.cpp98 selectOverlayContentModifier_->SetFirstHandlePaintInfo(info_.firstHandle.paintInfo - offset); in UpdateContentModifier()
100 selectOverlayContentModifier_->SetSecondHandlePaintInfo(info_.secondHandle.paintInfo - offset); in UpdateContentModifier()
H A Dselect_overlay_pattern.cpp373 handleInfo.paintInfo = handleInfo.paintInfo + offset; in UpdateOffsetOnMove()
375 paintRect = handleInfo.paintInfoConverter(handleInfo.paintInfo); in UpdateOffsetOnMove()
421 paintRect = handleInfo.paintInfoConverter(handleInfo.paintInfo); in GetHandlePaintRect()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dbase_text_select_overlay.cpp352 SelectHandlePaintInfo paintInfo; in SetTransformPaintInfo() local
356 paintInfo.startPoint = points[0]; in SetTransformPaintInfo()
357 paintInfo.endPoint = points[1]; in SetTransformPaintInfo()
358 paintInfo.width = localHandleRect.Width(); in SetTransformPaintInfo()
359 handleInfo.paintInfo = paintInfo; in SetTransformPaintInfo()
363 return overlay->ConvertPaintInfoToRect(paintInfo); in SetTransformPaintInfo()
367 …CheckHandleIsVisibleWithTransform(paintInfo.startPoint, paintInfo.endPoint, localHandleRect.Width(… in SetTransformPaintInfo()
585 RectF BaseTextSelectOverlay::ConvertPaintInfoToRect(const SelectHandlePaintInfo& paintInfo) in ConvertPaintInfoToRect() argument
587 auto topOffset = paintInfo.startPoint; in ConvertPaintInfoToRect()
589 auto bottomOffset = paintInfo.endPoint; in ConvertPaintInfoToRect()
[all …]
H A Dbase_text_select_overlay.h271 RectF ConvertPaintInfoToRect(const SelectHandlePaintInfo& paintInfo);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_content_overlay/
H A Dselect_content_overlay_pattern.cpp211 …auto startPoint = isFirst ? info_->firstHandle.paintInfo.startPoint : info_->secondHandle.paintInf… in GetHandleHotZoneOffset()
212 …auto endPoint = isFirst ? info_->firstHandle.paintInfo.endPoint : info_->secondHandle.paintInfo.en… in GetHandleHotZoneOffset()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_pattern.cpp6790 selectOverlayInfo->firstHandle.paintInfo.startPoint.ToString().c_str(), filter); in OnBackPressed()
6792 selectOverlayInfo->firstHandle.paintInfo.endPoint.ToString().c_str(), filter); in OnBackPressed()
6797 selectOverlayInfo->secondHandle.paintInfo.startPoint.ToString().c_str(), filter); in OnBackPressed()
6799 selectOverlayInfo->secondHandle.paintInfo.endPoint.ToString().c_str(), filter); in OnBackPressed()