Home
last modified time | relevance | path

Searched refs:CalcValue (Results 1 - 25 of 37) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_water_flow_sections.cpp32 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 Djs_checkbox.cpp404 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 Djs_checkboxgroup.cpp351 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 Djs_calendar_picker.cpp377 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 Djs_button.cpp493 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 Djs_textfield.cpp802 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 Dselect_model_ng.cpp233 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 Dcalc_dimension.h36 const std::string& CalcValue() const in CalcValue() function in OHOS::Ace::CalcDimension
55 SetCalcValue(newDimension.CalcValue()); in operator =()
H A Danimatable_dimension.cpp43 SetCalcValue(newDimension.CalcValue()); in operator =()
58 SetCalcValue(newDimension.CalcValue()); in operator =()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_line_bridge.cpp58 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 Darkts_native_checkboxgroup_bridge.cpp121 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 Darkts_native_blank_bridge.cpp61 nativeNode, height.Value(), static_cast<int32_t>(height.Unit()), height.CalcValue().c_str()); in SetBlankHeight()
H A Darkts_native_radio_bridge.cpp134 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 Darkts_native_calendar_picker_bridge.cpp38 if (dim.CalcValue() != "") { in ParseCalendarPickerPadding()
39 result.string = dim.CalcValue().c_str(); in ParseCalendarPickerPadding()
H A Darkts_native_water_flow_bridge.cpp41 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 Darkts_native_select_bridge.cpp633 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 Darkts_native_image_animator_bridge.cpp241 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 Dmeasure_utils.cpp510 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 Dcalc_length.h68 const std::string& CalcValue() const in CalcValue() function in OHOS::Ace::NG::CalcLength
/foundation/arkui/ace_engine/test/unittest/base/
H A Danimatable_dimension_test.cpp59 * @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 Dsliding_panel_layout_algorithm.cpp69 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 Dsliding_panel_pattern.cpp46 if (!calc.CalcValue().empty() && calc.CalcValue().find("wrapContent") != std::string::npos) { in OnModifyDone()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_abstract_model_ng.h54 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 Dmeasure_utils_test_ng.cpp943 * @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 Drender_box_base.cpp72 std::string value = dimension.CalcValue(); in ConvertMarginToPx()
111 std::string value = dimension.CalcValue(); in ConvertDimensionToPx()

Completed in 29 milliseconds

12