Home
last modified time | relevance | path

Searched refs:contentRect (Results 1 – 25 of 46) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_paint_method.cpp67 if (contentRect.Width() >= 0.0f && (contentRect.Height() >= dividerHeight)) { in GetForegroundDrawFunction()
85 PaintDividerLines(canvas, contentRect, info, false); in PaintCustomDividerLines()
98 auto dividerLength = contentRect.Width(); in PaintDefaultDividerLines()
99 auto dividerMargin = contentRect.GetX(); in PaintDefaultDividerLines()
113 PaintDividerLines(canvas, contentRect, info); in PaintDefaultDividerLines()
150 auto dividerLength = contentRect.Width(); in NeedPaintDividerLines()
151 auto dividerMargin = contentRect.GetX(); in NeedPaintDividerLines()
187 upperLine = (contentRect.Height() - info.dividerHeight) / DOUBLE + contentRect.GetY(); in PaintDividerLines()
188 downLine = (contentRect.Height() + info.dividerHeight) / DOUBLE + contentRect.GetY(); in PaintDividerLines()
190 …upperLine = (contentRect.Height() - info.dividerHeight - info.dividerWidth) / DOUBLE + contentRect in PaintDividerLines()
[all …]
H A Dtextpicker_paint_method.h57 void PaintDividerLines(RSCanvas& canvas, const RectF& contentRect, const DividerInfo &info,
66 …bool NeedPaintDividerLines(const RectF &contentRect, const ItemDivider &divider, double dividerHei…
68 void PaintDefaultDividerLines(RSCanvas& canvas, const RectF &contentRect, double dividerHeight);
69 void PaintCustomDividerLines(RSCanvas& canvas, const RectF &contentRect, const RectF &frameRect,
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_picker/
H A Dtext_picker_divider_add_test.cpp283 RectF contentRect; variable
336 RectF contentRect; variable
389 RectF contentRect; variable
438 RectF contentRect; variable
487 RectF contentRect; variable
536 RectF contentRect; variable
577 RectF contentRect; variable
623 RectF contentRect; variable
666 RectF contentRect; variable
707 RectF contentRect; variable
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_paint_method.cpp60 …RectF contentRect = { padding.left.value_or(0), padding.top.value_or(0), frameRect.Width() - paddi… in GetForegroundDrawFunction() local
62 if (contentRect.Height() >= dividerSpacing) { in GetForegroundDrawFunction()
63 …DividerPainter dividerPainter(dividerLineWidth, contentRect.Width(), false, dividerColor, LineCap:… in GetForegroundDrawFunction()
64 double upperLine = (contentRect.Height() - dividerSpacing) / 2.0 + contentRect.GetY(); in GetForegroundDrawFunction()
65 double downLine = (contentRect.Height() + dividerSpacing) / 2.0 + contentRect.GetY(); in GetForegroundDrawFunction()
67 OffsetF offset = OffsetF(contentRect.GetX(), upperLine); in GetForegroundDrawFunction()
69 OffsetF offsetY = OffsetF(contentRect.GetX(), downLine); in GetForegroundDrawFunction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_paint_method.cpp59 RectF contentRect = { padding.left.value_or(0), padding.top.value_or(0), in GetForegroundDrawFunction() local
61 if (contentRect.Height() >= dividerSpacing) { in GetForegroundDrawFunction()
62 …DividerPainter dividerPainter(dividerLineWidth, contentRect.Width(), false, dividerColor, LineCap:… in GetForegroundDrawFunction()
63 double upperLine = (contentRect.Height() - dividerSpacing) / 2.0 + contentRect.GetY(); in GetForegroundDrawFunction()
64 double downLine = (contentRect.Height() + dividerSpacing) / 2.0 + contentRect.GetY(); in GetForegroundDrawFunction()
66 OffsetF offset = OffsetF(contentRect.GetX(), upperLine); in GetForegroundDrawFunction()
68 OffsetF offsetY = OffsetF(contentRect.GetX(), downLine); in GetForegroundDrawFunction()
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_edit_text.cpp336 Rect contentRect = GetContentRect(); in ReMeasure() local
353 Rect contentRect = GetContentRect(); in UpdateOffsetX() local
397 Rect contentRect = GetContentRect(); in GetFirstVisibleIndex() local
416 Rect contentRect = GetContentRect(); in GetLastVisibleIndex() local
432 Rect contentRect = GetContentRect(); in UpdateExtraOffsetX() local
567 Rect contentRect = GetContentRect(); in InsertTextByCursorIndex() local
589 Rect contentRect = GetContentRect(); in CalculatedCursorPos() local
592 cursorPosX_ = contentRect.GetX() + inputText_->GetPosXByLetterIndex(contentRect, in CalculatedCursorPos()
630 Rect contentRect = GetContentRect(); in UpdateOffsetBySetCursorIndex() local
634 if (newPosX <= contentRect.GetX()) { in UpdateOffsetBySetCursorIndex()
[all …]
H A Dui_toggle_button.cpp67 Rect contentRect = GetContentRect(); in CalculateSize() local
70 int16_t x = contentRect.GetX() + dx; in CalculateSize()
71 int16_t y = contentRect.GetY() + dy; in CalculateSize()
104 Rect contentRect = GetContentRect(); in OnDraw() local
106 bool isIntersect = trunc.Intersect(trunc, contentRect); in OnDraw()
H A Dui_radio_button.cpp92 Rect contentRect = GetContentRect(); in OnDraw() local
95 int16_t x = contentRect.GetX() + dx; in OnDraw()
96 int16_t y = contentRect.GetY() + dy; in OnDraw()
100 bool isIntersect = trunc.Intersect(trunc, contentRect); in OnDraw()
H A Dui_view.cpp808 Rect contentRect = GetRect(); in GetContentRect() local
809 contentRect.SetX(contentRect.GetX() + style_->paddingLeft_ + style_->borderWidth_); in GetContentRect()
810 contentRect.SetY(contentRect.GetY() + style_->paddingTop_ + style_->borderWidth_); in GetContentRect()
811 contentRect.SetWidth(GetWidth()); in GetContentRect()
812 contentRect.SetHeight(GetHeight()); in GetContentRect()
813 return contentRect; in GetContentRect()
818 Rect contentRect = GetOrigRect(); in GetOrigContentRect() local
819 contentRect.SetX(contentRect.GetX() + style_->paddingLeft_ + style_->borderWidth_); in GetOrigContentRect()
820 contentRect.SetY(contentRect.GetY() + style_->paddingTop_ + style_->borderWidth_); in GetOrigContentRect()
821 contentRect.SetWidth(GetWidth()); in GetOrigContentRect()
[all …]
H A Dui_checkbox.cpp240 Rect contentRect = GetContentRect(); in OnDraw() local
241 bool isIntersect = trunc.Intersect(trunc, contentRect); in OnDraw()
249 int16_t x = contentRect.GetX() + (width_ - borderWidth_) / 2; // 2: half in OnDraw()
250 int16_t y = contentRect.GetY() + (height_ - borderWidth_) / 2; // 2: half in OnDraw()
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_button.h318 Rect contentRect; in GetContentRect() local
320 contentRect.SetX(GetRect().GetX() + style->paddingLeft_ + style->borderWidth_); in GetContentRect()
321 contentRect.SetY(GetRect().GetY() + style->paddingTop_ + style->borderWidth_); in GetContentRect()
322 contentRect.SetWidth(GetWidth()); in GetContentRect()
323 contentRect.SetHeight(GetHeight()); in GetContentRect()
324 return contentRect; in GetContentRect()
329 Rect contentRect; in GetOrigContentRect() local
332 contentRect.SetY(GetOrigRect().GetY() + style->paddingTop_ + style->borderWidth_); in GetOrigContentRect()
333 contentRect.SetWidth(GetWidth()); in GetOrigContentRect()
334 contentRect.SetHeight(GetHeight()); in GetOrigContentRect()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_content_modifier.cpp46 auto contentRect = richEditorPattern->GetTextContentRect(); in onDraw() local
47 …RSRect clipInnerRect = RSRect(contentRect.GetX(), contentRect.GetY(), contentRect.GetX() + content… in onDraw()
48 contentRect.GetY() + contentRect.Height()); in onDraw()
H A Drich_editor_paint_method.cpp64 auto contentRect = richEditorPattern->GetTextContentRect(); in UpdateOverlayModifier() local
65 overlayMod->SetContentRect(contentRect); in UpdateOverlayModifier()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_layout_algorithm.cpp205 auto contentRect = layoutWrapper->GetGeometryNode()->GetContentRect(); in Layout() local
217 auto length = axis == Axis::HORIZONTAL ? contentRect.Width() : contentRect.Height(); in Layout()
225 CalculateBlockOffset(layoutWrapper, contentRect, selectOffset, axis, paintReverse); in Layout()
229 …LayoutWrapper* layoutWrapper, const RectF& contentRect, float selectOffset, Axis axis, bool revers… in CalculateBlockOffset() argument
247 circleCenter.SetY(contentRect.Height() * HALF); in CalculateBlockOffset()
249 circleCenter.SetX(contentRect.Width() * HALF); in CalculateBlockOffset()
254 circleCenter.SetX(contentRect.Width() - selectOffset); in CalculateBlockOffset()
255 circleCenter.SetY(contentRect.Height() * HALF); in CalculateBlockOffset()
257 circleCenter.SetX(contentRect.Width() * HALF); in CalculateBlockOffset()
258 circleCenter.SetY(contentRect.Height() - selectOffset); in CalculateBlockOffset()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/
H A Dtext_drag_pattern.cpp42 if (box.Bottom() + textStartY > contentRect.Top() + BOX_EPSILON) { in GetFirstBoxRect()
53 auto maxBottom = contentRect.GetY() + SystemProperties::GetDevicePhysicalHeight(); in GetLastBoxRect()
105 auto contentRect = pattern->GetTextContentRect(true); in CalculateTextDragData() local
110 RectF leftHandler = GetHandler(true, boxes, contentRect, globalOffset, textStartOffset); in CalculateTextDragData()
112 AdjustHandlers(contentRect, leftHandler, rightHandler); in CalculateTextDragData()
128 globalX = contentRect.Left() + globalOffset.GetX() - dragOffset; in CalculateTextDragData()
129 width = contentRect.Width(); in CalculateTextDragData()
149 auto box = isLeftHandler ? GetFirstBoxRect(boxes, contentRect, adjustedTextStartY) : in GetHandler()
150 GetLastBoxRect(boxes, contentRect, adjustedTextStartY); in GetHandler()
160 leftHandler.SetLeft(std::max(leftHandler.GetX(), contentRect.Left())); in AdjustHandlers()
[all …]
H A Dtext_drag_pattern.h217 …RectF GetHandler(const bool isLeftHandler, const std::vector<RectF> boxes, const RectF contentRect,
219 static void AdjustHandlers(const RectF contentRect, RectF& leftHandler, RectF& rightHandler);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_select_overlay.cpp109 auto contentRect = textPattern->GetTextContentRect(); in CheckAndAdjustHandle() local
113 auto visibleContentRect = contentRect.CombineRectT(localPaintRect); in CheckAndAdjustHandle()
118 auto contentRect = textPattern->GetTextContentRect(); in CheckAndAdjustHandle() local
119 …RectF visibleContentRect(contentRect.GetOffset() + textPattern->GetTextPaintOffset(), contentRect.… in CheckAndAdjustHandle()
160 auto contentRect = textPattern->GetTextContentRect(); in CheckHandleVisible() local
161 …RectF visibleContentRect(contentRect.GetOffset() + textPattern->GetTextPaintOffset(), contentRect.… in CheckHandleVisible()
183 auto contentRect = textPattern->GetTextContentRect(); in OnHandleMove() local
184 auto contentOffset = contentRect.GetOffset(); in OnHandleMove()
277 auto contentRect = pattern->GetTextContentRect(); in GetSelectArea() local
279 res = MergeSelectedBoxes(selectRects, contentRect, textRect, textPaintOffset); in GetSelectArea()
[all …]
H A Dbase_text_select_overlay.cpp379 auto contentRect = geometryNode->GetContentRect(); in CheckHandleIsVisibleWithTransform() local
1126 RectF contentRect; in GetClipHandleViewPort() local
1127 if (!GetFrameNodeContentRect(host, contentRect)) { in GetClipHandleViewPort()
1130 contentRect.SetOffset(contentRect.GetOffset() + host->GetPaintRectWithTransform().GetOffset()); in GetClipHandleViewPort()
1140 contentRect = contentRect.IntersectRectT(parentContentRect); in GetClipHandleViewPort()
1142contentRect.SetOffset(contentRect.GetOffset() + parent->GetPaintRectWithTransform().GetOffset()); in GetClipHandleViewPort()
1145 contentRect.SetWidth(std::max(contentRect.Width(), 0.0f)); in GetClipHandleViewPort()
1146 contentRect.SetHeight(std::max(contentRect.Height(), 0.0f)); in GetClipHandleViewPort()
1147 UpdateClipHandleViewPort(contentRect); in GetClipHandleViewPort()
1148 rect = contentRect; in GetClipHandleViewPort()
[all …]
H A Dtext_overlay_modifier.h44 void SetContentRect(const RectF& contentRect) in SetContentRect() argument
46 contentRect_ = contentRect; in SetContentRect()
H A Dtext_paint_method.cpp131 auto contentRect = textPattern->GetTextContentRect(); in UpdateOverlayModifier() local
135 selectedRects = CalculateSelectedRect(rects, contentRect.Width()); in UpdateOverlayModifier()
137 textOverlayModifier_->SetContentRect(contentRect); in UpdateOverlayModifier()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_select_overlay.cpp208 auto contentRect = pattern->GetContentRect(); in CheckHandleVisible() local
214 auto verticalEpsilon = std::max(0.0f, paintRect.Height() - contentRect.Height()); in CheckHandleVisible()
323 auto contentRect = pattern->GetContentRect(); in GetSelectArea() local
325 res = MergeSelectedBoxes(selectRects, contentRect, textRect, textPaintOffset); in GetSelectArea()
378 auto contentRect = pattern->GetContentRect(); in GetTextAreaCaretPosition() local
383 if (LessNotEqual(localOffset.GetY(), contentRect.GetY())) { in GetTextAreaCaretPosition()
385 } else if (GreatOrEqual(localOffset.GetY(), contentRect.GetY() + contentRect.Height())) { in GetTextAreaCaretPosition()
396 auto contentRect = pattern->GetContentRect(); in GetTextInputCaretPosition() local
399 if (LessNotEqual(localOffset.GetX(), contentRect.GetX())) { in GetTextInputCaretPosition()
407 if (GreatOrEqual(localOffset.GetX(), contentRect.GetX() + contentRect.Width())) { in GetTextInputCaretPosition()
H A Dtext_field_content_modifier.cpp69 auto contentRect = textFieldPattern->GetContentRect(); in onDraw() local
75 clipRectHeight = contentRect.GetY() + contentRect.Height(); in onDraw()
77 RSRect clipInnerRect = RSRect(contentRect.GetX(), contentRect.GetY(), in onDraw()
78contentRect.Width() + contentRect.GetX() + textFieldPattern->GetInlinePadding(), clipRectHeight); in onDraw()
82 …ACE_LAYOUT_SCOPED_TRACE("[%s][id:%d] [Rect:%s]", textField, frameNode->GetId(), contentRect.ToStri… in onDraw()
H A Dtext_field_overlay_modifier.cpp153 auto contentRect = textFieldPattern->GetContentRect(); in PaintUnderline() local
163 leftPoint.SetX(hasResponseArea ? 0.0 : contentRect.Left()); in PaintUnderline()
164 rightPoint.SetX(contentRect.Right()); in PaintUnderline()
166 leftPoint.SetX(contentRect.Left()); in PaintUnderline()
167 rightPoint.SetX(hasResponseArea ? textFrameRect.Width() : contentRect.Right()); in PaintUnderline()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dimage_painter.cpp197 void ImagePainter::DrawImageWithRepeat(RSCanvas& canvas, const RectF& contentRect) const in DrawImageWithRepeat()
203 auto offset = contentRect.GetOffset(); in DrawImageWithRepeat()
204 float contentWidth = contentRect.Width(); in DrawImageWithRepeat()
205 float contentHeight = contentRect.Height(); in DrawImageWithRepeat()
227 …atYTask = [this, &canvas, &config, &dirRepeatNum, &singleImageHeight, &imageRepeatY, &contentRect]( in DrawImageWithRepeat()
232 DrawStaticImage(canvas, offsetTempY, contentRect.GetSize()); in DrawImageWithRepeat()
238 DrawStaticImage(canvas, offsetTempX, contentRect.GetSize()); in DrawImageWithRepeat()
247 DrawStaticImage(canvas, offsetTempX, contentRect.GetSize()); in DrawImageWithRepeat()
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/image_provider/
H A Dmock_image_painter.cpp27 void ImagePainter::DrawImageWithRepeat(RSCanvas& canvas, const RectF& contentRect) const {} in DrawImageWithRepeat()

12