Home
last modified time | relevance | path

Searched refs:contentRect (Results 1 - 25 of 49) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_paint_method.cpp58 RectF contentRect = { padding.left.value_or(0), padding.top.value_or(0), in GetForegroundDrawFunction() local
66 if (contentRect.Width() >= 0.0f && (contentRect.Height() >= dividerHeight)) { in GetForegroundDrawFunction()
71 picker->PaintCustomDividerLines(canvas, contentRect, frameRect, divider, dividerHeight); in GetForegroundDrawFunction()
73 picker->PaintDefaultDividerLines(canvas, contentRect, dividerHeight); in GetForegroundDrawFunction()
79 void TextPickerPaintMethod::PaintCustomDividerLines(RSCanvas& canvas, const RectF &contentRect, const RectF &frameRect, in PaintCustomDividerLines() argument
83 if (NeedPaintDividerLines(contentRect, divider, dividerHeight, info)) { in PaintCustomDividerLines()
84 PaintDividerLines(canvas, contentRect, info, false); in PaintCustomDividerLines()
88 void TextPickerPaintMethod::PaintDefaultDividerLines(RSCanvas& canvas, const RectF &contentRect, in PaintDefaultDividerLines() argument
97 auto dividerLength = contentRect in PaintDefaultDividerLines()
138 NeedPaintDividerLines(const RectF &contentRect, const ItemDivider &divider, double dividerHeight, DividerInfo& info) NeedPaintDividerLines() argument
180 PaintDividerLines(RSCanvas& canvas, const RectF& contentRect, const DividerInfo &info, bool isDefaultLine) PaintDividerLines() argument
[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 dividerHeight,
68 void PaintDefaultDividerLines(RSCanvas& canvas, const RectF &contentRect, double dividerHeight);
69 void PaintCustomDividerLines(RSCanvas& canvas, const RectF &contentRect, const RectF &frameRect,
/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()
61 if (contentRect.Height() >= dividerSpacing) { in GetForegroundDrawFunction()
62 DividerPainter dividerPainter(dividerLineWidth, contentRect.Width(), false, dividerColor, LineCap::SQUARE); 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()
/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() - padding.Width(), in GetForegroundDrawFunction() local
62 if (contentRect.Height() >= dividerSpacing) { in GetForegroundDrawFunction()
63 DividerPainter dividerPainter(dividerLineWidth, contentRect.Width(), false, dividerColor, LineCap::SQUARE); 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()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_picker/
H A Dtext_picker_divider_add_test.cpp283 RectF contentRect; in HWTEST_F() local
284 contentRect.SetWidth(10.0); in HWTEST_F()
293 auto temp = textPickerPaintMethod->NeedPaintDividerLines(contentRect, itemDivider, dividerHeight, dividerInfo); in HWTEST_F()
336 RectF contentRect; in HWTEST_F() local
337 contentRect.SetWidth(2.0); in HWTEST_F()
346 auto result = textPickerPaintMethod->NeedPaintDividerLines(contentRect, itemDivider2, dividerHeight, dividerInfo2); in HWTEST_F()
389 RectF contentRect; in HWTEST_F() local
390 contentRect.SetWidth(10.0); in HWTEST_F()
399 auto result = textPickerPaintMethod->NeedPaintDividerLines(contentRect, itemDivider3, dividerHeight, dividerInfo3); in HWTEST_F()
438 RectF contentRect; in HWTEST_F() local
487 RectF contentRect; HWTEST_F() local
536 RectF contentRect; HWTEST_F() local
577 RectF contentRect; HWTEST_F() local
623 RectF contentRect; HWTEST_F() local
666 RectF contentRect; HWTEST_F() local
707 RectF contentRect; HWTEST_F() local
749 RectF contentRect; HWTEST_F() local
791 RectF contentRect; HWTEST_F() local
839 RectF contentRect; HWTEST_F() local
885 RectF contentRect; HWTEST_F() local
928 RectF contentRect; HWTEST_F() local
972 RectF contentRect; HWTEST_F() local
1022 RectF contentRect; HWTEST_F() local
1065 RectF contentRect; HWTEST_F() local
1115 RectF contentRect; HWTEST_F() local
1159 RectF contentRect; HWTEST_F() local
1211 RectF contentRect; HWTEST_F() local
1263 RectF contentRect; HWTEST_F() local
1315 RectF contentRect; HWTEST_F() local
[all...]
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_edit_text.cpp336 Rect contentRect = GetContentRect(); in ReMeasure() local
337 int16_t width = contentRect.GetWidth() - BOTH_SIDE_TEXT_OFFSET; in ReMeasure()
338 contentRect.SetWidth(width > 0 ? width : 0); in ReMeasure()
339 inputText_->ReMeasureTextSize(contentRect, style); in ReMeasure()
340 placeholderText_->ReMeasureTextSize(contentRect, style); in ReMeasure()
341 placeholderEllipsisIndex_ = placeholderText_->GetEllipsisIndex(contentRect, style); in ReMeasure()
342 placeholderText_->ReMeasureTextWidthInEllipsisMode(contentRect, style, placeholderEllipsisIndex_); in ReMeasure()
353 Rect contentRect = GetContentRect(); in UpdateOffsetX() local
397 Rect contentRect = GetContentRect(); in GetFirstVisibleIndex() local
405 firstVisibleIndex = inputText_->GetLetterIndexByLinePosition(style, contentRect in GetFirstVisibleIndex()
416 Rect contentRect = GetContentRect(); GetLastVisibleIndex() local
432 Rect contentRect = GetContentRect(); UpdateExtraOffsetX() local
567 Rect contentRect = GetContentRect(); InsertTextByCursorIndex() local
589 Rect contentRect = GetContentRect(); CalculatedCursorPos() local
630 Rect contentRect = GetContentRect(); UpdateOffsetBySetCursorIndex() local
721 Rect contentRect = GetContentRect(); UpdateOffsetByInputType() local
[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 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()
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_button.h318 Rect contentRect; variable
320 contentRect.SetX(GetRect().GetX() + style->paddingLeft_ + style->borderWidth_);
321 contentRect.SetY(GetRect().GetY() + style->paddingTop_ + style->borderWidth_);
322 contentRect.SetWidth(GetWidth());
323 contentRect.SetHeight(GetHeight());
324 return contentRect;
329 Rect contentRect; variable
331 contentRect.SetX(GetOrigRect().GetX() + style->paddingLeft_ + style->borderWidth_);
332 contentRect.SetY(GetOrigRect().GetY() + style->paddingTop_ + style->borderWidth_);
333 contentRect
[all...]
/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() + contentRect.Width(), in onDraw()
48 contentRect.GetY() + contentRect.Height()); in onDraw()
H A Drich_editor_paint_method.cpp60 auto contentRect = richEditorPattern->GetTextContentRect(); in UpdateOverlayModifier() local
61 overlayMod->SetContentRect(contentRect); in UpdateOverlayModifier()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/
H A Dtext_drag_pattern.cpp28 // uncertainty range when comparing selectedTextBox to contentRect
39 const RectF GetFirstBoxRect(const std::vector<RectF>& boxes, const RectF& contentRect, const float textStartY) in GetFirstBoxRect() argument
42 if (box.Bottom() + textStartY > contentRect.Top() + BOX_EPSILON) { in GetFirstBoxRect()
49 const RectF GetLastBoxRect(const std::vector<RectF>& boxes, const RectF& contentRect, const float textStartY) in GetLastBoxRect() argument
53 auto maxBottom = contentRect.GetY() + SystemProperties::GetDevicePhysicalHeight(); in GetLastBoxRect()
56 bool isReachingBottom = (caculateBottom >= maxBottom) || (caculateBottom >= contentRect.Bottom()); in GetLastBoxRect()
105 auto contentRect = pattern->GetTextContentRect(true); in CalculateTextDragData() local
110 RectF leftHandler = GetHandler(true, boxes, contentRect, globalOffset, textStartOffset); in CalculateTextDragData()
111 RectF rightHandler = GetHandler(false, boxes, contentRect, globalOffset, textStartOffset); in CalculateTextDragData()
112 AdjustHandlers(contentRect, leftHandle in CalculateTextDragData()
145 GetHandler(const bool isLeftHandler, const std::vector<RectF> boxes, const RectF contentRect, const OffsetF globalOffset, const OffsetF textStartOffset) GetHandler() argument
155 AdjustHandlers(const RectF contentRect, RectF& leftHandler, RectF& rightHandler) AdjustHandlers() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_layout_algorithm.cpp202 auto contentRect = layoutWrapper->GetGeometryNode()->GetContentRect(); in Layout() local
214 auto length = axis == Axis::HORIZONTAL ? contentRect.Width() : contentRect.Height(); in Layout()
222 CalculateBlockOffset(layoutWrapper, contentRect, selectOffset, axis, paintReverse); in Layout()
226 LayoutWrapper* layoutWrapper, const RectF& contentRect, float selectOffset, Axis axis, bool reverse) in CalculateBlockOffset()
244 circleCenter.SetY(contentRect.Height() * HALF); in CalculateBlockOffset()
246 circleCenter.SetX(contentRect.Width() * HALF); in CalculateBlockOffset()
251 circleCenter.SetX(contentRect.Width() - selectOffset); in CalculateBlockOffset()
252 circleCenter.SetY(contentRect.Height() * HALF); in CalculateBlockOffset()
254 circleCenter.SetX(contentRect in CalculateBlockOffset()
225 CalculateBlockOffset( LayoutWrapper* layoutWrapper, const RectF& contentRect, float selectOffset, Axis axis, bool reverse) CalculateBlockOffset() argument
[all...]
H A Dslider_layout_algorithm.h56 LayoutWrapper* layoutWrapper, const RectF& contentRect, float selectOffset, Axis axis, bool reverse);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_select_overlay.cpp102 auto contentRect = textPattern->GetTextContentRect(); in CheckAndAdjustHandle() local
106 auto visibleContentRect = contentRect.CombineRectT(localPaintRect); in CheckAndAdjustHandle()
111 auto contentRect = textPattern->GetTextContentRect(); in CheckAndAdjustHandle() local
112 RectF visibleContentRect(contentRect.GetOffset() + textPattern->GetTextPaintOffset(), contentRect.GetSize()); in CheckAndAdjustHandle()
153 auto contentRect = textPattern->GetTextContentRect(); in CheckHandleVisible() local
154 RectF visibleContentRect(contentRect.GetOffset() + textPattern->GetTextPaintOffset(), contentRect.GetSize()); in CheckHandleVisible()
176 auto contentRect = textPattern->GetTextContentRect(); in OnHandleMove() local
177 auto contentOffset = contentRect in OnHandleMove()
277 auto contentRect = pattern->GetTextContentRect(); GetSelectArea() local
[all...]
H A Dtext_overlay_modifier.h44 void SetContentRect(const RectF& contentRect) in SetContentRect() argument
46 contentRect_ = contentRect; in SetContentRect()
H A Dbase_text_select_overlay.cpp334 const std::vector<RectF>& boxes, const RectF& contentRect, const RectF& textRect, const OffsetF& paintOffset) in MergeSelectedBoxes()
340 res.SetRect(contentRect.GetX() + paintOffset.GetX(), frontRect.GetY() + textRect.GetY() + paintOffset.GetY(), in MergeSelectedBoxes()
341 contentRect.Width(), backRect.Bottom() - frontRect.Top()); in MergeSelectedBoxes()
380 auto contentRect = geometryNode->GetContentRect(); in CheckHandleIsVisibleWithTransform() local
381 auto rectVertices = GetGlobalRectVertexWithTransform(contentRect, epsilon); in CheckHandleIsVisibleWithTransform()
1134 RectF contentRect; in GetClipHandleViewPort() local
1135 if (!GetFrameNodeContentRect(host, contentRect)) { in GetClipHandleViewPort()
1138 contentRect.SetOffset(contentRect.GetOffset() + host->GetPaintRectWithTransform().GetOffset()); in GetClipHandleViewPort()
1148 contentRect in GetClipHandleViewPort()
333 MergeSelectedBoxes( const std::vector<RectF>& boxes, const RectF& contentRect, const RectF& textRect, const OffsetF& paintOffset) MergeSelectedBoxes() argument
1160 GetFrameNodeContentRect(const RefPtr<FrameNode>& node, RectF& contentRect) GetFrameNodeContentRect() argument
[all...]
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()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_select_overlay.cpp39 // uncertainty range when comparing selectedTextBox to contentRect
221 auto contentRect = pattern->GetContentRect(); in CheckHandleVisible() local
227 auto verticalEpsilon = std::max(0.0f, paintRect.Height() - contentRect.Height()); in CheckHandleVisible()
341 auto contentRect = pattern->GetContentRect(); in GetSelectArea() local
343 res = MergeSelectedBoxes(selectRects, contentRect, textRect, textPaintOffset); in GetSelectArea()
396 auto contentRect = pattern->GetContentRect(); in GetTextAreaCaretPosition() local
400 if (LessNotEqual(localOffset.GetY(), contentRect.GetY())) { in GetTextAreaCaretPosition()
401 offset = Offset(localOffset.GetX() - paddingLeft, contentRect.GetY() - textRect.GetY()); in GetTextAreaCaretPosition()
402 } else if (GreatOrEqual(localOffset.GetY(), contentRect.GetY() + contentRect in GetTextAreaCaretPosition()
413 auto contentRect = pattern->GetContentRect(); GetTextInputCaretPosition() local
[all...]
H A Dtext_field_content_modifier.cpp87 auto contentRect = textFieldPattern->GetContentRect(); in onDraw() local
104 clipRectHeight = contentRect.GetY() + contentRect.Height(); in onDraw()
106 RSRect clipInnerRect = RSRect(contentRect.GetX(), contentRect.GetY(), in onDraw()
107 contentRect.Width() + contentRect.GetX() + textFieldPattern->GetInlinePadding(), clipRectHeight); in onDraw()
111 ACE_LAYOUT_SCOPED_TRACE("[%s][id:%d] [Rect:%s]", textField, frameNode->GetId(), contentRect.ToString().c_str()); 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()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dimage_painter.cpp201 void ImagePainter::DrawImageWithRepeat(RSCanvas& canvas, const RectF& contentRect) const in DrawImageWithRepeat()
207 auto offset = contentRect.GetOffset(); in DrawImageWithRepeat()
208 float contentWidth = contentRect.Width(); in DrawImageWithRepeat()
209 float contentHeight = contentRect.Height(); in DrawImageWithRepeat()
231 auto drawRepeatYTask = [this, &canvas, &config, &dirRepeatNum, &singleImageHeight, &imageRepeatY, &contentRect]( in DrawImageWithRepeat()
236 DrawStaticImage(canvas, offsetTempY, contentRect.GetSize()); in DrawImageWithRepeat()
242 DrawStaticImage(canvas, offsetTempX, contentRect.GetSize()); in DrawImageWithRepeat()
251 DrawStaticImage(canvas, offsetTempX, contentRect.GetSize()); in DrawImageWithRepeat()
/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()

Completed in 23 milliseconds

12