Home
last modified time | relevance | path

Searched refs:fontSpan (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_object.cpp86 auto fontSpan = Referenced::MakeRefPtr<JSFontSpan>(); in Constructor() local
87 fontSpan->IncRefCount(); in Constructor()
99 fontSpan->fontSpan_ = span; in Constructor()
100 args.SetReturnValue(Referenced::RawPtr(fontSpan)); in Constructor()
103 void JSFontSpan::Destructor(JSFontSpan* fontSpan) in Destructor() argument
105 if (fontSpan != nullptr) { in Destructor()
106 fontSpan->DecRefCount(); in Destructor()
279 void JSFontSpan::SetFontSpan(const RefPtr<FontSpan>& fontSpan) in SetFontSpan() argument
281 fontSpan_ = fontSpan; in SetFontSpan()
H A Djs_span_object.h39 static void Destructor(JSFontSpan* fontSpan);
59 void SetFontSpan(const RefPtr<FontSpan>& fontSpan);
H A Djs_span_string.cpp335 auto fontSpan = Referenced::Claim(obj->Unwrap<JSFontSpan>()); in CreateJsFontSpan() local
336 fontSpan->SetFontSpan(span); in CreateJsFontSpan()
465 auto* fontSpan = AceType::DynamicCast<JSFontSpan>(base); in ParseJsFontSpan() local
466 if (fontSpan && fontSpan->GetFontSpan()) { in ParseJsFontSpan()
467 … return AceType::MakeRefPtr<FontSpan>(fontSpan->GetFontSpan()->GetFont(), start, start + length); in ParseJsFontSpan()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_object.cpp143 auto fontSpan = DynamicCast<FontSpan>(other); in IsAttributesEqual() local
144 if (!fontSpan) { in IsAttributesEqual()
147 auto font = fontSpan->GetFont(); in IsAttributesEqual()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dspan_string_test_ng.cpp1321 RefPtr<FontSpan> fontSpan = AceType::MakeRefPtr<FontSpan>(testFont1, 0, 10); variable
1322 buffer = fontSpan->ToString();
1329 EXPECT_FALSE(fontSpan->IsAttributesEqual(decorationSpan));
1335 EXPECT_FALSE(decorationSpan->IsAttributesEqual(fontSpan));
1402 RefPtr<FontSpan> fontSpan = AceType::MakeRefPtr<FontSpan>(testFont1, 0, 10); variable
1405 EXPECT_FALSE(paragraphStyleSpan->IsAttributesEqual(fontSpan));
1410 EXPECT_FALSE(lineHeightSpan->IsAttributesEqual(fontSpan));
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_pattern.cpp324 auto fontSpan = CreateFontSpanByTextStyle(updateSpanStyle, textStyle, length); in CreateStyledStringByTextStyle() local
325 styledString->AddSpan(fontSpan); in CreateStyledStringByTextStyle()