/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_water_flow_sections.cpp | 32 margin.top = NG::CalcLength(top.value().CalcValue()); in SetMarginProperty() 40 margin.bottom = NG::CalcLength(bottom.value().CalcValue()); in SetMarginProperty() 48 margin.left = NG::CalcLength(left.value().CalcValue()); in SetMarginProperty() 56 margin.right = NG::CalcLength(right.value().CalcValue()); in SetMarginProperty() 79 margin.SetEdges(NG::CalcLength(length.CalcValue())); in ParseMargin()
|
H A D | js_checkbox.cpp | 404 NG::CalcLength(left.value().IsNonNegative() ? left.value().CalcValue() : CalcDimension().CalcValue()); in GetPadding() 412 NG::CalcLength(right.value().IsNonNegative() ? right.value().CalcValue() : CalcDimension().CalcValue()); in GetPadding() 420 NG::CalcLength(top.value().IsNonNegative() ? top.value().CalcValue() : CalcDimension().CalcValue()); in GetPadding() 428 bottom.value().IsNonNegative() ? bottom.value().CalcValue() : CalcDimension().CalcValue()); in GetPadding()
|
H A D | js_checkboxgroup.cpp | 351 left.value().IsNonNegative() ? left.value().CalcValue() : CalcDimension().CalcValue()); in GetPadding() 359 right.value().IsNonNegative() ? right.value().CalcValue() : CalcDimension().CalcValue()); in GetPadding() 367 top.value().IsNonNegative() ? top.value().CalcValue() : CalcDimension().CalcValue()); in GetPadding() 375 bottom.value().IsNonNegative() ? bottom.value().CalcValue() : CalcDimension().CalcValue()); in GetPadding()
|
H A D | js_calendar_picker.cpp | 377 NG::CalcLength(top.value().IsNonNegative() ? top.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 385 bottom.value().IsNonNegative() ? bottom.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 393 NG::CalcLength(left.value().IsNonNegative() ? left.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 401 NG::CalcLength(right.value().IsNonNegative() ? right.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings()
|
H A D | js_button.cpp | 493 NG::CalcLength(top.value().IsNonNegative() ? top.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 501 bottom.value().IsNonNegative() ? bottom.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 509 NG::CalcLength(left.value().IsNonNegative() ? left.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 517 NG::CalcLength(right.value().IsNonNegative() ? right.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings()
|
H A D | js_textfield.cpp | 802 NG::CalcLength(top.value().IsNonNegative() ? top.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 810 bottom.value().IsNonNegative() ? bottom.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 818 NG::CalcLength(left.value().IsNonNegative() ? left.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 826 NG::CalcLength(right.value().IsNonNegative() ? right.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/ |
H A D | select_model_ng.cpp | 233 NG::CalcLength(top.value().IsNonNegative() ? top.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 241 bottom.value().IsNonNegative() ? bottom.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 249 left.value().IsNonNegative() ? left.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 257 right.value().IsNonNegative() ? right.value().CalcValue() : CalcDimension().CalcValue()); in SetPaddings() 270 NG::CalcLength(value.IsNonNegative() ? value.CalcValue() : CalcDimension().CalcValue())); in SetPadding() [all...] |
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | calc_dimension.h | 36 const std::string& CalcValue() const in CalcValue() function in OHOS::Ace::CalcDimension 55 SetCalcValue(newDimension.CalcValue()); in operator =()
|
H A D | animatable_dimension.cpp | 43 SetCalcValue(newDimension.CalcValue()); in operator =() 58 SetCalcValue(newDimension.CalcValue()); in operator =()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_line_bridge.cpp | 58 pointStr.push_back(star.CalcValue().c_str()); in SetStartPoint() 66 pointStr.push_back(end.CalcValue().c_str()); in SetStartPoint() 126 pointStr.push_back(star.CalcValue().c_str()); in SetEndPoint() 134 pointStr.push_back(end.CalcValue().c_str()); in SetEndPoint()
|
H A D | arkts_native_checkboxgroup_bridge.cpp | 121 std::string widthCalc = width.CalcValue(); in SetCheckboxGroupWidth() 150 std::string heightCalc = height.CalcValue(); in SetCheckboxGroupHeight() 224 std::string widthCalc = width.CalcValue(); in SetCheckboxGroupSize() 234 std::string heightCalc = height.CalcValue(); in SetCheckboxGroupSize()
|
H A D | arkts_native_blank_bridge.cpp | 61 nativeNode, height.Value(), static_cast<int32_t>(height.Unit()), height.CalcValue().c_str()); in SetBlankHeight()
|
H A D | arkts_native_radio_bridge.cpp | 134 std::string widthCalc = width.CalcValue();
in SetRadioWidth() 165 std::string heightCalc = height.CalcValue();
in SetRadioHeight() 195 std::string widthCalc = width.CalcValue();
in SetRadioSize() 205 std::string heightCalc = height.CalcValue();
in SetRadioSize()
|
H A D | arkts_native_calendar_picker_bridge.cpp | 38 if (dim.CalcValue() != "") { in ParseCalendarPickerPadding() 39 result.string = dim.CalcValue().c_str(); in ParseCalendarPickerPadding()
|
H A D | arkts_native_water_flow_bridge.cpp | 41 calcStrValue = doubleValue.CalcValue(); in SetItemConstraintSizeSendParams() 146 nativeNode, NUM_0, static_cast<int32_t>(columnsGap.Unit()), columnsGap.CalcValue().c_str()); in SetColumnsGap() 183 nativeNode, 0, static_cast<int32_t>(rowGap.Unit()), rowGap.CalcValue().c_str()); in SetRowsGap()
|
H A D | arkts_native_select_bridge.cpp | 633 std::string widthCalc = width.CalcValue(); in SetWidth() 664 std::string heightCalc = height.CalcValue(); in SetHeight() 693 std::string widthCalc = width.CalcValue(); in SetSize() 703 std::string heightCalc = height.CalcValue(); in SetSize()
|
H A D | arkts_native_image_animator_bridge.cpp | 241 images[i].calc[j] = const_cast<char*>(calcDimension[arrayLength * j + i].CalcValue().c_str()); in SetImages()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | measure_utils.cpp | 510 NG::CalcLength(top.value().IsNonNegative() ? top.value().CalcValue() : CalcDimension().CalcValue()); in ConvertToCalcPaddingProperty() 518 bottom.value().IsNonNegative() ? bottom.value().CalcValue() : CalcDimension().CalcValue()); in ConvertToCalcPaddingProperty() 526 NG::CalcLength(left.value().IsNonNegative() ? left.value().CalcValue() : CalcDimension().CalcValue()); in ConvertToCalcPaddingProperty() 534 NG::CalcLength(right.value().IsNonNegative() ? right.value().CalcValue() : CalcDimension().CalcValue()); in ConvertToCalcPaddingProperty()
|
H A D | calc_length.h | 68 const std::string& CalcValue() const in CalcValue() function in OHOS::Ace::NG::CalcLength
|
/foundation/arkui/ace_engine/test/unittest/base/ |
H A D | animatable_dimension_test.cpp | 59 * @tc.expected: The return value of the function CalcValue() is DEFAULT_STR. in HWTEST_F() 63 EXPECT_EQ(animatableDimensionObj2.CalcValue(), DEFAULT_STR); in HWTEST_F() 75 * @tc.expected: The return value of the function CalcValue() is DEFAULT_STR. in HWTEST_F() 78 EXPECT_EQ(animatableDimensionObj3.CalcValue(), DEFAULT_STR); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/ |
H A D | sliding_panel_layout_algorithm.cpp | 69 if (!calc.CalcValue().empty() && calc.CalcValue().find("wrapContent") != std::string::npos) { in Measure() 116 if (!calc.CalcValue().empty() && calc.CalcValue().find("wrapContent") != std::string::npos) { in Layout()
|
H A D | sliding_panel_pattern.cpp | 46 if (!calc.CalcValue().empty() && calc.CalcValue().find("wrapContent") != std::string::npos) { in OnModifyDone()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | view_abstract_model_ng.h | 54 ViewAbstract::SetWidth(NG::CalcLength(width.CalcValue())); 63 ViewAbstract::SetHeight(NG::CalcLength(height.CalcValue())); 85 ViewAbstract::SetMinWidth(NG::CalcLength(minWidth.CalcValue())); 94 ViewAbstract::SetMinHeight(NG::CalcLength(minHeight.CalcValue())); 103 ViewAbstract::SetMaxWidth(NG::CalcLength(maxWidth.CalcValue())); 112 ViewAbstract::SetMaxHeight(NG::CalcLength(maxHeight.CalcValue())); 206 NG::CalcLength(value.IsNonNegative() ? value.CalcValue() : CalcDimension().CalcValue())); 233 ViewAbstract::SetSafeAreaPadding(NG::CalcLength(value.CalcValue())); 255 ViewAbstract::SetMargin(NG::CalcLength(value.CalcValue())); [all...] |
/foundation/arkui/ace_engine/test/unittest/core/property/ |
H A D | measure_utils_test_ng.cpp | 943 * @tc.steps: step3. call ConvertToCalcPaddingProperty and set testPadding to have CalcValue. in HWTEST_F() 950 testPadding.top = NG::CalcLength(top.value().CalcValue()); in HWTEST_F() 951 testPadding.bottom = NG::CalcLength(bottom.value().CalcValue()); in HWTEST_F() 952 testPadding.left = NG::CalcLength(left.value().CalcValue()); in HWTEST_F() 953 testPadding.right = NG::CalcLength(right.value().CalcValue()); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | render_box_base.cpp | 72 std::string value = dimension.CalcValue(); in ConvertMarginToPx() 111 std::string value = dimension.CalcValue(); in ConvertDimensionToPx()
|