/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_overlay_modifier.cpp | 54 if (contentRect_.has_value() && isClip_ && isClip_->Get()) { in onDraw() 55 drawingContext.canvas.ClipRect(ToRSRect(contentRect_.value()), RSClipOp::INTERSECT); in onDraw() 61 if (contentRect_.has_value()) { in onDraw() 62 if (rect.Right() > contentRect_.value().Right()) { in onDraw() 63 rect.SetWidth(std::max(contentRect_.value().Right() - rect.Left(), 0.0f)); in onDraw() 76 if (contentRect_.has_value()) { in onDraw() 77 if (rect.Right() > contentRect_.value().Right()) { in onDraw() 78 rect.SetWidth(std::max(contentRect_.value().Right() - rect.Left(), 0.0f)); in onDraw()
|
H A D | text_overlay_modifier.h | 46 contentRect_ = contentRect; in SetContentRect() 62 std::optional<RectF> contentRect_; member in OHOS::Ace::NG::TextOverlayModifier
|
H A D | text_base.h | 168 return contentRect_; in GetContentRect() 173 return contentRect_; in GetPaintContentRect() 241 RectF contentRect_; member in OHOS::Ace::NG::TextBase
|
H A D | text_pattern.cpp | 167 selectionOffset.SetX(contentRect_.Width()); in InitSelection() 207 auto textContentGlobalOffset = selectOverlay_->GetHandleGlobalOffset() + contentRect_.GetOffset(); in CalculateHandleOffsetAndShowOverlay() 358 auto textPaintOffset = contentRect_.GetOffset() - OffsetF(0.0f, std::min(baselineOffset_, 0.0f)); in HandleLongPress() 421 RectF textContentRect = contentRect_; in HandleSpanLongPressEvent() 422 textContentRect.SetTop(contentRect_.GetY() - std::min(baselineOffset_, 0.0f)); in HandleSpanLongPressEvent() 423 textContentRect.SetHeight(contentRect_.Height() - std::max(baselineOffset_, 0.0f)); in HandleSpanLongPressEvent() 438 textContentRect.SetTop(contentRect_.GetY() - std::min(baselineOffset_, 0.0f)); in HandleSpanLongPressEvent() 474 auto textContentGlobalOffset = parentGlobalOffset_ + contentRect_.GetOffset(); in OnHandleMove() 488 } else if (GreatOrEqual(localOffset.GetX(), textContentGlobalOffset.GetX() + contentRect_.Width())) { in OnHandleMove() 489 localOffset.SetX(textContentGlobalOffset.GetX() + contentRect_ in OnHandleMove() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_select_controller.cpp | 58 rect.SetLeft(contentRect_.Left()); in CalculateEmptyValueCaretRect() 59 rect.SetTop(contentRect_.Top()); in CalculateEmptyValueCaretRect() 68 rect.SetLeft(contentRect_.GetX()); in CalculateEmptyValueCaretRect() 72 rect.SetLeft(static_cast<float>(contentRect_.GetX()) + contentRect_.Width() / 2.0f); in CalculateEmptyValueCaretRect() 80 rect.SetLeft(static_cast<float>(contentRect_.GetX()) + contentRect_.Width() - in CalculateEmptyValueCaretRect() 91 OffsetF offset = Alignment::GetAlignPosition(contentRect_.GetSize(), rect.GetSize(), align); in CalculateEmptyValueCaretRect() 92 rect.SetTop(offset.GetY() + contentRect_.GetY()); in CalculateEmptyValueCaretRect() 113 if (caretMetrics.height > contentRect_ in FitCaretMetricsToContentRect() [all...] |
H A D | text_field_pattern.cpp | 363 static_cast<double>(std::max(inlineMeasureItem_.inlineLastOffsetY, contentRect_.GetY() - textRect_.GetY())), in CalcInlineScrollRect() 415 return std::min(static_cast<float>(fontSize.ConvertToPx()), contentRect_.Height()); in GetTextOrPlaceHolderFontSize() 518 contentRect_ = dirty->GetGeometryNode()->GetContentRect(); in OnDirtyLayoutWrapperSwap() 770 auto contentBottomBoundary = contentRect_.GetY() + contentRect_.GetSize().Height(); in AdjustTextInReasonableArea() 771 if (textRect_.Height() > contentRect_.Height()) { in AdjustTextInReasonableArea() 776 if (GreatNotEqual(textRect_.GetY(), contentRect_.GetY())) { in AdjustTextInReasonableArea() 777 auto dy = textRect_.GetY() - contentRect_.GetY(); in AdjustTextInReasonableArea() 781 if (textRect_.GetY() != contentRect_.GetY()) { in AdjustTextInReasonableArea() 782 auto dy = contentRect_ in AdjustTextInReasonableArea() [all...] |
H A D | text_select_controller.h | 151 contentRect_ = rect; in UpdateContentRect() 243 RectF contentRect_; member in OHOS::Ace::NG::TextSelectController
|
H A D | text_field_pattern.h | 755 return contentRect_.GetY() == textRect_.GetY(); 760 return contentRect_.GetY() + contentRect_.Height() == textRect_.GetY() + textRect_.Height(); 797 return contentRect_; 854 auto offsetX = IsTextArea() ? contentRect_.GetX() : textRect_.GetX(); 855 auto offsetY = IsTextArea() ? textRect_.GetY() : contentRect_.GetY(); 1304 auto transformContentRect = contentRect_;
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/ |
H A D | rich_editor_change_callback_test_ng.cpp | 1370 richEditorPattern->contentRect_ = RectF(0, 0, 100, 100); in HWTEST_F() 1374 richEditorPattern->contentRect_ = RectF(0, 0, 100, 100); in HWTEST_F() 1378 richEditorPattern->contentRect_ = RectF(0, 0, 100, 100); in HWTEST_F() 1826 richEditorPattern->contentRect_ = RectF(0, 0, 100, 100); in HWTEST_F() 1833 param.handleRect = RectF(50, richEditorPattern->contentRect_.GetY() + edgeDistance + 1, 20, 20); in HWTEST_F() 1840 param.handleRect = RectF(50, richEditorPattern->contentRect_.GetY() + edgeDistance - 1, 20, 20); in HWTEST_F() 1849 RectF(50, richEditorPattern->contentRect_.Bottom() - edgeDistance - 1 - handleHeight, 20, handleHeight); in HWTEST_F() 1857 RectF(50, richEditorPattern->contentRect_.Bottom() - edgeDistance - handleHeight + 1, 20, handleHeight); in HWTEST_F() 1879 richEditorPattern->contentRect_ = RectF(0, 0, 100, 100); in HWTEST_F() 1887 OffsetF(50, richEditorPattern->contentRect_ in HWTEST_F() [all...] |
H A D | rich_editor_pattern_testfive_ng.cpp | 303 richEditorPattern->contentRect_.x_ = 25.0f; in HWTEST_F() 304 richEditorPattern->contentRect_.y_ = 13.0f; in HWTEST_F() 305 richEditorPattern->contentRect_.width_ = 526.0f; in HWTEST_F() 306 richEditorPattern->contentRect_.height_ = 56.0f; in HWTEST_F()
|
H A D | rich_editor_overlay_test_ng.cpp | 817 richEditorPattern->contentRect_ = RectF(0, 0, 100, 100); in HWTEST_F() 1626 richEditorPattern->contentRect_ = RectF(0, 0, 10.0f, 10.0f); in HWTEST_F() 1632 richEditorOverlayModifier->contentRect_ = RectF(0, 0, 10.0, 10.0); in HWTEST_F() 1634 EXPECT_EQ(richEditorPattern->contentRect_.Height(), 10.0f); in HWTEST_F() 1636 richEditorPattern->contentRect_ = RectF(0, 0, 10.0f, 50.0f); in HWTEST_F() 1637 richEditorOverlayModifier->contentRect_ = RectF(0, 0, 100.0, 10.0); in HWTEST_F() 1639 richEditorOverlayModifier->contentRect_ = RectF(0, 0, 100.0, 100.0); in HWTEST_F() 1641 EXPECT_EQ(richEditorPattern->contentRect_.Height(), 50.0f); in HWTEST_F()
|
H A D | rich_editor_pattern_test_ng.cpp | 768 richEditorPattern->contentRect_.SetRect(0, 0, 1, 1); in HWTEST_F() 810 richEditorPattern->contentRect_.SetRect(0, 1, 1, 1); in HWTEST_F() 851 richEditorPattern->contentRect_ = { -500.0, -500.0, 500.0, 500.0 }; in HWTEST_F() 950 richEditorPattern->contentRect_ = { -500.0, -500.0, 500.0, 500.0 }; in HWTEST_F() 1457 richEditorPattern->contentRect_ = RectF(0, 7, 100, 60); in HWTEST_F()
|
H A D | rich_editor_edit_testone_ng.cpp | 739 richEditorPattern->contentRect_ = RectF(0, 1, 100, 160); in HWTEST_F() 973 richEditorPattern->contentRect_ = RectF(0, 5, 100, 160); in HWTEST_F() 981 richEditorPattern->contentRect_ = RectF(0, 5, 100, 60); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/ |
H A D | video_pattern.cpp | 1174 if (contentRect_ != tmpRect && ShouldUpdateImageAnalyzer()) { in OnModifyDone() 1177 contentRect_ = tmpRect; in OnModifyDone() 2004 auto pixelMap = nailPixelMap->GetCropPixelMap(contentRect_); in OnModifyDone() 2009 OffsetF contentOffset = { contentRect_.Left() - padding.left.value_or(0), in OnModifyDone() 2010 contentRect_.Top() - padding.top.value_or(0) }; in OnModifyDone() 2049 auto pixelMap = nailPixelMap->GetCropPixelMap(contentRect_); in OnModifyDone() 2056 OffsetF contentOffset = { contentRect_.Left() - padding.left.value_or(0), in OnModifyDone() 2057 contentRect_.Top() - padding.top.value_or(0) }; in OnModifyDone() 2068 OffsetF contentOffset = { contentRect_.Left() - padding.left.value_or(0), in OnModifyDone() 2069 contentRect_ in OnModifyDone() [all...] |
H A D | video_pattern.h | 439 Rect contentRect_; member in OHOS::OHOS::Ace::NG::VideoPattern
|
/foundation/arkui/ace_engine/component_ext/movingphoto/ |
H A D | movingphoto_pattern.h | 245 Rect contentRect_; member in OHOS::Ace::NG::MovingPhotoPattern
|
H A D | movingphoto_pattern.cpp | 652 contentRect_ = tmpRect; in OnDirtyLayoutWrapperSwap() 1608 OffsetF contentOffset = { contentRect_.Left() - padding.left.value_or(0), in UpdateAnalyzerUIConfig() 1609 contentRect_.Top() - padding.top.value_or(0) }; in UpdateAnalyzerUIConfig() 1610 PixelMapInfo info = { contentRect_.GetSize().Width(), contentRect_.GetSize().Height(), contentOffset }; in UpdateAnalyzerUIConfig()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_pattern.cpp | 2891 RectF textContentRect = contentRect_; 2892 textContentRect.SetTop(contentRect_.GetY() - std::min(baselineOffset_, 0.0f)); 2893 textContentRect.SetHeight(contentRect_.Height() - std::max(baselineOffset_, 0.0f)); 3009 RectF textContentRect = contentRect_; 3010 textContentRect.SetTop(contentRect_.GetY() - std::min(baselineOffset_, 0.0f)); 3011 textContentRect.SetHeight(contentRect_.Height() - std::max(baselineOffset_, 0.0f)); 3344 offset.SetX(contentRect_.GetX()); 3347 offset.SetX(contentRect_.GetX() + contentRect_.Width() / 2.0f); 3350 offset.SetX(contentRect_ [all...] |
H A D | rich_editor_pattern.h | 895 return contentRect_; 1207 return NearEqual(richTextRect_.GetY(), contentRect_.GetY()); in IsReachTop() 1212 return NearEqual(richTextRect_.Bottom(), contentRect_.Bottom()); in IsReachBottom()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_update_test.cpp | 463 pattern_->contentRect_.SetOffset(contentOffset1); in HWTEST_F() 471 pattern_->contentRect_.SetOffset(contentOffset2); in HWTEST_F() 493 std::cout<<pattern_->textRect_.GetY()<<", "<<pattern_->contentRect_.GetY()<<std::endl; in HWTEST_F()
|
H A D | text_field_pattern_test.cpp | 1658 pattern->contentRect_.height_ = 0; in HWTEST_F() 1660 pattern->contentRect_.y_ = -1; in HWTEST_F() 1705 pattern->contentRect_.height_ = 0; in HWTEST_F() 1708 pattern->contentRect_.y_ = 10; in HWTEST_F() 1731 pattern->contentRect_.width_ = 0; in HWTEST_F() 1733 pattern->contentRect_.x_ = 1; in HWTEST_F()
|
H A D | text_field_pattern_testtwo.cpp | 326 pattern->contentRect_.SetRect(0, 0, 10, 10); in HWTEST_F() 393 pattern->contentRect_.SetRect(0, 0, 10, 10); in HWTEST_F() 846 pattern->contentRect_ = RectF(1.0f, 1.0f, -10.0f, 10.0f); in HWTEST_F() 1208 /* Set the value of contentRect_ */ in HWTEST_F() 1209 pattern->contentRect_.SetRect(100, 100, 100, 100); in HWTEST_F()
|
H A D | text_field_pattern_testthree.cpp | 472 pattern_->contentRect_.SetRect(10, 10, 0, 0); in HWTEST_F()
|
H A D | text_field_controller_test.cpp | 311 pattern_->contentRect_.x_ = 20.0f; in HWTEST_F() 312 pattern_->contentRect_.width_ = 100.0f; in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_drag/ |
H A D | text_drag_test_ng.cpp | 154 pattern_->contentRect_ = DEFAULT_TEXT_CONTENT_RECTF; in GetInstance()
|