Home
last modified time | relevance | path

Searched refs:BackgroundColorSpan (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_object.cpp859 BackgroundColorSpan::BackgroundColorSpan( in BackgroundColorSpan() function in OHOS::Ace::BackgroundColorSpan
876 BackgroundColorSpan::BackgroundColorSpan(std::optional<TextBackgroundStyle> textBackgroundStyle) in BackgroundColorSpan() function in OHOS::Ace::BackgroundColorSpan
879 RefPtr<SpanBase> BackgroundColorSpan::GetSubSpan(int32_t start, int32_t end) in GetSubSpan()
884 void BackgroundColorSpan::AddSpanStyle(const RefPtr<NG::SpanItem>& spanItem) const in AddSpanStyle()
892 void BackgroundColorSpan::RemoveSpanStyle(const RefPtr<NG::SpanItem>& spanItem) in RemoveSpanStyle()
899 TextBackgroundStyle BackgroundColorSpan::GetBackgroundColor() const in GetBackgroundColor()
904 void BackgroundColorSpan::SetBackgroundColorGroupId(int32_t groupId) in SetBackgroundColorGroupId()
909 SpanType BackgroundColorSpan::GetSpanType() const in GetSpanType()
914 std::string BackgroundColorSpan::ToString() const in ToString()
926 bool BackgroundColorSpan::IsAttributesEqual(const RefPtr<SpanBase>& other) const in IsAttributesEqual()
[all …]
H A Dspan_object.h251 class BackgroundColorSpan : public SpanBase {
252 DECLARE_ACE_TYPE(BackgroundColorSpan, SpanBase);
254 BackgroundColorSpan() = default;
255 explicit BackgroundColorSpan(std::optional<TextBackgroundStyle> textBackgroundStyle_);
256BackgroundColorSpan(std::optional<TextBackgroundStyle> textBackgroundStyle_, int32_t start, int32_…
H A Dspan_string.cpp537 return MakeRefPtr<BackgroundColorSpan>(); in GetDefaultSpan()
603 auto backgroundColorSpan = DynamicCast<BackgroundColorSpan>(span); in SetGroupId()
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/
H A Dspannable_string.cpp107 ListNode<BackgroundColorSpan>* node_backColor = input->backgroundColorList_.Begin(); in SetSpannableString()
377 BackgroundColorSpan inputSpan; in SetBackgroundColor()
385 ListNode<BackgroundColorSpan>* tempSpan = backgroundColorList_.Begin(); in SetBackgroundColor()
393 needAddNode = EqualInsert<BackgroundColorSpan>( in SetBackgroundColor()
397 BackgroundColorSpan tempLeft; in SetBackgroundColor()
401 BackgroundColorSpan tempRight; in SetBackgroundColor()
405 needAddNode = UnequalInsert<BackgroundColorSpan>( in SetBackgroundColor()
410 BackgroundColorSpan inputSpan; in SetBackgroundColor()
424 ListNode<BackgroundColorSpan>* tempSpan = backgroundColorList_.Begin(); in GetBackgroundColor()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_object.h222 static RefPtr<BackgroundColorSpan> ParseJSBackgroundColorSpan(const JSCallbackInfo& info);
226 RefPtr<BackgroundColorSpan>& GetBackgroundColorSpan();
227 void SetBackgroundColorSpan(const RefPtr<BackgroundColorSpan>& backgroundColorSpan);
231 RefPtr<BackgroundColorSpan> backgroundColorSpan_;
H A Djs_span_object.cpp1566 RefPtr<BackgroundColorSpan> span; in Constructor()
1568 span = AceType::MakeRefPtr<BackgroundColorSpan>(); in Constructor()
1584 RefPtr<BackgroundColorSpan> JSBackgroundColorSpan::ParseJSBackgroundColorSpan(const JSCallbackInfo&… in ParseJSBackgroundColorSpan()
1587 return AceType::MakeRefPtr<BackgroundColorSpan>(textBackgroundValue); in ParseJSBackgroundColorSpan()
1605 RefPtr<BackgroundColorSpan>& JSBackgroundColorSpan::GetBackgroundColorSpan() in GetBackgroundColorSpan()
1610 void JSBackgroundColorSpan::SetBackgroundColorSpan(const RefPtr<BackgroundColorSpan>& backgroundCol… in SetBackgroundColorSpan()
H A Djs_span_string.cpp392 auto span = AceType::DynamicCast<BackgroundColorSpan>(spanObject); in CreateJSBackgroundColorSpan()
544 return AceType::MakeRefPtr<BackgroundColorSpan>( in ParseJSBackgroundColorSpan()
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/common/
H A Dspannable_string.h43 struct BackgroundColorSpan : public HeapBase { struct
109 List<BackgroundColorSpan> backgroundColorList_;
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dspan_string_test_ng.cpp1443 spanString->AddSpan(AceType::MakeRefPtr<BackgroundColorSpan>(textBackgroundStyle, 7, 9));
1446 auto backgroundColorSpan = AceType::MakeRefPtr<BackgroundColorSpan>(textBackgroundStyle);
1483 spanString->AddSpan(AceType::MakeRefPtr<BackgroundColorSpan>(textBackgroundStyle, 8, 10));
1489 auto backgroundColorSpan = AceType::DynamicCast<BackgroundColorSpan>(firstSpans[0]);