/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_overlay_modifier.cpp | 120 void TextOverlayModifier::SetSelectedRects(const std::vector<RectF>& selectedRects) in SetSelectedRects() argument 123 selectedRects_ = selectedRects; in SetSelectedRects() 126 bool TextOverlayModifier::IsSelectedRectsChanged(const std::vector<RectF>& selectedRects) in IsSelectedRectsChanged() argument 129 if (selectedRects.size() == selectedRects_.size()) { in IsSelectedRectsChanged() 130 for (unsigned int ii = 0; ii < selectedRects.size(); ii++) { in IsSelectedRectsChanged() 131 if (selectedRects[ii] != selectedRects_[ii]) { in IsSelectedRectsChanged()
|
H A D | text_paint_method.cpp | 132 std::vector<RectF> selectedRects; in UpdateOverlayModifier() local 135 selectedRects = CalculateSelectedRect(rects, contentRect.Width()); in UpdateOverlayModifier() 139 textOverlayModifier_->SetSelectedRects(selectedRects); in UpdateOverlayModifier() 158 …const std::vector<std::pair<std::vector<RectF>, TextDirection>>& selectedRects, float contentWidth) in CalculateSelectedRect() argument 161 for (const auto& info : selectedRects) { in CalculateSelectedRect()
|
H A D | text_overlay_modifier.h | 42 void SetSelectedRects(const std::vector<RectF>& selectedRects); 65 bool IsSelectedRectsChanged(const std::vector<RectF>& selectedRects);
|
H A D | text_paint_method.h | 56 …const std::vector<std::pair<std::vector<RectF>, TextDirection>>& selectedRects, float contentWidth…
|
H A D | text_pattern.cpp | 388 auto selectedRects = GetSelectedRects(start, item->position); in ShowShadow() local 389 for (auto&& rect : selectedRects) { in ShowShadow() 462 auto selectedRects = GetSelectedRects(start, item->position); in HandleSpanLongPressEvent() local 463 for (auto&& rect : selectedRects) { in HandleSpanLongPressEvent() 947 auto selectedRects = GetSelectedRects(start, item->position); in CalculateClickedSpanPosition() local 949 for (auto&& rect : selectedRects) { in CalculateClickedSpanPosition() 1642 for (const auto& selectedRect : selectedRects) { in IsDraggable() 2106 CHECK_NULL_RETURN(selectedRects.size(), {}); in GetLineHeight() 2107 return selectedRects.front().Height(); in GetLineHeight() 3687 auto selectedRects = pManager_->GetRects(start, item->position); in GetSelectionSpanItemIndex() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/render/ |
H A D | mock_paragraph.h | 51 MOCK_METHOD1(GetRectsForPlaceholders, void(std::vector<RectF>& selectedRects)); 62 …OCK_METHOD3(GetRectsForRange, void(int32_t start, int32_t end, std::vector<RectF>& selectedRects)); 63 …ETHOD3(GetTightRectsForRange, void(int32_t start, int32_t end, std::vector<RectF>& selectedRects)); 71 std::vector<RectF>& selectedRects, std::vector<TextDirection>& textDirections) override {} in TxtGetRectsForRange() argument
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | txt_paragraph.h | 128 void GetRectsForRange(int32_t start, int32_t end, std::vector<RectF>& selectedRects) override; 129 …void GetTightRectsForRange(int32_t start, int32_t end, std::vector<RectF>& selectedRects) override; 130 void GetRectsForPlaceholders(std::vector<RectF>& selectedRects) override; 153 std::vector<RectF>& selectedRects, std::vector<TextDirection>& textDirections) override; 166 void GetRectsForRangeInner(int32_t start, int32_t end, std::vector<RectF>& selectedRects,
|
H A D | txt_paragraph.cpp | 653 void TxtParagraph::GetRectsForRange(int32_t start, int32_t end, std::vector<RectF>& selectedRects) in GetRectsForRange() argument 657 GetRectsForRangeInner(adjustStart, adjustEnd, selectedRects, RectHeightPolicy::COVER_LINE); in GetRectsForRange() 664 GetRectsForRangeInner(adjustStart, adjustEnd, selectedRects, RectHeightPolicy::COVER_TEXT); in GetTightRectsForRange() 690 selectedRects.emplace_back(selectionRect); in GetRectsForRangeInner() 696 std::vector<RectF>& selectedRects, std::vector<TextDirection>& textDirections) in TxtGetRectsForRange() argument 715 selectedRects.emplace_back(selectionRect); in TxtGetRectsForRange() 739 std::vector<RectF> selectedRects; in IsIndexInEmoji() local 742 GetRectsForRangeInner(index, end, selectedRects); in IsIndexInEmoji() 743 if (selectedRects.empty()) { in IsIndexInEmoji() 751 void TxtParagraph::GetRectsForPlaceholders(std::vector<RectF>& selectedRects) in GetRectsForPlaceholders() argument [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_paint_method.cpp | 59 std::vector<RectF> selectedRects; in UpdateOverlayModifier() local 62 selectedRects = pManager_->GetRects(selection.GetTextStart(), selection.GetTextEnd()); in UpdateOverlayModifier() 66 overlayMod->SetSelectedRects(selectedRects); in UpdateOverlayModifier()
|
H A D | rich_editor_pattern.cpp | 2952 selectedRects[0].SetLeft(selectedRects[0].GetX() - addWidth.ConvertToPx()); in HandleUserGestureEvent() 2953 … selectedRects[0].SetWidth(selectedRects[0].GetSize().Width() + addWidth.ConvertToPx()); in HandleUserGestureEvent() 2962 for (auto&& rect : selectedRects) { in HandleUserGestureEvent() 7824 …return selectedRects.empty() || (selectedRects.size() == 1 && NearZero((selectedRects[0].Width()))… in OnBackPressed() 8023 res.reserve(selectedRects.size()); in OnBackPressed() 8024 for (auto&& rect : selectedRects) { in OnBackPressed() 8039 CHECK_NULL_RETURN(selectedRects.size(), 0.0f); in OnBackPressed() 8040 return selectedRects.front().Height(); in OnBackPressed() 8086 return selectedRects.front().Width(); in OnBackPressed() 10111 CHECK_NULL_RETURN(selectedRects.size(), {}); in OnBackPressed() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | paragraph.h | 250 … virtual void GetRectsForRange(int32_t start, int32_t end, std::vector<RectF>& selectedRects) = 0; 251 …tual void GetTightRectsForRange(int32_t start, int32_t end, std::vector<RectF>& selectedRects) = 0; 252 virtual void GetRectsForPlaceholders(std::vector<RectF>& selectedRects) = 0; 278 std::vector<RectF>& selectedRects, std::vector<TextDirection>& textDirections) = 0;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_select_controller.cpp | 402 std::vector<RectF> selectedRects; in GetSelectedRects() local 403 CHECK_NULL_RETURN(paragraph_, selectedRects); in GetSelectedRects() 404 paragraph_->GetRectsForRange(GetStartIndex(), GetEndIndex(), selectedRects); in GetSelectedRects() 405 return selectedRects; in GetSelectedRects()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | text_testthree_ng.cpp | 1930 …std::vector<RectF> selectedRects { RectF(0, 0, 20, 20), RectF(30, 30, 20, 20), RectF(60, 60, 20, 2… variable 1931 …XPECT_CALL(*paragraph, GetRectsForPlaceholders(_)).WillRepeatedly(SetArgReferee<0>(selectedRects));
|