Home
last modified time | relevance | path

Searched refs:borderWidth (Results 1 - 25 of 149) sorted by relevance

123456

/foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/property_display/
H A Dappearance_border_radius_test.cpp46 Vector4f borderWidth = { 5, 5, 5, 5 }; in setNode() local
47 node->SetBorderWidth(borderWidth); in setNode()
149 const int borderWidth = 5; in GRAPHIC_TEST() local
157 testNodeStyle->SetBorderWidth(borderWidth, borderWidth, borderWidth, borderWidth); in GRAPHIC_TEST()
168 testNodeFourStyle->SetBorderWidth(borderWidth, borderWidth, borderWidth, borderWidt in GRAPHIC_TEST()
185 const int borderWidth = 5; GRAPHIC_TEST() local
237 const int borderWidth = 5; GRAPHIC_TEST() local
292 const int borderWidth = 10; GRAPHIC_TEST() local
[all...]
H A Dappearance_border_test.cpp46 Vector4f borderWidth = { 5, 5, 5, 5 }; in setNode() local
47 node->SetBorderWidth(borderWidth); in setNode()
143 const int borderWidth = 5; in GRAPHIC_TEST() local
151 testNodeStyle->SetBorderWidth(borderWidth, borderWidth, borderWidth, borderWidth); in GRAPHIC_TEST()
161 testNodeFourStyle->SetBorderWidth(borderWidth, borderWidth, borderWidth, borderWidt in GRAPHIC_TEST()
176 const int borderWidth = 5; GRAPHIC_TEST() local
224 const int borderWidth = 5; GRAPHIC_TEST() local
275 const int borderWidth = 10; GRAPHIC_TEST() local
[all...]
H A Dappearance_outlineborder_radius_test.cpp43 Vector4f borderWidth = { 5, 5, 5, 5 }; in setNode() local
44 node->SetOutlineWidth(borderWidth); in setNode()
157 const int borderWidth = 5; in GRAPHIC_TEST() local
168 testNodeStyle->SetOutlineWidth({ borderWidth, borderWidth, borderWidth, borderWidth }); in GRAPHIC_TEST()
181 testNodeFourStyle->SetOutlineWidth({ borderWidth, borderWidth, borderWidth, borderWidt in GRAPHIC_TEST()
[all...]
/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()
28 indicatorWidth_(borderWidth) in TabBarIndicatorComponent()
32 border.SetBorderRadius(Radius(borderWidth / DOUBLE_FACTOR)); in TabBarIndicatorComponent()
36 SetHeight(borderWidth.Value(), borderWidth.Unit()); in TabBarIndicatorComponent()
25 TabBarIndicatorComponent( const Edge& padding, const Color& color, const Dimension& borderWidth) TabBarIndicatorComponent() argument
/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
143 borderWidth == sheetStyle.borderWidth && borderColor == sheetStyle.borderColor && in operator ==()
175 borderWidth = sheetStyle.borderWidth.has_value() ? sheetStyle.borderWidth : borderWidth; in PartialUpdate()
H A Dsheet_wrapper_paint_method.h48 void SetBorderPenStyle(RSPen& pen, const Dimension& borderWidth, const Color& borderColor);
50 RSPath& path, const RefPtr<FrameNode> sheetNode, const RefPtr<SheetTheme>& sheetTheme, float borderWidth);
H A Dsheet_wrapper_paint_method.cpp87 RSPath& path, const RefPtr<FrameNode> sheetNode, const RefPtr<SheetTheme>& sheetTheme, float borderWidth) in GetBorderDrawPath()
96 auto borderRadius = sheetRadius + borderWidth * 0.5f; in GetBorderDrawPath()
97 auto borderOffset = borderWidth * 0.5f; in GetBorderDrawPath()
153 void SheetWrapperPaintMethod::SetBorderPenStyle(RSPen& pen, const Dimension& borderWidth, const Color& borderColor) in SetBorderPenStyle() argument
159 pen.SetWidth(borderWidth.ConvertToPx()); in SetBorderPenStyle()
178 !sheetStyle.borderWidth.has_value()) { in IsDrawBorder()
86 GetBorderDrawPath( RSPath& path, const RefPtr<FrameNode> sheetNode, const RefPtr<SheetTheme>& sheetTheme, float borderWidth) GetBorderDrawPath() argument
/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()
/foundation/arkui/ace_engine/frameworks/core/components/checkable/
H A Drosen_render_radio.cpp58 auto borderWidth = NormalizeToPx(borderWidth_); in Paint() local
90 canvas->DrawCircle(RSPoint(centerX, centerY), outCircleRadius_ - borderWidth / 2.0); in Paint()
98 SetStrokeWidth(borderWidth, pen); in Paint()
100 canvas->DrawCircle(RSPoint(centerX, centerY), outCircleRadius_ - borderWidth / 2.0); in Paint()
107 canvas->DrawCircle(RSPoint(centerX, centerY), outCircleRadius_ - borderWidth / 2.0); in Paint()
111 SetStrokeWidth(borderWidth, pen); in Paint()
114 canvas->DrawCircle(RSPoint(centerX, centerY), outCircleRadius_ - borderWidth / 2.0); in Paint()
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...]
/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()
/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()
470 view->SetStyle(STYLE_BORDER_RADIUS, borderWidth - 5); // 5 : math_num in UIKitDrawRectTestRectBorderRadius001()
495 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius002() local
497 view->SetStyle(STYLE_BORDER_WIDTH, borderWidth); in UIKitDrawRectTestRectBorderRadius002()
498 view->SetStyle(STYLE_BORDER_RADIUS, height / 2 + borderWidth + 5); // 2 : half height 5 : offset in UIKitDrawRectTestRectBorderRadius002()
523 int16_t borderWidth = 10; // 10 : borderWidth in UIKitDrawRectTestRectBorderRadius003() local
551 int16_t borderWidth = 10; // 10 : borderWidth UIKitDrawRectTestRectBorderRadius004() local
579 int16_t borderWidth = 10; // 10 : borderWidth UIKitDrawRectTestRectBorderRadius005() local
607 int16_t borderWidth = 10; // 10 : borderWidth UIKitDrawRectTestRectBorderRadius006() local
635 int16_t borderWidth = 10; // 10 : borderWidth UIKitDrawRectTestRectBorderRadius007() local
663 int16_t borderWidth = 10; // 10 : borderWidth UIKitDrawRectTestRectBorderRadius008() local
691 int16_t borderWidth = 10; // 10 : value UIKitDrawRectTestRectBorderRadius009() local
719 int16_t borderWidth = 10; // 10 : borderWidth UIKitDrawRectTestRectBorderRadius010() local
[all...]
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_button_unit_test.cpp204 const int16_t borderWidth = 2; in HWTEST_F() local
208 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton::ButtonState::RELEASED); in HWTEST_F()
220 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth); in HWTEST_F()
221 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth); in HWTEST_F()
240 const int16_t borderWidth = 2; in HWTEST_F() local
244 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton::ButtonState::PRESSED); in HWTEST_F()
256 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth); in HWTEST_F()
257 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth); in HWTEST_F()
276 const int16_t borderWidth = 2; in HWTEST_F() local
280 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButto in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_badge.cpp110 JSRef<JSVal> borderWidthValue = value->GetProperty("borderWidth"); in CreateBadgeParameters()
161 CalcDimension borderWidth; in CreateBadgeParameters() local
162 if (ParseJsDimensionVp(borderWidthValue, borderWidth)) { in CreateBadgeParameters()
163 if (borderWidth.IsNonNegative() && borderWidth.Unit() != DimensionUnit::PERCENT) { in CreateBadgeParameters()
164 badgeParameters.badgeBorderWidth = borderWidth; in CreateBadgeParameters()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dfocus_state_modifier.h64 void SetRoundRect(const RoundRect& rect, float borderWidth) in SetRoundRect() argument
129 rect.GetRect().Left() - borderWidth / 2, rect.GetRect().Top() - borderWidth / 2, in SetRoundRect()
130 rect.GetRect().Width() + borderWidth, rect.GetRect().Height() + borderWidth); in SetRoundRect()
/foundation/arkui/ace_engine/interfaces/inner_api/form_render/src/
H A Dform_renderer_dispatcher_impl.cpp98 const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, float borderWidth) in DispatchSurfaceChangeEvent()
106 handler->PostTask([content = uiContent_, width, height, reason, rsTransaction, borderWidth, this]() { in DispatchSurfaceChangeEvent()
135 float uiWidth = width - borderWidth * DOUBLE; in DispatchSurfaceChangeEvent()
136 float uiHeight = height - borderWidth * DOUBLE; in DispatchSurfaceChangeEvent()
154 formRenderer->OnSurfaceChange(width, height, borderWidth); in DispatchSurfaceChangeEvent()
97 DispatchSurfaceChangeEvent(float width, float height, uint32_t reason, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, float borderWidth) DispatchSurfaceChangeEvent() argument
H A Dform_renderer_delegate_impl.cpp67 int32_t FormRendererDelegateImpl::OnSurfaceChange(float width, float height, float borderWidth) in OnSurfaceChange() argument
74 surfaceChangeEventHandler_(width, height, borderWidth); in OnSurfaceChange()
131 std::function<void(float width, float height, float borderWidth)>&& listener) in SetSurfaceChangeEventHandler()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/
H A Dsliding_panel_model.h52 virtual void SetBorderWidth(const Dimension& borderWidth);
54 virtual void SetBorder(const BorderStyle& borderStyle, const Dimension& borderWidth);
H A Dsliding_panel_model_ng.h41 void SetBorderWidth(const Dimension& borderWidth) override;
43 void SetBorder(const BorderStyle& borderStyle, const Dimension& borderWidth) override;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dsliding_panel_model_impl.h39 void SetBorderWidth(const Dimension& borderWidth) override;
41 void SetBorder(const BorderStyle& borderStyle, const Dimension& borderWidth) override;
/foundation/arkui/ace_engine/interfaces/inner_api/form_render/include/
H A Dform_renderer_delegate_impl.h55 int32_t OnSurfaceChange(float width, float height, float borderWidth = 0.0) override;
70 void SetSurfaceChangeEventHandler(std::function<void(float width, float height, float borderWidth)>&& listener);
80 std::function<void(float width, float height, float borderWidth)> surfaceChangeEventHandler_;
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_property.cpp31 const BorderWidthPropertyF& borderWidth, const DefaultPaddingBorderParam& defaultParam) in CombinePaddingsAndBorder()
35 borderWidth.leftDimen.value_or(defaultParam.horizontalBorder); in CombinePaddingsAndBorder()
37 borderWidth.rightDimen.value_or(defaultParam.horizontalBorder); in CombinePaddingsAndBorder()
39 borderWidth.topDimen.value_or(defaultParam.verticalBorder); in CombinePaddingsAndBorder()
41 borderWidth.bottomDimen.value_or(defaultParam.verticalBorder); in CombinePaddingsAndBorder()
633 auto borderWidth = ConvertToBorderWidthPropertyF( in CreatePaddingAndBorder() local
635 return CombinePaddingsAndBorder(safeAreaPadding, padding, borderWidth, {}); in CreatePaddingAndBorder()
639 auto borderWidth = ConvertToBorderWidthPropertyF( in CreatePaddingAndBorder() local
641 return CombinePaddingsAndBorder(safeAreaPadding, padding, borderWidth, {}); in CreatePaddingAndBorder()
655 auto borderWidth in CreatePaddingAndBorderWithDefault() local
30 CombinePaddingsAndBorder(const PaddingPropertyF& safeAreaPadding, const PaddingPropertyF& padding, const BorderWidthPropertyF& borderWidth, const DefaultPaddingBorderParam& defaultParam) CombinePaddingsAndBorder() argument
661 auto borderWidth = ConvertToBorderWidthPropertyF( CreatePaddingAndBorderWithDefault() local
1699 BorderWidthProperty borderWidth; CheckLocalizedEdgeWidths() local
[all...]
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_rect.cpp471 int16_t borderWidth = style.borderWidth_; in DrawRectRadiusBiggerThanBorderCon1() local
476 int16_t row2Y = rect.GetTop() + borderWidth - 1; in DrawRectRadiusBiggerThanBorderCon1()
478 int16_t row4Y = rect.GetBottom() - borderWidth + 1; in DrawRectRadiusBiggerThanBorderCon1()
482 arcStyle.lineWidth_ = borderWidth; in DrawRectRadiusBiggerThanBorderCon1()
502 radius = radius - borderWidth; in DrawRectRadiusBiggerThanBorderCon1()
540 int16_t borderWidth = style.borderWidth_; in DrawRectRadiusBiggerThanBorderCon2() local
542 int16_t col2X = rect.GetLeft() + borderWidth - 1; in DrawRectRadiusBiggerThanBorderCon2()
544 int16_t col4X = rect.GetRight() - borderWidth + 1; in DrawRectRadiusBiggerThanBorderCon2()
551 arcStyle.lineWidth_ = borderWidth; in DrawRectRadiusBiggerThanBorderCon2()
570 radius = radius - borderWidth; in DrawRectRadiusBiggerThanBorderCon2()
607 int16_t borderWidth = style.borderWidth_; DrawRectRadiusBiggerThanBorderCon3() local
643 int16_t borderWidth = style.borderWidth_; DrawRectRadiusBiggerThanBorderCon4() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/form/
H A Dform_pattern.cpp517 auto width = static_cast<float>(cardInfo_.width.Value()) - cardInfo_.borderWidth * DOUBLE; in UpdateImageNode()
518 auto height = static_cast<float>(cardInfo_.height.Value()) - cardInfo_.borderWidth * DOUBLE; in UpdateImageNode()
614 float borderWidth = 0.0f; in OnModifyDone() local
616 borderWidth = borderWidthProperty->topDimen->ConvertToPx(); in OnModifyDone()
618 info.borderWidth = borderWidth; in OnModifyDone()
656 float borderWidth = 0.0f; in OnDirtyLayoutWrapperSwap() local
658 borderWidth = borderWidthProperty->topDimen->ConvertToPx(); in OnDirtyLayoutWrapperSwap()
660 info.borderWidth = borderWidth; in OnDirtyLayoutWrapperSwap()
1528 FireFormSurfaceChangeCallback(float width, float height, float borderWidth) FireFormSurfaceChangeCallback() argument
[all...]

Completed in 15 milliseconds

123456