Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dspan_string_test_ng.cpp1068 EXPECT_NE(lineHeightSpan, nullptr);
1069 EXPECT_EQ(lineHeightSpan->GetStartIndex(), 2);
1070 EXPECT_EQ(lineHeightSpan->GetEndIndex(), 3);
1071 EXPECT_EQ(lineHeightSpan->GetLineHeight(), Dimension(30));
1118 EXPECT_TRUE(lineHeightSpan->IsAttributesEqual(lineHeightSpan2));
1119 EXPECT_FALSE(lineHeightSpan->IsAttributesEqual(lineHeightSpan3));
1144 mutableStr2->AddSpan(lineHeightSpan);
1409 auto lineHeightSpan = AceType::MakeRefPtr<LineHeightSpan>(); variable
1410 EXPECT_FALSE(lineHeightSpan->IsAttributesEqual(fontSpan));
1411 buffer = lineHeightSpan->ToString();
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_object.cpp1150 auto lineHeightSpan = Referenced::MakeRefPtr<JSLineHeightSpan>(); in Constructor() local
1151 lineHeightSpan->IncRefCount(); in Constructor()
1159 lineHeightSpan->lineHeightSpan_ = span; in Constructor()
1160 args.SetReturnValue(Referenced::RawPtr(lineHeightSpan)); in Constructor()
1163 void JSLineHeightSpan::Destructor(JSLineHeightSpan* lineHeightSpan) in Destructor() argument
1165 if (lineHeightSpan != nullptr) { in Destructor()
1166 lineHeightSpan->DecRefCount(); in Destructor()
1192 void JSLineHeightSpan::SetLineHeightSpan(const RefPtr<LineHeightSpan>& lineHeightSpan) in SetLineHeightSpan() argument
1194 lineHeightSpan_ = lineHeightSpan; in SetLineHeightSpan()
H A Djs_span_string.cpp405 auto lineHeightSpan = Referenced::Claim(obj->Unwrap<JSLineHeightSpan>()); in CreateJsLineHeightSpan() local
406 lineHeightSpan->SetLineHeightSpan(span); in CreateJsLineHeightSpan()
553 auto* lineHeightSpan = AceType::DynamicCast<JSLineHeightSpan>(base); in ParseJsLineHeightSpan() local
554 if (lineHeightSpan && lineHeightSpan->GetLineHeightSpan()) { in ParseJsLineHeightSpan()
556 lineHeightSpan->GetLineHeightSpan()->GetLineHeight(), start, start + length); in ParseJsLineHeightSpan()
H A Djs_span_object.h247 void SetLineHeightSpan(const RefPtr<LineHeightSpan>& lineHeightSpan);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_object.cpp820 auto lineHeightSpan = DynamicCast<LineHeightSpan>(other); in IsAttributesEqual() local
821 if (!lineHeightSpan) { in IsAttributesEqual()
824 auto lineHeight = lineHeightSpan->GetLineHeight(); in IsAttributesEqual()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_pattern.cpp333 … auto lineHeightSpan = AceType::MakeRefPtr<LineHeightSpan>(textStyle.GetLineHeight(), 0, length); in CreateStyledStringByTextStyle() local
334 styledString->AddSpan(lineHeightSpan); in CreateStyledStringByTextStyle()