Home
last modified time | relevance | path

Searched refs:borderWidth (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/checkable/
H A Drosen_render_radio.cpp63 auto borderWidth = NormalizeToPx(borderWidth_); in Paint() local
89 canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint); in Paint()
96 SetStrokeWidth(borderWidth, paint); in Paint()
97 canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint); in Paint()
102 canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint); in Paint()
105 SetStrokeWidth(borderWidth, paint); in Paint()
107 canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint); in Paint()
145 canvas->DrawCircle(RSPoint(centerX, centerY), outCircleRadius_ - borderWidth / 2.0); in Paint()
153 SetStrokeWidth(borderWidth, pen); in Paint()
155 canvas->DrawCircle(RSPoint(centerX, centerY), outCircleRadius_ - borderWidth / 2.0); in Paint()
[all …]
H A Drosen_render_switch.cpp338 auto borderWidth = NormalizeToPx(borderWidth_); in SetPaintStyle() local
351 SetStrokeWidth(static_cast<float>(borderWidth), trackPaint); in SetPaintStyle()
353 SetStrokeWidth(static_cast<float>(borderWidth), trackPaint.pen); in SetPaintStyle()
356 double strokeOffset = borderWidth / 2.0; in SetPaintStyle()
357 paintTrackSize_.SetWidth(switchSize_.Width() - borderWidth); in SetPaintStyle()
358 paintTrackSize_.SetHeight(switchSize_.Height() - borderWidth); in SetPaintStyle()
369 SetStrokeWidth(static_cast<float>(borderWidth), trackPaint); in SetPaintStyle()
371 SetStrokeWidth(static_cast<float>(borderWidth), trackPaint.pen); in SetPaintStyle()
374 double strokeOffset = borderWidth / 2.0; in SetPaintStyle()
375 paintTrackSize_.SetWidth(switchSize_.Width() - borderWidth); in SetPaintStyle()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Dtab_bar_indicator_component.cpp26 const Edge& padding, const Color& color, const Dimension& borderWidth) in TabBarIndicatorComponent() argument
28 indicatorWidth_(borderWidth) in TabBarIndicatorComponent()
32 border.SetBorderRadius(Radius(borderWidth / DOUBLE_FACTOR)); in TabBarIndicatorComponent()
36 SetHeight(borderWidth.Value(), borderWidth.Unit()); in TabBarIndicatorComponent()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.29/
H A Dchangelogs-arkui.md288 Dialog组件内AlertDialogParam弹窗类型的borderWidth接口不支持LocalizedEdgeWidths类型设置宽度。
294 Dialog组件内ActionSheetOptions弹窗类型的borderWidth接口不支持LocalizedEdgeWidths类型设置宽度。
302 Dialog组件内AlertDialogParam弹窗类型的borderWidth接口支持LocalizedEdgeWidths类型设置宽度。
308 Dialog组件内ActionSheetOptions弹窗类型的borderWidth接口支持LocalizedEdgeWidths类型设置宽度。
320 AlertDialogParam弹窗类型的borderWidth
335 ActionSheetOptions弹窗类型的borderWidth
350 Dialog组件内AlertDialogParam弹窗类型的cornerRadius、borderColor、borderWidth接口;
351 Dialog组件内ActionSheetOptions弹窗类型的cornerRadius、borderColor、borderWidth接口。
359 开发者可以在Dialog内通过AlertDialogParam弹窗类型的borderWidth接口设置边框宽度,且当参数类型为LocalizedEdgeWidths类型时,支持随语言习惯改变布局顺序。
388 borderWidth: // 新增API示例
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_button_unit_test.cpp204 const int16_t borderWidth = 2; variable
208 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton::ButtonState::RELEASED);
220 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth);
221 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth);
240 const int16_t borderWidth = 2; variable
244 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton::ButtonState::PRESSED);
256 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth);
257 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth);
276 const int16_t borderWidth = 2; variable
291 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth);
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/qrcode/index/
H A Dindex.js22 borderWidth: 5,
36 this.borderWidth = this.borderWidth + 5;
42 console.log('qrcode borderWidth:' + this.borderWidth);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-polymorphic-style.md77 .borderWidth(2)
88 .borderWidth(2)
99 .borderWidth(2)
121 .borderWidth(2)
137 .borderWidth(2)
182 .borderWidth(2)
194 .borderWidth(0)
213 .borderWidth(0)
H A Dts-custom-component-layout.md76 .borderWidth(2)
146 .borderWidth(2)
233 | borderWidth | [EdgeWidth](ts-types.md#edgewidths9) | 父组件边框宽度。<br>单位:vp |
301 调用此方法获得子组件的borderWidth信息。
309 | [DirectionalEdgesT&lt;number&gt;](#directionaledgestt12) | 子组件的borderWidth信息。 |
377 获取子组件的borderWidth信息。
387 |[DirectionalEdgesT&lt;number&gt;](#directionaledgestt12) | 子组件的borderWidth信息。|
495 | borderWidth | [EdgeWidths](ts-types.md#edgewidths9) | 边框宽度类型,用于描述组件边框不同方向的宽度。 |
522 .borderWidth(2)
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Doverlay_container_pattern.cpp32 auto borderWidth = CONTAINER_BORDER_WIDTH.ConvertToPx(); in BeforeCreateLayoutWrapper() local
34 inset.bottom_.start -= std::round(titleHeight + borderWidth); in BeforeCreateLayoutWrapper()
35 inset.bottom_.end -= std::round(titleHeight + borderWidth + borderWidth + botPadding); in BeforeCreateLayoutWrapper()
H A Dsheet_style.h127 std::optional<NG::BorderWidthProperty> borderWidth; // border width member
145 borderWidth == sheetStyle.borderWidth && borderColor == sheetStyle.borderColor &&
179 borderWidth = sheetStyle.borderWidth.has_value() ? sheetStyle.borderWidth : borderWidth; in PartialUpdate()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_foreground_modifier.cpp68 const BorderRadiusProperty& border, float borderWidth) const in MakeRRadius()
72 …pLeft = static_cast<float>(border.radiusTopLeft.value_or(Dimension()).ConvertToPx()) - borderWidth; in MakeRRadius()
74 …ight = static_cast<float>(border.radiusTopRight.value_or(Dimension()).ConvertToPx()) - borderWidth; in MakeRRadius()
76 …t = static_cast<float>(border.radiusBottomRight.value_or(Dimension()).ConvertToPx()) - borderWidth; in MakeRRadius()
78 …ft = static_cast<float>(border.radiusBottomLeft.value_or(Dimension()).ConvertToPx()) - borderWidth; in MakeRRadius()
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_draw_rect/
H A Dui_test_draw_rect.cpp467 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius001() local
469 view->SetStyle(STYLE_BORDER_WIDTH, borderWidth); in UIKitDrawRectTestRectBorderRadius001()
495 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius002() local
523 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius003() local
551 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius004() local
579 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius005() local
607 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius006() local
635 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius007() local
663 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius008() local
691 int16_t borderWidth = 10; // 10 : value in UIKitDrawRectTestRectBorderRadius009() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_badge_bridge.cpp36 auto borderWidth = badgeTheme->GetBadgeBorderWidth(); in InitBadgeParam() local
56 param.borderWidth.value = borderWidth.Value(); in InitBadgeParam()
57 param.borderWidth.units = static_cast<int32_t>(borderWidth.Unit()); in InitBadgeParam()
132 Local<JSValueRef> borderWidth = runtimeCallInfo->GetCallArgRef(7); // 7: parameter index in ParseBadgeBaseParam() local
159 if (ArkTSUtils::ParseJsDimensionVp(vm, borderWidth, borderWidthVal)) { in ParseBadgeBaseParam()
161 param.borderWidth.value = borderWidthVal.Value(); in ParseBadgeBaseParam()
162 param.borderWidth.units = static_cast<int32_t>(borderWidthVal.Unit()); in ParseBadgeBaseParam()
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-polymorphic-style.md71 .borderWidth(2)
82 .borderWidth(2)
93 .borderWidth(2)
115 .borderWidth(2)
131 .borderWidth(2)
174 .borderWidth(2)
186 .borderWidth(0)
205 .borderWidth(0)
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/form_render/src/
H A Dform_renderer_dispatcher_impl.cpp115 const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, float borderWidth) in DispatchSurfaceChangeEvent() argument
126 …handler->PostTask([content = uiContent_, width, height, reason, rsTransaction, borderWidth, this](… in DispatchSurfaceChangeEvent()
133 HandleSurfaceChangeEvent(uiContent, width, height, reason, rsTransaction, borderWidth); in DispatchSurfaceChangeEvent()
140 formRenderer->OnSurfaceChange(width, height, borderWidth); in DispatchSurfaceChangeEvent()
144 …ht, uint32_t reason, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, float borderWidth) in HandleSurfaceChangeEvent() argument
168 float uiWidth = width - borderWidth * DOUBLE; in HandleSurfaceChangeEvent()
169 float uiHeight = height - borderWidth * DOUBLE; in HandleSurfaceChangeEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_node/src/
H A Dframe_node.ts402 const borderWidth = getUINativeModule().frameNode.getConfigBorderWidth(this.getNodePtr());
404 top: new LengthMetrics(borderWidth[0], borderWidth[1]),
405 right: new LengthMetrics(borderWidth[2], borderWidth[3]),
406 bottom: new LengthMetrics(borderWidth[4], borderWidth[5]),
407 left: new LengthMetrics(borderWidth[6], borderWidth[7])
412 const borderWidth = getUINativeModule().frameNode.getConfigPadding(this.getNodePtr());
414 top: new LengthMetrics(borderWidth[0], borderWidth[1]),
415 right: new LengthMetrics(borderWidth[2], borderWidth[3]),
416 bottom: new LengthMetrics(borderWidth[4], borderWidth[5]),
417 left: new LengthMetrics(borderWidth[6], borderWidth[7])
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/input/ButtonB30/
H A Dindex.js25 borderWidth: 1,
45 this.borderWidth = 5;
63 this.borderWidth = 1;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/form/
H A Dform_pattern.cpp615 float borderWidth = 0.0f; in OnModifyDone() local
619 info.borderWidth = borderWidth; in OnModifyDone()
652 float borderWidth = 0.0f; in OnDirtyLayoutWrapperSwap() local
656 info.borderWidth = borderWidth; in OnDirtyLayoutWrapperSwap()
748 …th != info.width || cardInfo_.height != info.height || cardInfo_.borderWidth != info.borderWidth) { in UpdateFormComponent()
781 cardInfo_.borderWidth = info.borderWidth; in UpdateFormComponentSize()
785 externalRenderContext->SetBounds(round(cardInfo_.borderWidth), round(cardInfo_.borderWidth), in UpdateFormComponentSize()
1279 float borderWidth) { in InitFormManagerDelegate() argument
1423 externalRenderContext->SetBounds(round(cardInfo_.borderWidth), round(cardInfo_.borderWidth), in AttachRSNode()
1510 …externalRenderContext->SetBounds(round(borderWidth), round(borderWidth), round(width - borderWidth in FireFormSurfaceChangeCallback()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stage/
H A Dcontent_root_pattern.cpp59 auto borderWidth = CONTAINER_BORDER_WIDTH.ConvertToPx(); in CreateSafeAreaInsets() local
61 inset.bottom_.start -= std::round(titleHeight + borderWidth); in CreateSafeAreaInsets()
62 inset.bottom_.end -= std::round(titleHeight + 2 * borderWidth + botPadding); in CreateSafeAreaInsets()
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/test/samples/StageManualTestSuite/entry/src/main/ets/pages/
H A DConnectServiceExtensionAbility.ets97 }.height('75%').width('100%').borderWidth(1).align(Alignment.Start)
105 .borderWidth(1)
117 .borderWidth(1)
123 .borderWidth(1)
131 .borderWidth(1)
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_property.cpp127 CHECK_NULL_VOID(borderWidth); in ConstrainContentByBorderAndPadding()
700 auto borderWidth = ConvertToBorderWidthPropertyF( in CreatePaddingAndBorder() local
706 auto borderWidth = ConvertToBorderWidthPropertyF( in CreatePaddingAndBorder() local
722 auto borderWidth = ConvertToBorderWidthPropertyF( in CreatePaddingAndBorderWithDefault() local
728 auto borderWidth = ConvertToBorderWidthPropertyF( in CreatePaddingAndBorderWithDefault() local
1747 BorderWidthProperty borderWidth; in CheckLocalizedEdgeWidths() local
1770 if (borderWidth.leftDimen.has_value() && !borderWidth.rightDimen.has_value()) { in CheckLocalizedEdgeWidths()
1773 if (!borderWidth.leftDimen.has_value() && borderWidth.rightDimen.has_value()) { in CheckLocalizedEdgeWidths()
1776 borderWidth.multiValued = true; in CheckLocalizedEdgeWidths()
1777 layoutProperty->UpdateBorderWidth(borderWidth); in CheckLocalizedEdgeWidths()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_picker_model_ng.cpp100 BorderWidthProperty borderWidth; in CreateButtonChild() local
104 borderWidth.rightDimen = theme->GetEntryBorderWidth(); in CreateButtonChild()
106 borderWidth.leftDimen = theme->GetEntryBorderWidth(); in CreateButtonChild()
113 borderWidth.leftDimen = theme->GetEntryBorderWidth(); in CreateButtonChild()
115 borderWidth.topDimen = theme->GetEntryBorderWidth() / 2; in CreateButtonChild()
255 BorderWidthProperty borderWidth; in CreateNode() local
256 borderWidth.SetBorderWidth(theme->GetEntryBorderWidth()); in CreateNode()
412 BorderWidthProperty borderWidth; in ClearBorderWidth() local
413 borderWidth.SetBorderWidth(theme->GetEntryBorderWidth()); in ClearBorderWidth()
577 BorderWidthProperty borderWidth; in ClearBorderWidth() local
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.35/
H A Dchangelogs-arkui.md61 … MenuItem({content:"第一个"}).margin({top:20, bottom:20}).borderWidth(2).borderColor(Color.Black)
62 MenuItem({content:"第二个"}).margin({top:20}).borderWidth(2).borderColor(Color.Black)
63 MenuItem({content:"第三个"}).margin({bottom:20}).borderWidth(2).borderColor(Color.Black)
64 MenuItem({content:"第四个"}).borderWidth(2).borderColor(Color.Black)
123 MenuItem({content:"这是menuitem1"}).margin(10).borderWidth(1)
125 .borderWidth(2)
457 .borderWidth(1)
539 .borderWidth(1)
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkBadge.ts67 this.value.style?.borderColor, this.value.style?.borderWidth,
92 …Result = !isBaseOrResourceEqual(this.stageValue.style?.borderWidth, this.value.style?.borderWidth);
136 this.value.style?.borderColor, this.value.style?.borderWidth,
161 …Result = !isBaseOrResourceEqual(this.stageValue.style?.borderWidth, this.value.style?.borderWidth);
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_rect.cpp471 int16_t borderWidth = style.borderWidth_; in DrawRectRadiusBiggerThanBorderCon1() local
482 arcStyle.lineWidth_ = borderWidth; in DrawRectRadiusBiggerThanBorderCon1()
502 radius = radius - borderWidth; in DrawRectRadiusBiggerThanBorderCon1()
540 int16_t borderWidth = style.borderWidth_; in DrawRectRadiusBiggerThanBorderCon2() local
551 arcStyle.lineWidth_ = borderWidth; in DrawRectRadiusBiggerThanBorderCon2()
570 radius = radius - borderWidth; in DrawRectRadiusBiggerThanBorderCon2()
607 int16_t borderWidth = style.borderWidth_; in DrawRectRadiusBiggerThanBorderCon3() local
612 arcStyle.lineWidth_ = borderWidth; in DrawRectRadiusBiggerThanBorderCon3()
626 radius = radius - borderWidth; in DrawRectRadiusBiggerThanBorderCon3()
659 arcStyle.lineWidth_ = borderWidth; in DrawRectRadiusBiggerThanBorderCon4()
[all …]

12345678910>>...16