Searched refs:BackgroundColorSpan (Results 1 - 9 of 9) sorted by relevance
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | span_object.cpp | 850 BackgroundColorSpan::BackgroundColorSpan( in BackgroundColorSpan() function in OHOS::Ace::BackgroundColorSpan 855 void BackgroundColorSpan::ApplyToSpanItem(const RefPtr<NG::SpanItem>& spanItem, SpanOperation operation) const in ApplyToSpanItem() 867 BackgroundColorSpan::BackgroundColorSpan(std::optional<TextBackgroundStyle> textBackgroundStyle) in BackgroundColorSpan() function in OHOS::Ace::BackgroundColorSpan 870 RefPtr<SpanBase> BackgroundColorSpan::GetSubSpan(int32_t start, int32_t end) in GetSubSpan() 872 RefPtr<SpanBase> spanBase = MakeRefPtr<BackgroundColorSpan>(GetBackgroundColor(), start, end); in GetSubSpan() 875 void BackgroundColorSpan::AddSpanStyle(const RefPtr<NG::SpanItem>& spanItem) const in AddSpanStyle() 883 void BackgroundColorSpan::RemoveSpanStyle(const RefPtr<NG::SpanItem>& spanItem) in RemoveSpanStyle() 890 TextBackgroundStyle BackgroundColorSpan [all...] |
H A D | span_object.h | 251 class BackgroundColorSpan : public SpanBase { class in OHOS::Ace::SpanType 252 DECLARE_ACE_TYPE(BackgroundColorSpan, SpanBase); 255 BackgroundColorSpan() = default; 256 explicit BackgroundColorSpan(std::optional<TextBackgroundStyle> textBackgroundStyle_); 257 BackgroundColorSpan(std::optional<TextBackgroundStyle> textBackgroundStyle_, int32_t start, int32_t end);
|
H A D | span_string.cpp | 530 return MakeRefPtr<BackgroundColorSpan>(); in GetDefaultSpan() 596 auto backgroundColorSpan = DynamicCast<BackgroundColorSpan>(span); in SetGroupId()
|
/foundation/arkui/ui_lite/frameworks/common/ |
H A D | spannable_string.cpp | 116 ListNode<BackgroundColorSpan>* node_backColor = input->backgroundColorList_.Begin(); in SetSpannableString() 386 BackgroundColorSpan inputSpan; in SetBackgroundColor() 394 ListNode<BackgroundColorSpan>* tempSpan = backgroundColorList_.Begin(); in SetBackgroundColor() 402 needAddNode = EqualInsert<BackgroundColorSpan>( in SetBackgroundColor() 406 BackgroundColorSpan tempLeft; in SetBackgroundColor() 410 BackgroundColorSpan tempRight; in SetBackgroundColor() 414 needAddNode = UnequalInsert<BackgroundColorSpan>( in SetBackgroundColor() 419 BackgroundColorSpan inputSpan; in SetBackgroundColor() 433 ListNode<BackgroundColorSpan>* tempSpan = backgroundColorList_.Begin(); in GetBackgroundColor()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/ |
H A D | js_span_object.h | 221 static RefPtr<BackgroundColorSpan> ParseJSBackgroundColorSpan(const JSCallbackInfo& info); 225 RefPtr<BackgroundColorSpan>& GetBackgroundColorSpan(); 226 void SetBackgroundColorSpan(const RefPtr<BackgroundColorSpan>& backgroundColorSpan); 230 RefPtr<BackgroundColorSpan> backgroundColorSpan_;
|
H A D | js_span_object.cpp | 1559 RefPtr<BackgroundColorSpan> span; in Constructor() 1561 span = AceType::MakeRefPtr<BackgroundColorSpan>(); in Constructor() 1577 RefPtr<BackgroundColorSpan> JSBackgroundColorSpan::ParseJSBackgroundColorSpan(const JSCallbackInfo& info) in ParseJSBackgroundColorSpan() 1580 return AceType::MakeRefPtr<BackgroundColorSpan>(textBackgroundValue); in ParseJSBackgroundColorSpan() 1598 RefPtr<BackgroundColorSpan>& JSBackgroundColorSpan::GetBackgroundColorSpan() in GetBackgroundColorSpan() 1603 void JSBackgroundColorSpan::SetBackgroundColorSpan(const RefPtr<BackgroundColorSpan>& backgroundColorSpan) in SetBackgroundColorSpan()
|
H A D | js_span_string.cpp | 392 auto span = AceType::DynamicCast<BackgroundColorSpan>(spanObject); in CreateJSBackgroundColorSpan() 544 return AceType::MakeRefPtr<BackgroundColorSpan>( in ParseJSBackgroundColorSpan()
|
/foundation/arkui/ui_lite/interfaces/kits/common/ |
H A D | spannable_string.h | 43 struct BackgroundColorSpan : public HeapBase { struct 109 List<BackgroundColorSpan> backgroundColorList_;
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | span_string_test_ng.cpp | 1427 * @tc.desc: Test basic function of BackgroundColorSpan 1443 spanString->AddSpan(AceType::MakeRefPtr<BackgroundColorSpan>(textBackgroundStyle, 7, 9)); in HWTEST_F() 1446 auto backgroundColorSpan = AceType::MakeRefPtr<BackgroundColorSpan>(textBackgroundStyle); in HWTEST_F() 1466 * @tc.desc: Test basic function of BackgroundColorSpan 1483 spanString->AddSpan(AceType::MakeRefPtr<BackgroundColorSpan>(textBackgroundStyle, 8, 10)); in HWTEST_F() 1489 auto backgroundColorSpan = AceType::DynamicCast<BackgroundColorSpan>(firstSpans[0]); in HWTEST_F()
|
Completed in 16 milliseconds