Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_layout_element.cpp114 CHECK_NULL_VOID(textProp); in Init()
141 CHECK_NULL_VOID(textProp); in MeasureForWidth()
211 CHECK_NULL_VOID(textProp); in UpdateSize()
212 ChooseExactFontSize(textProp, isWidth); in UpdateSize()
236 CHECK_NULL_RETURN(textProp, false); in GetCurrentTextSize()
237 if (!textProp->GetFontSize().has_value()) { in GetCurrentTextSize()
240 if (!textProp->GetContent().has_value()) { in GetCurrentTextSize()
243 …currentTextSize = GetMeasureTextSize(textProp->GetContent().value(), textProp->GetFontSize().value… in GetCurrentTextSize()
256 CHECK_NULL_RETURN(textProp, false); in TryShrinkTextWidth()
268 …auto tempSize = GetMeasureTextSize(textProp->GetContent().value(), textProp->GetFontSize().value(), in TryShrinkTextWidth()
[all …]
H A Dsecurity_component_pattern.cpp266 auto textProp = textNode->GetLayoutProperty<TextLayoutProperty>(); in ToJsonValueTextNode() local
267 CHECK_NULL_VOID(textProp); in ToJsonValueTextNode()
268 …json->PutExtAttr("fontSize", textProp->GetFontSize().value_or(Dimension(0.0)).ToString().c_str(), … in ToJsonValueTextNode()
270 textProp->GetFontWeight().value_or(FontWeight::NORMAL)).c_str(), filter); in ToJsonValueTextNode()
273 … static_cast<int64_t>(textProp->GetItalicFontStyle().value_or(Ace::FontStyle::NORMAL)), filter); in ToJsonValueTextNode()
274 …json->PutExtAttr("fontColor", textProp->GetTextColor().value_or(Color::WHITE).ColorToString().c_st… in ToJsonValueTextNode()
H A Dsecurity_component_handler.cpp650 auto textProp = textNode->GetLayoutProperty<TextLayoutProperty>(); in InitSCTextInfo() local
651 CHECK_NULL_RETURN(textProp, false); in InitSCTextInfo()
656 if (textProp->GetFontSize().has_value()) { in InitSCTextInfo()
657 buttonInfo.fontSize_ = textProp->GetFontSize()->Value(); in InitSCTextInfo()
661 if (textProp->GetTextColor().has_value()) { in InitSCTextInfo()
662 buttonInfo.fontColor_.value = textProp->GetTextColor().value().GetValue(); in InitSCTextInfo()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/security_component/
H A Dsecurity_component_test_ng.cpp314 ASSERT_NE(textProp, nullptr);
378 ASSERT_NE(textProp, nullptr);
452 ASSERT_NE(textProp, nullptr);
510 ASSERT_NE(textProp, nullptr);
762 ASSERT_NE(textProp, nullptr);
827 ASSERT_NE(textProp, nullptr);
901 ASSERT_NE(textProp, nullptr);
959 ASSERT_NE(textProp, nullptr);
1190 ASSERT_NE(textProp, nullptr);
1254 ASSERT_NE(textProp, nullptr);
[all …]
H A Dsecurity_component_test_ng_extension.cpp654 RefPtr<TextLayoutProperty> textProp = AceType::MakeRefPtr<TextLayoutProperty>(); variable
657 AceType::MakeRefPtr<LayoutWrapperNode>(frameNode, geoNode, textProp);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_pattern.cpp1497 … auto textProp = AceType::DynamicCast<TextLayoutProperty>(buttonTextNode->GetLayoutProperty()); in UpdateTextFontScale() local
1498 CHECK_NULL_VOID(textProp); in UpdateTextFontScale()
1500 textProp->UpdateMaxFontScale(dialogTheme_->GetDialogDefaultScale()); in UpdateTextFontScale()
1502 textProp->UpdateMaxFontScale(scale); in UpdateTextFontScale()
1505 textProp->UpdateMargin(margin); in UpdateTextFontScale()