/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | border_property.h | 224 std::optional<T> topDimen; member 232 topDimen = borderWidth; in SetBorderWidth() 238 return (leftDimen == value.leftDimen) && (rightDimen == value.rightDimen) && (topDimen == value.topDimen) && in operator ==() 253 if (value.topDimen.has_value() && (topDimen != value.topDimen)) { in UpdateWithCheck() 254 topDimen = value.topDimen; in UpdateWithCheck() 268 std::optional<Dimension> topDimen; member 293 std::optional<float> topDimen; global() member [all...] |
H A D | border_property.cpp | 59 str.append(",").append(topDimen.has_value() ? topDimen->ToString() : "NA"); in ToString() 74 res->Put("top", topDimen.value_or(Dimension(0.0, DimensionUnit::VP)).ToString().c_str()); in ToJsonValue() 99 res->Put("top", topDimen.value_or(Dimension(0.0, DimensionUnit::VP)).ToString().c_str()); in ToDashJsonValue() 123 if (value.topDimen.has_value() && (topDimen != value.topDimen)) { in UpdateWithCheck() 124 topDimen = value.topDimen; in UpdateWithCheck() 246 topDimen in SetBorderWidth() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_checkbox.cpp | 331 CalcDimension topDimen = CalcDimension(0.0, DimensionUnit::VP); in GetOldPadding() local 335 ParseJsDimensionVp(jsObj->GetProperty("top"), topDimen); in GetOldPadding() 342 if (topDimen == 0.0_vp) { in GetOldPadding() 343 topDimen = bottomDimen; in GetOldPadding() 346 leftDimen = topDimen; in GetOldPadding() 351 padding.top = topDimen.ConvertToPx(); in GetOldPadding()
|
H A D | js_radio.cpp | 209 CalcDimension topDimen = CalcDimension(0.0, DimensionUnit::VP); in GetOldPadding() local 213 ParseJsDimensionVp(jsObj->GetProperty(static_cast<int32_t>(ArkUIIndex::TOP)), topDimen); in GetOldPadding() 220 if (topDimen == 0.0_vp) { in GetOldPadding() 221 topDimen = bottomDimen; in GetOldPadding() 224 leftDimen = topDimen; in GetOldPadding() 229 padding.top = topDimen.ConvertToPx(); in GetOldPadding()
|
H A D | js_checkboxgroup.cpp | 280 CalcDimension topDimen = CalcDimension(0.0, DimensionUnit::VP); in GetOldPadding() local 284 ParseJsDimensionVp(jsObj->GetProperty("top"), topDimen); in GetOldPadding() 291 if (topDimen == 0.0_vp) { in GetOldPadding() 292 topDimen = bottomDimen; in GetOldPadding() 295 leftDimen = topDimen; in GetOldPadding() 300 padding.top = topDimen.ConvertToPx(); in GetOldPadding()
|
H A D | js_sec_button_base.cpp | 213 CalcDimension topDimen; in SetBackgroundPadding() local 214 if (ParseJsDimensionVp(paddingObj->GetProperty("top"), topDimen)) { in SetBackgroundPadding() 215 top = topDimen; in SetBackgroundPadding()
|
H A D | js_toggle.cpp | 312 CalcDimension topDimen = CalcDimension(0.0, DimensionUnit::VP); in GetOldPadding() local 316 ParseJsDimensionVp(jsObj->GetProperty("top"), topDimen); in GetOldPadding() 323 if (topDimen == 0.0_vp) { in GetOldPadding() 324 topDimen = bottomDimen; in GetOldPadding() 327 leftDimen = topDimen; in GetOldPadding() 332 padding.top = topDimen.ConvertToPx(); in GetOldPadding()
|
H A D | js_view_measure_layout.cpp | 80 auto topBorder = borderWidth ? borderWidth->topDimen->ConvertToVp() : 0.0f; in GenPlaceChildrenConstraintNG() 114 edgeWidths->SetProperty("top", edgeWidthsNative->topDimen->ConvertToVp()); in GenEdgeWidths() 143 edges->SetProperty("top", edgeNative.topDimen.value_or(0) * px2vpScale); in GenBorderWidthGlobalized()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | radio_modifier.cpp | 156 CalcLength topDimen;
in SetRadioPadding() local 161 topDimen = CalcLength(top->string);
in SetRadioPadding() 163 topDimen = CalcLength(top->value, static_cast<DimensionUnit>(top->unit));
in SetRadioPadding() 181 paddings.top = std::optional<CalcLength>(topDimen);
in SetRadioPadding()
|
H A D | node_toggle_modifier.cpp | 172 CalcLength topDimen; in SetTogglePadding() local 180 topDimen = CalcLength( in SetTogglePadding() 203 paddings.top = std::optional<CalcLength>(topDimen); in SetTogglePadding()
|
H A D | node_text_area_modifier.cpp | 888 CalcLength topDimen; in SetTextAreaPadding() local 893 topDimen = CalcLength(top->string); in SetTextAreaPadding() 895 topDimen = CalcLength(top->value, static_cast<DimensionUnit>(top->unit)); in SetTextAreaPadding() 913 paddings.top = std::optional<CalcLength>(topDimen); in SetTextAreaPadding() 1198 SetOptionalBorder(borderWidth.topDimen, values, valuesSize, offset); in SetAllWidthOptionalBorder() 1262 if (borderWidth.leftDimen.has_value() || borderWidth.rightDimen.has_value() || borderWidth.topDimen.has_value() || in SetTextAreaBorder() 1318 std::optional<CalcDimension> topDimen; in SetTextAreaBorderWidth() local 1325 topDimen = Dimension(values[NUM_0], static_cast<OHOS::Ace::DimensionUnit>(units[NUM_0])); in SetTextAreaBorderWidth() 1343 borderWidth.topDimen = topDimen; in SetTextAreaBorderWidth() 1442 CalcLength topDimen; SetTextAreaMargin() local [all...] |
H A D | node_text_input_modifier.cpp | 1135 CalcLength topDimen; in SetTextInputPadding() local 1140 topDimen = CalcLength(top->string); in SetTextInputPadding() 1142 topDimen = CalcLength(top->value, static_cast<DimensionUnit>(top->unit)); in SetTextInputPadding() 1160 paddings.top = std::optional<CalcLength>(topDimen); in SetTextInputPadding() 1687 CalcLength topDimen; in SetTextInputMargin() local 1692 topDimen = CalcLength(top->string); in SetTextInputMargin() 1694 topDimen = CalcLength(top->value, static_cast<DimensionUnit>(top->unit)); in SetTextInputMargin() 1712 paddings.top = std::optional<CalcLength>(topDimen); in SetTextInputMargin()
|
H A D | node_common_modifier.cpp | 765 std::optional<CalcDimension> topDimen; in SetBorderWidth() local 772 topDimen = Dimension(values[NUM_0], static_cast<OHOS::Ace::DimensionUnit>(units[NUM_0])); in SetBorderWidth() 790 borderWidth.topDimen = topDimen; in SetBorderWidth() 1780 SetOptionalBorder(borderWidth.topDimen, values, valuesSize, offset); in SetBorderWidth() 1783 if (borderWidth.leftDimen.has_value() || borderWidth.rightDimen.has_value() || borderWidth.topDimen.has_value() || in SetBorderWidth() 2368 CalcLength topDimen; in SetPadding() local 2373 topDimen = CalcLength(top->string); in SetPadding() 2375 topDimen = CalcLength(top->value, static_cast<DimensionUnit>(top->unit)); in SetPadding() 2393 paddings.top = std::optional<CalcLength>(topDimen); in SetPadding() 2736 CalcLength topDimen; SetMargin() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/ |
H A D | image_paint_method.cpp | 72 if (width->topDimen) { in UpdateBorderRadius() 73 auto diff = width->topDimen->ConvertToPx(); in UpdateBorderRadius()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | select_model_impl.cpp | 372 CalcDimension topDimen; in SetPaddings() local 373 topDimen.SetValue(top.value().Value()); in SetPaddings() 374 selectComponent->SetTopPadding(topDimen); in SetPaddings()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/ |
H A D | calendar_picker_layout_algorithm.cpp | 109 width += currentBorderWidth.topDimen.value_or(theme->GetEntryBorderWidth()).ConvertToPx(); in SelfMeasure()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_utils.h | 79 borderWidthTop = GET_BORDER_PROPERTY_VALUE_PX(borderWidthProperty->topDimen); in CalcIndicatrFrameOffSet()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/form/ |
H A D | form_pattern_test.cpp | 766 std::optional<Dimension> topDimen = borderWidthProperty->topDimen; in HWTEST_F() local 767 borderWidthProperty->topDimen->Reset(); in HWTEST_F() 770 borderWidthProperty->topDimen = topDimen; in HWTEST_F() 774 EXPECT_DOUBLE_EQ(borderWidthProperty->topDimen->ConvertToPx(), borderWidth); in HWTEST_F() 817 borderWidthProperty->topDimen->SetValue(1.0); in HWTEST_F() 822 borderWidthProperty->topDimen->Reset(); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_property.cpp | 39 borderWidth.topDimen.value_or(defaultParam.verticalBorder); in CombinePaddingsAndBorder() 582 borderWidthF.leftDimen, borderWidthF.rightDimen, borderWidthF.topDimen, borderWidthF.bottomDimen); in ConstraintContentByBorder() 585 borderWidthF.leftDimen, borderWidthF.rightDimen, borderWidthF.topDimen, borderWidthF.bottomDimen); in ConstraintContentByBorder() 1716 if (borderWidthProperty->topDimen.has_value()) { in CheckLocalizedEdgeWidths() 1717 borderWidth.topDimen = borderWidthProperty->topDimen; in CheckLocalizedEdgeWidths()
|
/foundation/arkui/ace_engine/test/unittest/core/property/ |
H A D | border_property_test_ng.cpp | 94 * @tc.expected: the return value is "leftDimen: [1.00px]rightDimen: [1.00px]topDimen: [1.00px]bottomDimen: in HWTEST_F() 315 EXPECT_TRUE(borderWidthProperty.topDimen.has_value()); in HWTEST_F()
|
H A D | measure_utils_test_ng.cpp | 331 testPropertyT.topDimen = BORDER_WIDTH_PX; in HWTEST_F() 374 testPropertyT.topDimen = BORDER_WIDTH_VP; in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | view_abstract_model_ng.h | 355 borderWidth.topDimen = top; 368 .topDimen = top, .bottomDimen = bottom, .startDimen = start, .endDimen = end, .multiValued = true 401 dashGap.topDimen = top; 418 dashWidth.topDimen = top; 479 borderWidth.topDimen = top;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_radio_bridge.cpp | 268 CalcDimension topDimen(0, DimensionUnit::VP);
in SetRadioPadding() 272 ArkTSUtils::ParsePadding(vm, topArg, topDimen, top);
in SetRadioPadding()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | border_image_painter.cpp | 126 widthProp_.topDimen->NormalizeToPx(dipScale_, 0.0, lpxScale_, paintSize_.Height(), topWidth_); in InitBorderImageWidth() 183 widthProp_.topDimen->NormalizeToPx(dipScale_, 0.0, lpxScale_, paintSize_.Height(), topOutset_); in InitBorderImageOutset()
|
/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | border_image_painter_test_ng.cpp | 344 EXPECT_EQ(result.topDimen, std::nullopt); in HWTEST_F()
|