Home
last modified time | relevance | path

Searched refs:textFieldLayoutProperty (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_model_ng.cpp336 CHECK_NULL_VOID(textFieldLayoutProperty); in SetPlaceholderColor()
348 CHECK_NULL_VOID(textFieldLayoutProperty); in SetPlaceholderFont()
384 CHECK_NULL_VOID(textFieldLayoutProperty); in SetTextFont()
408 CHECK_NULL_VOID(textFieldLayoutProperty); in SetTextColor()
421 CHECK_NULL_VOID(textFieldLayoutProperty); in SetInputFilter()
436 CHECK_NULL_VOID(textFieldLayoutProperty); in SetInputFilter()
463 CHECK_NULL_VOID(textFieldLayoutProperty); in SetTextIndent()
474 CHECK_NULL_VOID(textFieldLayoutProperty); in SetTextIndent()
760 if (textFieldLayoutProperty) { in CreateTextField()
1064 if (textFieldLayoutProperty) { in SetTextValue()
[all …]
H A Dsearch_pattern.cpp401 CHECK_NULL_VOID(textFieldLayoutProperty); in HandleEnabled()
770 CHECK_NULL_VOID(textFieldLayoutProperty); in OnClickCancelButton()
771 textFieldLayoutProperty->UpdateValue(""); in OnClickCancelButton()
1344 CHECK_NULL_VOID(textFieldLayoutProperty); in ToJsonValueForTextField()
1353 auto textColor = textFieldLayoutProperty->GetTextColor().value_or(Color()); in ToJsonValueForTextField()
1368 textFieldLayoutProperty->HasCopyOptions(); in ToJsonValueForTextField()
1375 textFieldLayoutProperty->GetTextDecoration().value_or(TextDecoration::NONE)); in ToJsonValueForTextField()
1653 CHECK_NULL_VOID(textFieldLayoutProperty); in OnColorConfigurationUpdate()
1654 textFieldLayoutProperty->UpdateTextColor(searchTheme->GetTextColor()); in OnColorConfigurationUpdate()
1669 CHECK_NULL_RETURN(textFieldLayoutProperty, Infinity<uint32_t>()); in GetMaxLength()
[all …]
H A Dsearch_layout_algorithm.cpp196 …auto textFieldLayoutProperty = AceType::DynamicCast<TextFieldLayoutProperty>(textFieldWrapper->Get… in UpdateFontFeature() local
197 CHECK_NULL_VOID(textFieldLayoutProperty); in UpdateFontFeature()
199 textFieldLayoutProperty->UpdateFontFeature(layoutProperty->GetFontFeature().value()); in UpdateFontFeature()
207 auto textFieldLayoutProperty = in SetTextFieldLayoutConstraintHeight() local
209 if ((textFieldLayoutProperty == nullptr) || (!textFieldLayoutProperty->HasLineHeight())) { in SetTextFieldLayoutConstraintHeight()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_area/
H A Dtext_area_layout_algorithm.cpp45 if (!isInlineStyle && textFieldLayoutProperty->HasNormalMaxViewLines()) { in MeasureContent()
46 textStyle.SetMaxLines(textFieldLayoutProperty->GetNormalMaxViewLines().value()); in MeasureContent()
49 if (isInlineStyle && textFieldLayoutProperty->HasTextOverflow()) { in MeasureContent()
50 if (textFieldLayoutProperty->HasTextOverflowMaxLines()) { in MeasureContent()
51 textStyle.SetMaxLines(textFieldLayoutProperty->GetTextOverflowMaxLinesValue()); in MeasureContent()
52 } else if (textFieldLayoutProperty->HasNormalMaxViewLines()) { in MeasureContent()
53 textStyle.SetMaxLines(textFieldLayoutProperty->GetNormalMaxViewLines().value()); in MeasureContent()
57 direction_ = textFieldLayoutProperty->GetLayoutDirection(); in MeasureContent()
72 autoWidth_ = textFieldLayoutProperty->GetWidthAutoValue(false); in MeasureContent()
136 auto textFieldLayoutProperty = pattern->GetLayoutProperty<TextFieldLayoutProperty>(); in ConstraintHeight() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_accessibility_property.cpp49 auto textFieldLayoutProperty = frameNode->GetLayoutProperty<TextFieldLayoutProperty>(); in GetTextInputType() local
50 CHECK_NULL_RETURN(textFieldLayoutProperty, ret); in GetTextInputType()
51 auto textInputType = textFieldLayoutProperty->GetTextInputTypeValue(TextInputType::BEGIN); in GetTextInputType()
133 auto textFieldLayoutProperty = frameNode->GetLayoutProperty<TextFieldLayoutProperty>(); in GetText() local
134 CHECK_NULL_RETURN(textFieldLayoutProperty, ""); in GetText()
135 std::string text = textFieldLayoutProperty->GetValueValue(""); in GetText()
146 auto textFieldLayoutProperty = frameNode->GetLayoutProperty<TextFieldLayoutProperty>(); in IsHint() local
147 CHECK_NULL_RETURN(textFieldLayoutProperty, false); in IsHint()
148 return !(!textFieldLayoutProperty->GetValueValue("").empty() || in IsHint()
149 textFieldLayoutProperty->GetPlaceholderValue("").empty()); in IsHint()
H A Dtext_field_layout_algorithm.cpp64 CHECK_NULL_VOID(textFieldLayoutProperty); in ConstructTextStyles()
102 if (textFieldLayoutProperty->HasTextOverflow()) { in UpdateTextStyleTextOverflowAndWordBreak()
112 if (textFieldLayoutProperty->HasTextOverflow()) { in UpdateTextStyleTextOverflowAndWordBreak()
154 CHECK_NULL_RETURN(textFieldLayoutProperty, std::nullopt); in InlineMeasureContent()
202 CHECK_NULL_VOID(textFieldLayoutProperty); in GetInlineMeasureItem()
232 CHECK_NULL_VOID(textFieldLayoutProperty); in ApplyIndent()
259 CHECK_NULL_VOID(textFieldLayoutProperty); in CalcInlineMeasureItem()
459 CHECK_NULL_VOID(textFieldLayoutProperty); in UpdateCounterNode()
573 CHECK_NULL_RETURN(textFieldLayoutProperty, 0.0f); in CounterNodeMeasure()
576 …if (textFieldLayoutProperty->GetShowCounterValue(false) && textFieldLayoutProperty->HasMaxLength()… in CounterNodeMeasure()
[all …]
H A Dtext_input_response_area.cpp612 CHECK_NULL_VOID(textFieldLayoutProperty); in LoadingImageProperty()
613 if (textFieldLayoutProperty->HasIconSize()) { in LoadingImageProperty()
614 iconSize_ = textFieldLayoutProperty->GetIconSizeValue(); in LoadingImageProperty()
616 if (textFieldLayoutProperty->HasIconSrc()) { in LoadingImageProperty()
617 iconSrc_ = textFieldLayoutProperty->GetIconSrcValue(); in LoadingImageProperty()
620 if (textFieldLayoutProperty->HasBundleName()) { in LoadingImageProperty()
623 if (textFieldLayoutProperty->HasModuleName()) { in LoadingImageProperty()
633 CHECK_NULL_VOID(textFieldLayoutProperty); in LoadingCancelButtonColor()
634 if (textFieldLayoutProperty->GetIsDisabledValue(false)) { in LoadingCancelButtonColor()
642 } else if (textFieldLayoutProperty->HasIconColor()) { in LoadingCancelButtonColor()
[all …]
H A Dtext_field_paint_method.cpp71 auto textFieldLayoutProperty = textFieldPattern->GetLayoutProperty<TextFieldLayoutProperty>(); in UpdateContentModifier() local
72 CHECK_NULL_VOID(textFieldLayoutProperty); in UpdateContentModifier()
75 auto showPlaceHolder = textFieldLayoutProperty->GetValueValue("").empty(); in UpdateContentModifier()
135 auto textFieldLayoutProperty = textFieldPattern->GetLayoutProperty<TextFieldLayoutProperty>(); in SetShowUnderlineWidth() local
136 CHECK_NULL_VOID(textFieldLayoutProperty); in SetShowUnderlineWidth()
137 …if (textFieldLayoutProperty->HasShowUnderline() && textFieldLayoutProperty->GetShowUnderlineValue(… in SetShowUnderlineWidth()
H A Dtext_field_model_ng.cpp50 CHECK_NULL_VOID(textFieldLayoutProperty); in CreateNode()
65 textFieldLayoutProperty->UpdateMaxLines(1); in CreateNode()
110 CHECK_NULL_RETURN(textFieldLayoutProperty, nullptr); in CreateFrameNode()
119 textFieldLayoutProperty->UpdateMaxLines(1); in CreateFrameNode()
408 if (textFieldLayoutProperty) { in ResetMaxLength()
409 textFieldLayoutProperty->ResetMaxLength(); in ResetMaxLength()
940 CHECK_NULL_VOID(textFieldLayoutProperty); in SetInputStyle()
941 textFieldLayoutProperty->UpdateMaxLines(1); in SetInputStyle()
1101 if (textFieldLayoutProperty) { in ResetMaxLength()
1102 textFieldLayoutProperty->ResetMaxLength(); in ResetMaxLength()
[all …]
H A Dtext_field_content_modifier.cpp128 RefPtr<TextFieldLayoutProperty> textFieldLayoutProperty; in SetDefaultAnimatablePropertyValue() local
137 textFieldLayoutProperty = frameNode->GetLayoutProperty<TextFieldLayoutProperty>(); in SetDefaultAnimatablePropertyValue()
143textFieldLayoutProperty->GetFontStyle(), textFieldLayoutProperty->GetTextLineStyle(), theme); in SetDefaultAnimatablePropertyValue()
145 textStyle = CreateTextStyleUsingTheme(textFieldLayoutProperty->GetPlaceholderFontStyle(), in SetDefaultAnimatablePropertyValue()
146 textFieldLayoutProperty->GetPlaceholderTextLineStyle(), theme); in SetDefaultAnimatablePropertyValue()
H A Dtext_field_layout_algorithm.h173 bool isInlineStyle, const RefPtr<TextFieldLayoutProperty>& textFieldLayoutProperty);
H A Dtext_field_pattern.cpp434 auto textFieldLayoutProperty = GetLayoutProperty<TextFieldLayoutProperty>(); in GetTextOrPlaceHolderFontSize() local
435 CHECK_NULL_RETURN(textFieldLayoutProperty, 0.0f); in GetTextOrPlaceHolderFontSize()
439 if (textFieldLayoutProperty->HasFontSize() && in GetTextOrPlaceHolderFontSize()
440 textFieldLayoutProperty->GetFontSizeValue(Dimension()).IsNonNegative()) { in GetTextOrPlaceHolderFontSize()
441 fontSize = textFieldLayoutProperty->GetFontSizeValue(Dimension()); in GetTextOrPlaceHolderFontSize()
4394 auto textFieldLayoutProperty = pattern->GetLayoutProperty<TextFieldLayoutProperty>(); in CleanCounterNode() local
4395 CHECK_NULL_VOID(textFieldLayoutProperty); in CleanCounterNode()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/search/
H A Dsearch_test_ng.cpp1146 ASSERT_NE(textFieldLayoutProperty, nullptr);
1164 ASSERT_NE(textFieldLayoutProperty, nullptr);
1188 ASSERT_NE(textFieldLayoutProperty, nullptr);
1212 ASSERT_NE(textFieldLayoutProperty, nullptr);
1232 ASSERT_NE(textFieldLayoutProperty, nullptr);
1250 ASSERT_NE(textFieldLayoutProperty, nullptr);
1281 ASSERT_NE(textFieldLayoutProperty, nullptr);
1320 ASSERT_NE(textFieldLayoutProperty, nullptr);
1530 auto textFieldLayoutProperty = variable
1782 textFieldLayoutProperty->UpdateSelectionMenuHidden(true);
[all …]
H A Dsearch_decoration_test_ng.cpp176 auto textFieldLayoutProperty = textFieldFrameNode->GetLayoutProperty<TextFieldLayoutProperty>(); variable
177 ASSERT_NE(textFieldLayoutProperty, nullptr);
200 EXPECT_EQ(textFieldLayoutProperty->GetLetterSpacing(), 1.0_fp);
219 auto textFieldLayoutProperty = textFieldFrameNode->GetLayoutProperty<TextFieldLayoutProperty>(); variable
220 ASSERT_NE(textFieldLayoutProperty, nullptr);
243 EXPECT_EQ(textFieldLayoutProperty->GetLineHeight(), 2.0_fp);
262 auto textFieldLayoutProperty = textFieldFrameNode->GetLayoutProperty<TextFieldLayoutProperty>(); variable
263 ASSERT_NE(textFieldLayoutProperty, nullptr);
290 EXPECT_EQ(textFieldLayoutProperty->GetTextDecoration(), Ace::TextDecoration::UNDERLINE);
291 EXPECT_EQ(textFieldLayoutProperty->GetTextDecorationColor(), Color::BLUE);
[all …]
H A Dsearch_testtwo_ng.cpp120 textFieldLayoutProperty->UpdateTextAlign(TextAlign::LEFT);
126 textFieldLayoutProperty->UpdateTextAlign(TextAlign::RIGHT);
132 textFieldLayoutProperty->UpdateTextAlign(TextAlign::CENTER);
138 textFieldLayoutProperty->UpdateTextAlign(TextAlign::JUSTIFY);
144 textFieldLayoutProperty->UpdateTextAlign(TextAlign::START);
150 textFieldLayoutProperty->UpdateTextAlign(TextAlign::END);
152 EXPECT_EQ(textFieldLayoutProperty->GetTextAlign(), TextAlign::END);
972 CHECK_NULL_VOID(textFieldLayoutProperty);
1026 CHECK_NULL_VOID(textFieldLayoutProperty);
1080 EXPECT_EQ(textFieldLayoutProperty->GetTextColor(), Color::RED);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_input/
H A Dtext_input_layout_algorithm.cpp43 direction_ = textFieldLayoutProperty->GetLayoutDirection(); in MeasureContent()
51 if (IsNeedAdaptFontSize(textStyle, textFieldLayoutProperty, textFieldContentConstraint_)) { in MeasureContent()
53 … textStyle, textFieldLayoutProperty, contentConstraintWithoutResponseArea, layoutWrapper)) { in MeasureContent()
61 autoWidth_ = textFieldLayoutProperty->GetWidthAutoValue(false); in MeasureContent()
173 auto textFieldLayoutProperty = pattern->GetLayoutProperty<TextFieldLayoutProperty>(); in BeforeErrorLayout() local
174 if (textFieldLayoutProperty && textFieldLayoutProperty->GetPaddingProperty()) { in BeforeErrorLayout()
175 const auto& paddingProperty = textFieldLayoutProperty->GetPaddingProperty(); in BeforeErrorLayout()
217 auto textFieldLayoutProperty = decoratedNode->GetLayoutProperty<TextFieldLayoutProperty>(); in ErrorLayout() local
218 CHECK_NULL_VOID(textFieldLayoutProperty); in ErrorLayout()
227 if (textFieldLayoutProperty->GetShowUnderlineValue(false) && textFieldPattern->IsShowError()) { in ErrorLayout()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_input_modify_test.cpp1746 auto textFieldLayoutProperty = frameNode->GetLayoutProperty<TextFieldLayoutProperty>(); in __anonba04f1101602() local
1747 ASSERT_NE(textFieldLayoutProperty, nullptr); in __anonba04f1101602()
H A Dtext_field_pattern_test.cpp2335 auto textFieldLayoutProperty = pattern->GetLayoutProperty<TextFieldLayoutProperty>(); variable
2336 ASSERT_NE(textFieldLayoutProperty, nullptr);
2337 textFieldLayoutProperty->UpdateFontSize(Dimension(10.0));