Searched refs:IsNeedAdaptFontSize (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_adapt_font_sizer.h | 48 static bool IsNeedAdaptFontSize(const double& maxFontSize, const double& minFontSize); 49 …static bool IsNeedAdaptFontSize(const TextStyle& textStyle, const LayoutConstraintF& contentConstr…
|
H A D | text_adapt_font_sizer.cpp | 144 bool TextAdaptFontSizer::IsNeedAdaptFontSize(const double& maxFontSize, const double& minFontSize) in IsNeedAdaptFontSize() function in OHOS::Ace::NG::TextAdaptFontSizer 152 bool TextAdaptFontSizer::IsNeedAdaptFontSize(const TextStyle& textStyle, const LayoutConstraintF& c… in IsNeedAdaptFontSize() function in OHOS::Ace::NG::TextAdaptFontSizer 157 return IsNeedAdaptFontSize(maxFontSize, minFontSize); in IsNeedAdaptFontSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_layout_algorithm.h | 135 …bool IsNeedAdaptFontSize(const TextStyle& textStyle, const RefPtr<TextFieldLayoutProperty>& layout…
|
H A D | text_field_layout_algorithm.cpp | 1034 bool TextFieldLayoutAlgorithm::IsNeedAdaptFontSize(const TextStyle& textStyle, in IsNeedAdaptFontSize() function in OHOS::Ace::NG::TextFieldLayoutAlgorithm 1046 return TextAdaptFontSizer::IsNeedAdaptFontSize(textStyle, contentConstraint); in IsNeedAdaptFontSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_area/ |
H A D | text_area_layout_algorithm.cpp | 62 if (IsNeedAdaptFontSize(textStyle, textFieldLayoutProperty, textFieldContentConstraint)) { in MeasureContent()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | text_testfive_ng.cpp | 820 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(maxFontSize, minFontSize), false); 824 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(maxFontSize, minFontSize), true); 828 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(maxFontSize, minFontSize), false); 832 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(maxFontSize, minFontSize), false); 837 textAdaptFontSizer->IsNeedAdaptFontSize(textStyle, contentConstraint); 843 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(textStyle, contentConstraint), false);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_input/ |
H A D | text_input_layout_algorithm.cpp | 51 if (IsNeedAdaptFontSize(textStyle, textFieldLayoutProperty, textFieldContentConstraint_)) { in MeasureContent()
|