Home
last modified time | relevance | path

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

12

/foundation/ace/ace_engine/frameworks/core/components/checkable/
Drosen_render_radio.cpp44 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()
Dflutter_render_radio.cpp45 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()
Drosen_render_switch.cpp176 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()
Dflutter_render_switch.cpp180 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()
Drosen_render_checkbox.cpp172 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()
Dflutter_render_checkbox.cpp186 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/
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()
Dtab_bar_indicator_component.h37 …const Color& color = DEFAULT_INDICATOR_COLOR, const Dimension& borderWidth = DEFAULT_INDICATOR_WID…
/foundation/graphic/standard/rosen/modules/render_service_base/src/property/
Drs_properties_painter.cpp276 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 …]
Drs_properties.cpp856 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/
Dindex.js22 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/
Dindex.js25 borderWidth: 1,
45 this.borderWidth = 5;
63 this.borderWidth = 1;
/foundation/graphic/ui/test/unittest/components/
Dui_button_unit_test.cpp203 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/
Dui_test_draw_rect.cpp467 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/
Ddraw_rect.cpp461 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/
Dflutter_render_bubble.cpp291 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()
Drosen_render_bubble.cpp292 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/
Drosen_render_box.cpp429 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 …]
Dflutter_render_box.cpp538 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 …]
Dflutter_render_box.h130 SkVector GetSkRadii(const Radius& radius, double shrinkFactor, double borderWidth);
/foundation/ace/ace_engine/frameworks/core/components/rating/
Drender_rating.cpp562 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/
Ddiv_tdd_test.cpp401 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/
Djs_sliding_panel.cpp196 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/
Danimation_util.cpp292 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/
Drosen_decoration_painter.cpp724 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 …]

12