Searched refs:textLayoutProp (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/button/ |
H A D | button_test_ng.cpp | 124 RefPtr<TextLayoutProperty> textLayoutProp); 537 ASSERT_NE(textLayoutProp, nullptr); 539 EXPECT_EQ(textLayoutProp->GetContent(), CREATE_VALUE); 542 EXPECT_EQ(textLayoutProp->GetTextColor(), FONT_COLOR); 831 ASSERT_NE(textLayoutProp, nullptr); 834 EXPECT_EQ(textLayoutProp->GetMaxLines(), 10); 837 EXPECT_EQ(textLayoutProp->GetFontSize()->ConvertToPx(), 20); 839 EXPECT_EQ(textLayoutProp->GetFontFamily(), fontFamily); 881 ASSERT_NE(textLayoutProp, nullptr); 937 ASSERT_NE(textLayoutProp, nullptr); [all …]
|
H A D | button_content_modifier_test_ng.cpp | 106 RefPtr<TextLayoutProperty> textLayoutProp); 150 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::BOLD); in FontWeightTest() 174 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W100); in FontWeightTest() 178 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W200); in FontWeightTest() 182 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W300); in FontWeightTest() 186 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W400); in FontWeightTest() 190 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W500); in FontWeightTest() 194 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W600); in FontWeightTest() 198 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W700); in FontWeightTest() 202 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W800); in FontWeightTest() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/ |
H A D | toast_layout_algorithm.cpp | 114 auto textLayoutProp = DynamicCast<TextLayoutProperty>(text->GetLayoutProperty()); in Measure() local 115 CHECK_NULL_VOID(textLayoutProp); in Measure() 116 textLayoutProp->UpdateTextAlign(TextAlign::START); in Measure()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_pattern.cpp | 2432 CHECK_NULL_VOID(textLayoutProp); in ToJsonValue() 2464 CHECK_NULL_RETURN(textLayoutProp, ""); in GetFontInJson() 3033 CHECK_NULL_VOID(textLayoutProp); in DumpInfo() 3134 CHECK_NULL_VOID(textLayoutProp); in UpdateChildProperty() 3140 if (textLayoutProp->HasFontSize()) { in UpdateChildProperty() 3145 if (textLayoutProp->HasTextColor()) { in UpdateChildProperty() 3155 if (textLayoutProp->HasFontWeight()) { in UpdateChildProperty() 3160 if (textLayoutProp->HasFontFamily()) { in UpdateChildProperty() 3183 if (textLayoutProp->HasTextCase()) { in UpdateChildProperty() 3193 if (textLayoutProp->HasLineHeight()) { in UpdateChildProperty() [all …]
|
H A D | span_node.cpp | 272 auto textLayoutProp = frameNode->GetLayoutProperty<TextLayoutProperty>(); in UpdateParagraph() local 273 if (textLayoutProp && textLayoutProp->HasHalfLeading()) { in UpdateParagraph() 274 textStyle.SetHalfLeading(textLayoutProp->GetHalfLeadingValue(false)); in UpdateParagraph() 315 auto textLayoutProp = frameNode->GetLayoutProperty<TextLayoutProperty>(); in UpdateSymbolSpanParagraph() local 316 if (textLayoutProp && textLayoutProp->HasHalfLeading()) { in UpdateSymbolSpanParagraph() 317 themeTextStyle.SetHalfLeading(textLayoutProp->GetHalfLeadingValue(false)); in UpdateSymbolSpanParagraph() 576 if ((textLayoutProp)->Has##name()) { \ 577 textStyle.func(textLayoutProp->Get##name().value()); \ 590 auto textLayoutProp = frameNode->GetLayoutProperty<TextLayoutProperty>(); in InheritParentProperties() local 591 CHECK_NULL_RETURN(textLayoutProp, textStyle); in InheritParentProperties()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_pattern.cpp | 387 auto textLayoutProp = textNode->GetLayoutProperty<TextLayoutProperty>(); in UpdateTextProperty() local 389 textLayoutProp->UpdateFontSize(scLayoutProp->GetFontSize().value()); in UpdateTextProperty() 392 textLayoutProp->UpdateItalicFontStyle(scLayoutProp->GetFontStyle().value()); in UpdateTextProperty() 395 textLayoutProp->UpdateFontWeight(scLayoutProp->GetFontWeight().value()); in UpdateTextProperty() 398 textLayoutProp->UpdateFontFamily(scLayoutProp->GetFontFamily().value()); in UpdateTextProperty() 402 textLayoutProp->UpdateTextColor(scPaintProp->GetFontColor().value()); in UpdateTextProperty()
|