Home
last modified time | relevance | path

Searched refs:fontSizeValue (Results 1 - 25 of 42) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_dialog_view.cpp1041 const Dimension TimePickerDialogView::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale)
1044 CHECK_NULL_RETURN(pipeline, fontSizeValue);
1046 CHECK_NULL_RETURN(pickerTheme, fontSizeValue);
1050 return fontSizeValue * adjustedScale;
1054 const Dimension& fontSizeValue, const Dimension& fontSizeLimit, bool isUserSetFont)
1057 CHECK_NULL_RETURN(pipeline, fontSizeValue);
1059 CHECK_NULL_RETURN(pickerTheme, fontSizeValue);
1061 Dimension fontSizeValueResult = fontSizeValue;
1065 if (fontSizeValue.Unit() == DimensionUnit::VP) {
1066 return isUserSetFont ? std::min(fontSizeValueResultVp, fontSizeValue)
[all...]
H A Dtimepicker_dialog_view.h94 static const Dimension ConvertFontSizeLimit(const Dimension& fontSizeValue,
96 static const Dimension ConvertFontScaleValue(const Dimension& fontSizeValue,
98 static const Dimension ConvertTitleFontScaleValue(const Dimension& fontSizeValue);
99 static const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
H A Dtimepicker_column_layout_algorithm.h65 const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
H A Dtimepicker_column_layout_algorithm.cpp226 const Dimension TimePickerColumnLayoutAlgorithm::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale) in AdjustFontSizeScale() argument
229 CHECK_NULL_RETURN(pipeline, fontSizeValue); in AdjustFontSizeScale()
231 CHECK_NULL_RETURN(pickerTheme, fontSizeValue); in AdjustFontSizeScale()
236 result = fontSizeValue / fontScale * adjustedScale; in AdjustFontSizeScale()
H A Dtimepicker_model_ng.h69 static const Dimension ConvertFontScaleValue(const Dimension& fontSizeValue);
H A Dtimepicker_model_ng.cpp729 const Dimension TimePickerModelNG::ConvertFontScaleValue(const Dimension& fontSizeValue)
732 CHECK_NULL_RETURN(pipeline, fontSizeValue);
736 if (NearZero(fontScale) || (fontSizeValue.Unit() == DimensionUnit::VP)) {
737 return fontSizeValue;
742 return Dimension(fontSizeValue / fontScale);
745 return fontSizeValue;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_content_modifier.cpp140 float fontSizeValue = textStyle.GetFontSize().ConvertToPxDistribute( in SetDefaultFontSize() local
142 fontSizeFloat_ = MakeRefPtr<AnimatablePropertyFloat>(fontSizeValue); in SetDefaultFontSize()
148 float fontSizeValue = textStyle.GetFontSize().Value(); in SetDefaultAdaptMinFontSize() local
151 fontSizeValue = textStyle.GetAdaptMinFontSize().ConvertToPxDistribute( in SetDefaultAdaptMinFontSize()
155 adaptMinFontSizeFloat_ = MakeRefPtr<AnimatablePropertyFloat>(fontSizeValue); in SetDefaultAdaptMinFontSize()
161 float fontSizeValue = textStyle.GetFontSize().Value(); in SetDefaultAdaptMaxFontSize() local
164 fontSizeValue = textStyle.GetAdaptMaxFontSize().ConvertToPxDistribute( in SetDefaultAdaptMaxFontSize()
168 adaptMaxFontSizeFloat_ = MakeRefPtr<AnimatablePropertyFloat>(fontSizeValue); in SetDefaultAdaptMaxFontSize()
714 auto fontSizeValue = in SetFontSize() local
717 fontSize_ = Dimension(fontSizeValue); in SetFontSize()
727 auto fontSizeValue = SetAdaptMinFontSize() local
740 auto fontSizeValue = SetAdaptMaxFontSize() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_drag/
H A Dtext_drag_test_ng.cpp95 if (textProperty.fontSizeValue.has_value()) { in SetTextProperty()
96 textModel.SetFontSize(textProperty.fontSizeValue.value()); in SetTextProperty()
210 .fontSizeValue = std::make_optional(FONT_SIZE_VALUE), in HWTEST_F()
248 .fontSizeValue = std::make_optional(FONT_SIZE_VALUE), in HWTEST_F()
287 .fontSizeValue = std::make_optional(FONT_SIZE_VALUE), in HWTEST_F()
325 .fontSizeValue = std::make_optional(FONT_SIZE_VALUE), in HWTEST_F()
H A Dtext_drag_test_ng.h31 std::optional<Dimension> fontSizeValue = std::nullopt; member
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_picker/
H A Dtext_picker_test_ng.cpp2011 Dimension fontSizeValue = 50.0_vp; in HWTEST_F() local
2014 auto result = TextPickerDialogView::ConvertFontScaleValue(fontSizeValue, fontSizeLimit, true); in HWTEST_F()
2025 Dimension fontSizeValue = 20.0_vp; in HWTEST_F() local
2028 auto result = TextPickerDialogView::ConvertFontScaleValue(fontSizeValue, fontSizeLimit, true); in HWTEST_F()
2029 EXPECT_EQ(fontSizeValue.Value(), result.Value()); in HWTEST_F()
2039 Dimension fontSizeValue(20.0); in HWTEST_F()
2042 Dimension result = TextPickerDialogView::ConvertFontSizeLimit(fontSizeValue, fontSizeLimit, isUserSetFont); in HWTEST_F()
2043 EXPECT_EQ(result, fontSizeValue); in HWTEST_F()
2053 Dimension fontSizeValue(20.0); in HWTEST_F()
2056 Dimension result = TextPickerDialogView::ConvertFontSizeLimit(fontSizeValue, fontSizeLimi in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_badge.cpp106 JSRef<JSVal> fontSizeValue = value->GetProperty("fontSize"); in CreateBadgeParameters() local
126 if (ParseJsDimensionNG(fontSizeValue, fontSize, DimensionUnit::FP)) { in CreateBadgeParameters()
133 } else if (!fontSizeValue->IsUndefined()) { in CreateBadgeParameters()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_column_layout_algorithm.cpp224 const Dimension DatePickerColumnLayoutAlgorithm::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale) in AdjustFontSizeScale() argument
227 CHECK_NULL_RETURN(pipeline, fontSizeValue); in AdjustFontSizeScale()
229 CHECK_NULL_RETURN(pickerTheme, fontSizeValue); in AdjustFontSizeScale()
235 result = fontSizeValue / fontScale * adjustedScale; in AdjustFontSizeScale()
H A Ddatepicker_column_layout_algorithm.h57 const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
H A Ddatepicker_dialog_view.cpp2059 const Dimension DatePickerDialogView::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale)
2062 CHECK_NULL_RETURN(pipeline, fontSizeValue);
2064 CHECK_NULL_RETURN(pickerTheme, fontSizeValue);
2068 return fontSizeValue * adjustedScale;
2072 const Dimension& fontSizeValue, const Dimension& fontSizeLimit, bool isUserSetFont)
2075 CHECK_NULL_RETURN(pipeline, fontSizeValue);
2077 CHECK_NULL_RETURN(pickerTheme, fontSizeValue);
2079 Dimension fontSizeValueResult = fontSizeValue;
2083 if (fontSizeValue.Unit() == DimensionUnit::VP) {
2084 return isUserSetFont ? std::min(fontSizeValueResultVp, fontSizeValue)
[all...]
H A Ddatepicker_dialog_view.h160 static const Dimension ConvertFontSizeLimit(const Dimension& fontSizeValue,
162 static const Dimension ConvertFontScaleValue(const Dimension& fontSizeValue,
164 static const Dimension ConvertTitleFontScaleValue(const Dimension& fontSizeValue);
165 static const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
H A Ddatepicker_model_ng.cpp828 const Dimension DatePickerModelNG::ConvertFontScaleValue(const Dimension& fontSizeValue)
831 CHECK_NULL_RETURN(pipeline, fontSizeValue);
835 if (NearZero(fontScale) || (fontSizeValue.Unit() == DimensionUnit::VP)) {
836 return fontSizeValue;
841 return Dimension(fontSizeValue / fontScale);
844 return fontSizeValue;
H A Ddatepicker_model_ng.h71 static const Dimension ConvertFontScaleValue(const Dimension& fontSizeValue);
/foundation/arkui/ace_engine/test/unittest/core/pattern/picker/
H A Ddate_picker_test_one.cpp294 Dimension fontSizeValue = 20.0_vp; in HWTEST_F() local
297 * @tc.steps: step2. fontSizeValue's unit is VP and fontSizeValue is less than fontSizeLimit. in HWTEST_F()
298 * @tc.expected: call GetIsUserSetTextProperties and result expect equal fontSizeValue. in HWTEST_F()
300 auto result = DatePickerDialogView::ConvertFontScaleValue(fontSizeValue, fontSizeLimit, true); in HWTEST_F()
301 EXPECT_EQ(result.Value(), fontSizeValue.Value()); in HWTEST_F()
315 Dimension fontSizeValue = 20.0_px; in HWTEST_F() local
318 * @tc.steps: step2. fontSizeValue's unit is NOT VP and isUserSetFont is true. in HWTEST_F()
319 * fontSizeValue is greater than fontSizeLimit. in HWTEST_F()
322 auto result = DatePickerDialogView::ConvertFontScaleValue(fontSizeValue, fontSizeLimi in HWTEST_F()
339 Dimension fontSizeValue = 20.0_vp; HWTEST_F() local
360 Dimension fontSizeValue = 20.0_px; HWTEST_F() local
384 Dimension fontSizeValue = 20.0_vp; HWTEST_F() local
402 Dimension fontSizeValue = 20.0_px; HWTEST_F() local
420 Dimension fontSizeValue = 50.0_px; HWTEST_F() local
437 Dimension fontSizeValue = 50.0_vp; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_dialog_view.h140 static const Dimension ConvertFontSizeLimit(const Dimension& fontSizeValue,
142 static const Dimension ConvertFontScaleValue(const Dimension& fontSizeValue,
144 static const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
H A Dtextpicker_dialog_view.cpp1491 const Dimension TextPickerDialogView::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale)
1494 CHECK_NULL_RETURN(pipeline, fontSizeValue);
1496 CHECK_NULL_RETURN(pickerTheme, fontSizeValue);
1500 return fontSizeValue * adjustedScale;
1504 const Dimension& fontSizeValue, const Dimension& fontSizeLimit, bool isUserSetFont)
1507 CHECK_NULL_RETURN(pipeline, fontSizeValue);
1509 CHECK_NULL_RETURN(pickerTheme, fontSizeValue);
1511 Dimension fontSizeValueResult = fontSizeValue;
1515 if (fontSizeValue.Unit() == DimensionUnit::VP) {
1516 return isUserSetFont ? std::min(fontSizeValueResultVp, fontSizeValue)
[all...]
H A Dtextpicker_layout_algorithm.cpp309 const Dimension TextPickerLayoutAlgorithm::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale) in AdjustFontSizeScale() argument
312 CHECK_NULL_RETURN(pipeline, fontSizeValue); in AdjustFontSizeScale()
314 CHECK_NULL_RETURN(pickerTheme, fontSizeValue); in AdjustFontSizeScale()
320 result = fontSizeValue / fontScale * adjustedScale; in AdjustFontSizeScale()
H A Dtextpicker_layout_algorithm.h79 const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_content_modifier.cpp234 float fontSizeValue; in SetDefaultFontSize() local
237 fontSizeValue = pipelineContext->NormalizeToPx(textStyle.GetFontSize()); in SetDefaultFontSize()
239 fontSizeValue = pipelineContext->NormalizeToPx(textStyle.GetFontSize() * pipelineContext->GetFontScale()); in SetDefaultFontSize()
242 fontSizeValue = textStyle.GetFontSize().ConvertToPx(); in SetDefaultFontSize()
245 fontSizeFloat_ = AceType::MakeRefPtr<AnimatablePropertyFloat>(fontSizeValue); in SetDefaultFontSize()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dtext_clock_modifier.cpp61 void SetFontSize(ArkUINodeHandle node, ArkUI_Float32 fontSizeValue, ArkUI_Int32 fontSizeUnit) in SetFontSize() argument
65 TextClockModelNG::SetFontSize(frameNode, CalcDimension(fontSizeValue, (DimensionUnit)fontSizeUnit)); in SetFontSize()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_base.cpp174 if (testProperty.fontSizeValue.has_value()) { in CreateTextParagraph()
175 textModel.SetFontSize(testProperty.fontSizeValue.value()); in CreateTextParagraph()

Completed in 23 milliseconds

12