/foundation/ace/ace_engine/frameworks/core/components/checkable/ |
D | rosen_render_radio.cpp | 44 auto borderWidth = NormalizeToPx(borderWidth_); in Paint() local 66 canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint); in Paint() 70 SetStrokeWidth(borderWidth, paint); in Paint() 71 canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint); in Paint() 76 canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint); in Paint() 79 SetStrokeWidth(borderWidth, paint); in Paint() 81 canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint); in Paint()
|
D | flutter_render_radio.cpp | 45 auto borderWidth = NormalizeToPx(borderWidth_); in Paint() local 67 … canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint, paintData); in Paint() 71 SetStrokeWidth(borderWidth, paint); in Paint() 72 … canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint, paintData); in Paint() 77 … canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint, paintData); in Paint() 80 SetStrokeWidth(borderWidth, paint); in Paint() 82 … canvas->drawCircle(centerX, centerY, outCircleRadius_ - borderWidth / 2.0, paint, paintData); in Paint()
|
D | rosen_render_switch.cpp | 176 auto borderWidth = NormalizeToPx(borderWidth_); in SetPaintStyle() local 188 SetStrokeWidth(static_cast<float>(borderWidth), trackPaint); in SetPaintStyle() 189 double strokeOffset = borderWidth / 2.0; in SetPaintStyle() 190 paintTrackSize_.SetWidth(switchSize_.Width() - borderWidth); in SetPaintStyle() 191 paintTrackSize_.SetHeight(switchSize_.Height() - borderWidth); in SetPaintStyle() 201 SetStrokeWidth(static_cast<float>(borderWidth), trackPaint); in SetPaintStyle() 202 double strokeOffset = borderWidth / 2.0; in SetPaintStyle() 203 paintTrackSize_.SetWidth(switchSize_.Width() - borderWidth); in SetPaintStyle() 204 paintTrackSize_.SetHeight(switchSize_.Height() - borderWidth); in SetPaintStyle()
|
D | flutter_render_switch.cpp | 180 auto borderWidth = NormalizeToPx(borderWidth_); in SetPaintStyle() local 192 SetStrokeWidth(static_cast<float>(borderWidth), trackPaint); in SetPaintStyle() 193 double strokeOffset = borderWidth / 2.0; in SetPaintStyle() 194 paintTrackSize_.SetWidth(switchSize_.Width() - borderWidth); in SetPaintStyle() 195 paintTrackSize_.SetHeight(switchSize_.Height() - borderWidth); in SetPaintStyle() 205 SetStrokeWidth(static_cast<float>(borderWidth), trackPaint); in SetPaintStyle() 206 double strokeOffset = borderWidth / 2.0; in SetPaintStyle() 207 paintTrackSize_.SetWidth(switchSize_.Width() - borderWidth); in SetPaintStyle() 208 paintTrackSize_.SetHeight(switchSize_.Height() - borderWidth); in SetPaintStyle()
|
D | rosen_render_checkbox.cpp | 172 auto borderWidth = NormalizeToPx(borderWidth_); in DrawUnselected() local 173 SetStrokeWidth(borderWidth, paint); in DrawUnselected() 174 double strokeOffset = borderWidth / 2; in DrawUnselected() 177 paintSize.SetWidth(paintSize.Width() - borderWidth); in DrawUnselected() 178 paintSize.SetHeight(paintSize.Height() - borderWidth); in DrawUnselected()
|
D | flutter_render_checkbox.cpp | 186 auto borderWidth = NormalizeToPx(borderWidth_); in DrawUnselected() local 187 SetStrokeWidth(borderWidth, paint); in DrawUnselected() 188 double strokeOffset = borderWidth / 2; in DrawUnselected() 191 paintSize.SetWidth(paintSize.Width() - borderWidth); in DrawUnselected() 192 paintSize.SetHeight(paintSize.Height() - borderWidth); in DrawUnselected()
|
/foundation/ace/ace_engine/frameworks/core/components/tab_bar/ |
D | tab_bar_indicator_component.cpp | 26 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()
|
D | tab_bar_indicator_component.h | 37 …const Color& color = DEFAULT_INDICATOR_COLOR, const Dimension& borderWidth = DEFAULT_INDICATOR_WID…
|
/foundation/graphic/standard/rosen/modules/render_service_base/src/property/ |
D | rs_properties_painter.cpp | 276 auto borderWidth = properties.GetBorderWidth(); in DrawBorder() local 286 paint.setStrokeWidth(borderWidth); in DrawBorder() 290 rrect.rect_.width_ -= borderWidth; in DrawBorder() 291 rrect.rect_.height_ -= borderWidth; in DrawBorder() 292 rrect.rect_.Move(borderWidth / PARAM_DOUBLE, borderWidth / PARAM_DOUBLE); in DrawBorder() 295 SetBorderEffect(paint, borderStyle, borderWidth, 0.f, 0.f); in DrawBorder() 300 … auto borderLengthVert = properties.GetBoundsHeight() - borderWidth * addLen * PARAM_DOUBLE; in DrawBorder() 301 int32_t rawNumberVert = borderLengthVert / (PARAM_DOUBLE * borderWidth); in DrawBorder() 302 … auto borderLengthHoriz = properties.GetBoundsWidth() - borderWidth * addLen * PARAM_DOUBLE; in DrawBorder() 303 int32_t rawNumberHoriz = borderLengthHoriz / (PARAM_DOUBLE * borderWidth); in DrawBorder() [all …]
|
D | rs_properties.cpp | 856 float borderWidth = GetBorderWidth(); in GetInnerRRect() local 857 rect.SetAll(rect.left_ + borderWidth, rect.top_ + borderWidth, rect.width_ - borderWidth * 2, in GetInnerRRect() 858 rect.height_ - borderWidth * 2); in GetInnerRRect() 859 float cornerRadius = std::max(0.0f, GetCornerRadius() - borderWidth); in GetInnerRRect()
|
/foundation/ace/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/qrcode/index/ |
D | index.js | 22 borderWidth: 5, 36 this.borderWidth = this.borderWidth + 5; 42 console.log('qrcode borderWidth:' + this.borderWidth);
|
/foundation/ace/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/input/ButtonB30/ |
D | index.js | 25 borderWidth: 1, 45 this.borderWidth = 5; 63 this.borderWidth = 1;
|
/foundation/graphic/ui/test/unittest/components/ |
D | ui_button_unit_test.cpp | 203 const int16_t borderWidth = 2; variable 207 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton::ButtonState::RELEASED); 219 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth); 220 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth); 239 const int16_t borderWidth = 2; variable 243 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton::ButtonState::PRESSED); 255 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth); 256 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth); 275 const int16_t borderWidth = 2; variable 279 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton::ButtonState::INACTIVE); [all …]
|
/foundation/graphic/ui/test/uitest/test_draw_rect/ |
D | ui_test_draw_rect.cpp | 467 int16_t borderWidth = 10; // 10 : borderWidth in UIKit_DrawRect_Test_RectBorderRadius_001() local 469 view->SetStyle(STYLE_BORDER_WIDTH, borderWidth); in UIKit_DrawRect_Test_RectBorderRadius_001() 470 view->SetStyle(STYLE_BORDER_RADIUS, borderWidth - 5); // 5 : math_num in UIKit_DrawRect_Test_RectBorderRadius_001() 495 int16_t borderWidth = 10; // 10 : borderWidth in UIKit_DrawRect_Test_RectBorderRadius_002() local 497 view->SetStyle(STYLE_BORDER_WIDTH, borderWidth); in UIKit_DrawRect_Test_RectBorderRadius_002() 498 view->SetStyle(STYLE_BORDER_RADIUS, height / 2 + borderWidth + 5); // 2 : half height 5 : offset in UIKit_DrawRect_Test_RectBorderRadius_002() 523 int16_t borderWidth = 10; // 10 : borderWidth in UIKit_DrawRect_Test_RectBorderRadius_003() local 525 view->SetStyle(STYLE_BORDER_WIDTH, borderWidth); in UIKit_DrawRect_Test_RectBorderRadius_003() 526 view->SetStyle(STYLE_BORDER_RADIUS, height / 2 + borderWidth); // 2 : half height in UIKit_DrawRect_Test_RectBorderRadius_003() 551 int16_t borderWidth = 10; // 10 : borderWidth in UIKit_DrawRect_Test_RectBorderRadius_004() local [all …]
|
/foundation/graphic/ui/frameworks/draw/ |
D | draw_rect.cpp | 461 int16_t borderWidth = style.borderWidth_; in DrawRectRadiusBiggerThanBorderCon1() local 466 int16_t row2Y = rect.GetTop() + borderWidth - 1; in DrawRectRadiusBiggerThanBorderCon1() 468 int16_t row4Y = rect.GetBottom() - borderWidth + 1; in DrawRectRadiusBiggerThanBorderCon1() 472 arcStyle.lineWidth_ = borderWidth; in DrawRectRadiusBiggerThanBorderCon1() 490 radius = radius - borderWidth; in DrawRectRadiusBiggerThanBorderCon1() 527 int16_t borderWidth = style.borderWidth_; in DrawRectRadiusBiggerThanBorderCon2() local 529 int16_t col2X = rect.GetLeft() + borderWidth - 1; in DrawRectRadiusBiggerThanBorderCon2() 531 int16_t col4X = rect.GetRight() - borderWidth + 1; in DrawRectRadiusBiggerThanBorderCon2() 538 arcStyle.lineWidth_ = borderWidth; in DrawRectRadiusBiggerThanBorderCon2() 556 radius = radius - borderWidth; in DrawRectRadiusBiggerThanBorderCon2() [all …]
|
/foundation/ace/ace_engine/frameworks/core/components/bubble/ |
D | flutter_render_bubble.cpp | 291 double borderWidth = NormalizeToPx(edge.GetWidth()); in PaintBorder() local 293 paint.setStrokeWidth(borderWidth); in PaintBorder() 299 dotPath.addCircle(0.0f, 0.0f, SkDoubleToScalar(borderWidth / 2.0)); in PaintBorder() 301 … SkPath1DPathEffect::Make(dotPath, borderWidth * 2.0, 0.0, SkPath1DPathEffect::kRotate_Style)); in PaintBorder() 303 const float intervals[] = { SkDoubleToScalar(borderWidth), SkDoubleToScalar(borderWidth) }; in PaintBorder() 313 …skCanvas->scale(1.0 - (borderWidth / childSize_.Width()), 1.0 - (borderWidth / childSize_.Height()… in PaintBorder()
|
D | rosen_render_bubble.cpp | 292 double borderWidth = NormalizeToPx(edge.GetWidth()); in PaintBorder() local 294 paint.setStrokeWidth(borderWidth); in PaintBorder() 300 dotPath.addCircle(0.0f, 0.0f, SkDoubleToScalar(borderWidth / 2.0)); in PaintBorder() 302 … SkPath1DPathEffect::Make(dotPath, borderWidth * 2.0, 0.0, SkPath1DPathEffect::kRotate_Style)); in PaintBorder() 304 const float intervals[] = { SkDoubleToScalar(borderWidth), SkDoubleToScalar(borderWidth) }; in PaintBorder() 314 …skCanvas->scale(1.0 - (borderWidth / childSize_.Width()), 1.0 - (borderWidth / childSize_.Height()… in PaintBorder()
|
/foundation/ace/ace_engine/frameworks/core/components/box/ |
D | rosen_render_box.cpp | 429 SkVector RosenRenderBox::GetSkRadii(const Radius& radius, double shrinkFactor, double borderWidth) in GetSkRadii() argument 432 …fRadii.set(SkDoubleToScalar(std::max(NormalizeToPx(radius.GetX()) - shrinkFactor * borderWidth, 0.… in GetSkRadii() 433 SkDoubleToScalar(std::max(NormalizeToPx(radius.GetY()) - shrinkFactor * borderWidth, 0.0))); in GetSkRadii() 474 double borderWidth = NormalizeToPx(borderEdge.GetWidth()); in GetBoxRRect() local 475 skRect.setXYWH(SkDoubleToScalar(offset.GetX() + shrinkFactor * borderWidth), in GetBoxRRect() 476 SkDoubleToScalar(offset.GetY() + shrinkFactor * borderWidth), in GetBoxRRect() 477 SkDoubleToScalar(adjustedSize.Width() - shrinkFactor * DOUBLE_WIDTH * borderWidth), in GetBoxRRect() 478 SkDoubleToScalar(adjustedSize.Height() - shrinkFactor * DOUBLE_WIDTH * borderWidth)); in GetBoxRRect() 480 …fRadii[SkRRect::kUpperLeft_Corner] = GetSkRadii(border.TopLeftRadius(), shrinkFactor, borderWidth); in GetBoxRRect() 481 …adii[SkRRect::kUpperRight_Corner] = GetSkRadii(border.TopRightRadius(), shrinkFactor, borderWidth); in GetBoxRRect() [all …]
|
D | flutter_render_box.cpp | 538 SkVector FlutterRenderBox::GetSkRadii(const Radius& radius, double shrinkFactor, double borderWidth) in GetSkRadii() argument 541 …fRadii.set(SkDoubleToScalar(std::max(NormalizeToPx(radius.GetX()) - shrinkFactor * borderWidth, 0.… in GetSkRadii() 542 SkDoubleToScalar(std::max(NormalizeToPx(radius.GetY()) - shrinkFactor * borderWidth, 0.0))); in GetSkRadii() 662 double borderWidth = NormalizeToPx(borderEdge.GetWidth()); in GetBoxRRect() local 663 skRect.setXYWH(SkDoubleToScalar(offset.GetX() + shrinkFactor * borderWidth), in GetBoxRRect() 664 SkDoubleToScalar(offset.GetY() + shrinkFactor * borderWidth), in GetBoxRRect() 665 SkDoubleToScalar(adjustedSize.Width() - shrinkFactor * DOUBLE_WIDTH * borderWidth), in GetBoxRRect() 666 SkDoubleToScalar(adjustedSize.Height() - shrinkFactor * DOUBLE_WIDTH * borderWidth)); in GetBoxRRect() 668 …fRadii[SkRRect::kUpperLeft_Corner] = GetSkRadii(border.TopLeftRadius(), shrinkFactor, borderWidth); in GetBoxRRect() 669 …adii[SkRRect::kUpperRight_Corner] = GetSkRadii(border.TopRightRadius(), shrinkFactor, borderWidth); in GetBoxRRect() [all …]
|
D | flutter_render_box.h | 130 SkVector GetSkRadii(const Radius& radius, double shrinkFactor, double borderWidth);
|
/foundation/ace/ace_engine/frameworks/core/components/rating/ |
D | render_rating.cpp | 562 double borderWidth = focusBorderWidth_.Value() * 2; in RequestFocusAnimationForPhone() local 563 double focusWidth = singleWidth_ - borderWidth * 2; in RequestFocusAnimationForPhone() 564 double focusHeight = ratingSize_.Height() - borderWidth * 2; in RequestFocusAnimationForPhone() 565 …RequestFocusAnimation(GetStarOffset(imageVerticalOffset) + Offset(borderWidth, borderWidth) + GetG… in RequestFocusAnimationForPhone()
|
/foundation/ace/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
D | div_tdd_test.cpp | 401 uint8_t borderWidth = 20; in ComponentDivStyleSetTest015() local 402 JerrySetNumberProperty(styleObj_, "borderWidth", borderWidth); in ComponentDivStyleSetTest015() 408 if (divView->GetStyle(STYLE_BORDER_WIDTH) == borderWidth) { in ComponentDivStyleSetTest015() 413 EXPECT_TRUE(divView->GetStyle(STYLE_BORDER_WIDTH) == borderWidth); in ComponentDivStyleSetTest015() 426 int32_t borderWidth = -32769; in ComponentDivStyleSetTest016() local 427 JerrySetNumberProperty(styleObj_, styleName, borderWidth); in ComponentDivStyleSetTest016()
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
D | js_sliding_panel.cpp | 196 Dimension borderWidth; in JsPanelBorderWidth() local 197 if (!ParseJsDimensionVp(info[0], borderWidth)) { in JsPanelBorderWidth() 207 border.SetWidth(borderWidth); in JsPanelBorderWidth()
|
/foundation/ace/ace_engine/frameworks/core/animation/ |
D | animation_util.cpp | 292 auto borderWidth = util.ParseDouble(value); in KeyframesAddKeyFrame() local 293 … util.AddAnimatable<float>(borderWidth, time, AnimatableType::PROPERTY_BORDER_LEFT_WIDTH); in KeyframesAddKeyFrame() 294 … util.AddAnimatable<float>(borderWidth, time, AnimatableType::PROPERTY_BORDER_RIGHT_WIDTH); in KeyframesAddKeyFrame() 295 … util.AddAnimatable<float>(borderWidth, time, AnimatableType::PROPERTY_BORDER_TOP_WIDTH); in KeyframesAddKeyFrame() 296 … util.AddAnimatable<float>(borderWidth, time, AnimatableType::PROPERTY_BORDER_BOTTOM_WIDTH); in KeyframesAddKeyFrame()
|
/foundation/ace/ace_engine/frameworks/core/components/common/painter/ |
D | rosen_decoration_painter.cpp | 724 float borderWidth = 0; in PaintDecoration() local 740 borderWidth = border.Top().GetWidth().ConvertToPx(dipScale_); in PaintDecoration() 746 rsNode->SetBorderWidth(borderWidth); in PaintDecoration() 1762 double borderWidth = NormalizeToPx(borderEdge.GetWidth()); in GetBoxRRect() local 1763 skRect.setXYWH(SkDoubleToScalar(offset.GetX() + shrinkFactor * borderWidth), in GetBoxRRect() 1764 SkDoubleToScalar(offset.GetY() + shrinkFactor * borderWidth), in GetBoxRRect() 1765 SkDoubleToScalar(paintSize_.Width() - shrinkFactor * DOUBLE_WIDTH * borderWidth), in GetBoxRRect() 1766 SkDoubleToScalar(paintSize_.Height() - shrinkFactor * DOUBLE_WIDTH * borderWidth)); in GetBoxRRect() 1770 … std::max(NormalizeToPx(border.TopLeftRadius().GetX()) - shrinkFactor * borderWidth, 0.0)), in GetBoxRRect() 1772 … std::max(NormalizeToPx(border.TopLeftRadius().GetY()) - shrinkFactor * borderWidth, 0.0))); in GetBoxRRect() [all …]
|