/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | border_property.h | 226 std::optional<T> bottomDimen; member 233 bottomDimen = borderWidth; in SetBorderWidth() 239 (bottomDimen == value.bottomDimen); in operator ==() 257 if (value.bottomDimen.has_value() && (bottomDimen != value.bottomDimen)) { in UpdateWithCheck() 258 bottomDimen = value.bottomDimen; in UpdateWithCheck() 270 std::optional<Dimension> bottomDimen; member 295 std::optional<float> bottomDimen; global() member [all...] |
H A D | border_property.cpp | 60 str.append(",").append(bottomDimen.has_value() ? bottomDimen->ToString() : "NA").append("]"); in ToString() 78 res->Put("bottom", bottomDimen.value_or(Dimension(0.0, DimensionUnit::VP)).ToString().c_str()); in ToJsonValue() 103 res->Put("bottom", bottomDimen.value_or(Dimension(0.0, DimensionUnit::VP)).ToString().c_str()); in ToDashJsonValue() 127 if (value.bottomDimen.has_value() && (bottomDimen != value.bottomDimen)) { in UpdateWithCheck() 128 bottomDimen = value.bottomDimen; in UpdateWithCheck() 247 bottomDimen in SetBorderWidth() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_sec_button_base.cpp | 217 CalcDimension bottomDimen; in SetBackgroundPadding() local 218 if (ParseJsDimensionVp(paddingObj->GetProperty("bottom"), bottomDimen)) { in SetBackgroundPadding() 219 bottom = bottomDimen; in SetBackgroundPadding()
|
H A D | js_checkbox.cpp | 334 CalcDimension bottomDimen = CalcDimension(0.0, DimensionUnit::VP); in GetOldPadding() local 338 ParseJsDimensionVp(jsObj->GetProperty("bottom"), bottomDimen); in GetOldPadding() 343 topDimen = bottomDimen; in GetOldPadding() 352 padding.bottom = bottomDimen.ConvertToPx(); in GetOldPadding()
|
H A D | js_radio.cpp | 212 CalcDimension bottomDimen = CalcDimension(0.0, DimensionUnit::VP); in GetOldPadding() local 216 ParseJsDimensionVp(jsObj->GetProperty(static_cast<int32_t>(ArkUIIndex::BOTTOM)), bottomDimen); in GetOldPadding() 221 topDimen = bottomDimen; in GetOldPadding() 230 padding.bottom = bottomDimen.ConvertToPx(); in GetOldPadding()
|
H A D | js_checkboxgroup.cpp | 283 CalcDimension bottomDimen = CalcDimension(0.0, DimensionUnit::VP); in GetOldPadding() local 287 ParseJsDimensionVp(jsObj->GetProperty("bottom"), bottomDimen); in GetOldPadding() 292 topDimen = bottomDimen; in GetOldPadding() 301 padding.bottom = bottomDimen.ConvertToPx(); in GetOldPadding()
|
H A D | js_toggle.cpp | 315 CalcDimension bottomDimen = CalcDimension(0.0, DimensionUnit::VP); in GetOldPadding() local 319 ParseJsDimensionVp(jsObj->GetProperty("bottom"), bottomDimen); in GetOldPadding() 324 topDimen = bottomDimen; in GetOldPadding() 333 padding.bottom = bottomDimen.ConvertToPx(); in GetOldPadding()
|
H A D | js_view_measure_layout.cpp | 81 auto bottomBorder = borderWidth ? borderWidth->bottomDimen->ConvertToVp() : 0.0f; in GenPlaceChildrenConstraintNG() 116 edgeWidths->SetProperty("bottom", edgeWidthsNative->bottomDimen->ConvertToVp()); in GenEdgeWidths() 144 edges->SetProperty("bottom", edgeNative.bottomDimen.value_or(0) * px2vpScale); in GenBorderWidthGlobalized()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | radio_modifier.cpp | 158 CalcLength bottomDimen;
in SetRadioPadding() local 171 bottomDimen = CalcLength(bottom->string);
in SetRadioPadding() 173 bottomDimen = CalcLength(bottom->value, static_cast<DimensionUnit>(bottom->unit));
in SetRadioPadding() 182 paddings.bottom = std::optional<CalcLength>(bottomDimen);
in SetRadioPadding()
|
H A D | node_toggle_modifier.cpp | 174 CalcLength bottomDimen; in SetTogglePadding() local 192 bottomDimen = CalcLength( in SetTogglePadding() 204 paddings.bottom = std::optional<CalcLength>(bottomDimen); in SetTogglePadding()
|
H A D | node_text_area_modifier.cpp | 890 CalcLength bottomDimen; in SetTextAreaPadding() local 903 bottomDimen = CalcLength(bottom->string); in SetTextAreaPadding() 905 bottomDimen = CalcLength(bottom->value, static_cast<DimensionUnit>(bottom->unit)); in SetTextAreaPadding() 914 paddings.bottom = std::optional<CalcLength>(bottomDimen); in SetTextAreaPadding() 1199 SetOptionalBorder(borderWidth.bottomDimen, values, valuesSize, offset); in SetAllWidthOptionalBorder() 1263 borderWidth.bottomDimen.has_value()) { in SetTextAreaBorder() 1320 std::optional<CalcDimension> bottomDimen; in SetTextAreaBorderWidth() local 1333 bottomDimen = Dimension(values[NUM_2], static_cast<OHOS::Ace::DimensionUnit>(units[NUM_2])); in SetTextAreaBorderWidth() 1344 borderWidth.bottomDimen = bottomDimen; in SetTextAreaBorderWidth() 1444 CalcLength bottomDimen; SetTextAreaMargin() local [all...] |
H A D | node_text_input_modifier.cpp | 1137 CalcLength bottomDimen; in SetTextInputPadding() local 1150 bottomDimen = CalcLength(bottom->string); in SetTextInputPadding() 1152 bottomDimen = CalcLength(bottom->value, static_cast<DimensionUnit>(bottom->unit)); in SetTextInputPadding() 1161 paddings.bottom = std::optional<CalcLength>(bottomDimen); in SetTextInputPadding() 1689 CalcLength bottomDimen; in SetTextInputMargin() local 1702 bottomDimen = CalcLength(bottom->string); in SetTextInputMargin() 1704 bottomDimen = CalcLength(bottom->value, static_cast<DimensionUnit>(bottom->unit)); in SetTextInputMargin() 1713 paddings.bottom = std::optional<CalcLength>(bottomDimen); in SetTextInputMargin()
|
H A D | node_common_modifier.cpp | 767 std::optional<CalcDimension> bottomDimen; in SetBorderWidth() local 780 bottomDimen = Dimension(values[NUM_2], static_cast<OHOS::Ace::DimensionUnit>(units[NUM_2])); in SetBorderWidth() 791 borderWidth.bottomDimen = bottomDimen; in SetBorderWidth() 1781 SetOptionalBorder(borderWidth.bottomDimen, values, valuesSize, offset); in SetBorderWidth() 1784 borderWidth.bottomDimen.has_value() || borderWidth.startDimen.has_value() || borderWidth.endDimen.has_value()) { in SetBorderWidth() 2370 CalcLength bottomDimen; in SetPadding() local 2383 bottomDimen = CalcLength(bottom->string); in SetPadding() 2385 bottomDimen = CalcLength(bottom->value, static_cast<DimensionUnit>(bottom->unit)); in SetPadding() 2394 paddings.bottom = std::optional<CalcLength>(bottomDimen); in SetPadding() 2738 CalcLength bottomDimen; SetMargin() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/ |
H A D | image_paint_method.cpp | 77 if (width->bottomDimen) { in UpdateBorderRadius() 78 auto diff = width->bottomDimen->ConvertToPx(); in UpdateBorderRadius()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | select_model_impl.cpp | 381 CalcDimension bottomDimen; in SetPaddings() local 382 bottomDimen.SetValue(bottom.value().Value()); in SetPaddings() 383 selectComponent->SetBottomPadding(bottomDimen); in SetPaddings()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/ |
H A D | calendar_picker_layout_algorithm.cpp | 110 width += currentBorderWidth.bottomDimen.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 | 80 borderWidthBottom = GET_BORDER_PROPERTY_VALUE_PX(borderWidthProperty->bottomDimen); in CalcIndicatrFrameOffSet()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_property.cpp | 41 borderWidth.bottomDimen.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() 1719 if (borderWidthProperty->bottomDimen.has_value()) { in CheckLocalizedEdgeWidths() 1720 borderWidth.bottomDimen = borderWidthProperty->bottomDimen; 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() 317 EXPECT_TRUE(borderWidthProperty.bottomDimen.has_value()); in HWTEST_F()
|
H A D | measure_utils_test_ng.cpp | 332 testPropertyT.bottomDimen = BORDER_WIDTH_PX; in HWTEST_F() 375 testPropertyT.bottomDimen = BORDER_WIDTH_VP; in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | view_abstract_model_ng.h | 356 borderWidth.bottomDimen = bottom; 368 .topDimen = top, .bottomDimen = bottom, .startDimen = start, .endDimen = end, .multiValued = true 402 dashGap.bottomDimen = bottom; 419 dashWidth.bottomDimen = bottom; 480 borderWidth.bottomDimen = bottom;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_radio_bridge.cpp | 270 CalcDimension bottomDimen(0, DimensionUnit::VP);
in SetRadioPadding() 274 ArkTSUtils::ParsePadding(vm, bottomArg, bottomDimen, bottom);
in SetRadioPadding()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | border_image_painter.cpp | 132 widthProp_.bottomDimen->NormalizeToPx(dipScale_, 0.0, lpxScale_, paintSize_.Height(), bottomWidth_); in InitBorderImageWidth() 189 widthProp_.bottomDimen->NormalizeToPx(dipScale_, 0.0, lpxScale_, paintSize_.Height(), bottomOutset_); in InitBorderImageOutset()
|
/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | border_image_painter_test_ng.cpp | 346 EXPECT_EQ(result.bottomDimen, std::nullopt); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/ |
H A D | menu_item_layout_algorithm.cpp | 381 border->bottomDimen.value_or(Dimension(0.0)).ConvertToPx(); in GetBordersHeight()
|