/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_border_test.cpp | 53 border->SetColor(color); 54 border->GetColor(0); 57 border->GetColor(1); 58 border->SetWidth(1.f); 59 border->SetWidth(2.f); 83 border->GetColorFour(); 85 border->GetColorFour(); 90 border->GetWidthFour(); 92 border->GetStyleFour(); 96 border->ToString(); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | box_component_helper.h | 35 border.SetColor(color); 36 decoration->SetBorder(border); 50 decoration->SetBorder(border); 101 decoration->SetBorder(border); 125 if (!border.HasRadius()) { in GetBorderRadius() 137 if (!border.HasRadius()) { in GetBorderRadiusTopLeft() 149 if (!border.HasRadius()) { in GetBorderRadiusTopRight() 161 if (!border.HasRadius()) { in GetBorderRadiusBottomLeft() 173 if (!border.HasRadius()) { in GetBorderRadiusBottomRight() 185 border.SetStyle(style); in SetBorderStyle() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | property_animatable_helper.h | 38 return std::bind(getter_, &border)(); in Get() 41 bool Set(double value, Border* border) const in Set() argument 46 BorderEdge edge = Get(*border); in Set() 53 std::bind(setter_, border, edge)(); in Set() 57 bool Set(Color value, Border* border) const in Set() argument 59 BorderEdge edge = Get(*border); in Set() 64 std::bind(setter_, border, edge)(); in Set() 70 BorderEdge edge = Get(*border); in Set() 75 std::bind(setter_, border, edge)(); in Set() 92 float Get(const Border& border) const in Get() argument [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/piece/ |
H A D | rosen_render_piece.cpp | 87 SkRRect RosenRenderPiece::MakeRRect(const Offset& offset, const Size& size, const Border& border) c… in MakeRRect() 93 …SkPoint::Make(NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().G… in MakeRRect() 95 …SkPoint::Make(NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius()… in MakeRRect() 97 …NormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())… in MakeRRect() 99 …SkPoint::Make(NormalizeToPx(border.BottomLeftRadius().GetX()), NormalizeToPx(border.BottomLeftRadi… in MakeRRect() 105 const Offset& offset, const Size& size, const Border& border) const in MakeRRect() 113 NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().GetY())); in MakeRRect() 116 … NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius().GetY())); in MakeRRect() 119 …NormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())… in MakeRRect() 122 … NormalizeToPx(border.BottomLeftRadius().GetX()), NormalizeToPx(border.BottomLeftRadius().GetY())); in MakeRRect()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-common-styles.md | 23 …border | - | 0 … 24 …border-style | string | solid … 26 …border-[left\|top\|right\|bottom] | - | - … 27 | border-width | <length> | 0 … 28 | border-[left\|top\|right\|bottom]-width | <length> | 0 … 31 …border-radius | <length> | - … 60 …border-image-source<sup>7+</sup> | string | - … 65 …border-image<sup>7+</sup> | string | - … 66 …border-box | 设置组件的边框类型。<br/>content-box:标准盒子模型。设置的width和height只包含内容的宽和高,不包含边框(border)和内边距(paddin… 78 …in: 10px; box-sizing: content-box; width: 300px;height: 300px; border-color: blue; border-width: 2… [all …]
|
H A D | js-components-container-panel.md | 45 …border | - | 0 … 46 …border-style | string | solid … 47 | border-[left\|top\|right\|bottom]-style | string | solid … 48 …border-[left\|top\|right\|bottom] | - | - … 49 | border-width | <length> | 0 … 50 | border-[left\|top\|right\|bottom]-width | <length> | 0 … 51 | border-color | <color> | black … 52 | border-[left\|top\|right\|bottom]-color | <color> | black … 53 …border-radius | <length> | - … 54 | border-[top\|bottom]-[left\|right]-radius | <length> | - …
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_decoration_painter.cpp | 2147 …if (border.Left().GetColor() != border.Top().GetColor() || border.Left().GetColor() != border.Righ… in CanUseFillStyle() 2148 border.Left().GetColor() != border.Bottom().GetColor()) { in CanUseFillStyle() 2166 if (border.Left().GetBorderStyle() != border.Top().GetBorderStyle() || in CanUsePathRRect() 2171 …if (border.Left().GetWidth() != border.Top().GetWidth() || border.Left().GetWidth() != border.Righ… in CanUsePathRRect() 2172 border.Left().GetWidth() != border.Bottom().GetWidth()) { in CanUsePathRRect() 2175 …if (border.Left().GetColor() != border.Top().GetColor() || border.Left().GetColor() != border.Righ… in CanUsePathRRect() 2176 border.Left().GetColor() != border.Bottom().GetColor()) { in CanUsePathRRect() 2189 if (border.Left().GetBorderStyle() != border.Top().GetBorderStyle() || in CanUseFourLine() 2194 …if (border.Left().GetColor() != border.Top().GetColor() || border.Left().GetColor() != border.Righ… in CanUseFourLine() 2195 border.Left().GetColor() != border.Bottom().GetColor()) { in CanUseFourLine() [all …]
|
H A D | rosen_decoration_painter.h | 124 static void AdjustBorderStyle(Border& border); 174 void CheckWidth(const Border& border); 195 SkRRect GetOuterRRect(const Offset& offset, const Border& border); 197 SkRRect GetClipRRect(const Offset& offset, const Border& border); 198 bool CanUseFillStyle(const Border& border, SkPaint& paint); 199 bool CanUsePathRRect(const Border& border, SkPaint& paint); 219 bool CanUseFillStyle(const Border& border, RSBrush& brush); 220 bool CanUsePathRRect(const Border& border, RSPen& pen); 222 bool CanUseInnerRRect(const Border& border); 223 bool CanUseFourLine(const Border& border); [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/text/text001/ |
H A D | index.css | 31 border-width: 2px; 43 border-width: 2px; 44 border-radius: 1px; 56 border-width: 2px; 69 border-width: 2px; 70 border-radius:1px; 81 border-width: 1px; 89 border-width: 1px; 94 border-width: 2px; 98 border-width: 5px; [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-border.md | 3 The border attributes are used to set border styles for components. 10 ## border section 12 border(value: BorderOptions) 14 Sets the border. 32 Sets the border style. 50 Sets the border width. 68 Sets the border color. 246 Text('.border') 250 .border({ 299 Text('.border') [all …]
|
H A D | ts-universal-attributes-border-image.md | 13 Sets the border image of the component. 25 | value | [BorderImageOption](#borderimageoption) | Yes | Border image or border gradient.| 33 …gradient-color.md) | No| Source or gradient color of the border image.<br>**NOTE**<br>The border i… 35 …border image.<br>Default value: **0**<br>**NOTE**<br>If this parameter is set to a negative value,… 36 …border image is extended beyond the border box.<br>Default value: **0**<br>**NOTE**<br>If this par… 37 … | No| Repeat mode of the source image's slices on the border.<br>Default value:… 38 … | No| Whether to fill the center of the border image.<br>Default … 48 | Repeat | The source image's slices are tiled. Tiles beyond the border box will be clipped. … 49 | Stretch | The source image's slices are stretched to fill the border box. | 50 | Round | The source image's slices are tiled to fill the border box. Tiles may be compressed whe… [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/search/ |
H A D | rosen_render_search.cpp | 176 Border border; in Paint() local 177 border.SetBorderRadius(Radius(rectSize.Height() / 2.0)); in Paint() 183 canvas->DrawRoundRect(MakeRRect(rectOffset + offset, rectSize, border)); in Paint() 196 …SkPoint::Make(NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().G… in Paint() 198 …SkPoint::Make(NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius()… in Paint() 200 …NormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())… in Paint() 202 …SkPoint::Make(NormalizeToPx(border.BottomLeftRadius().GetX()), NormalizeToPx(border.BottomLeftRadi… in Paint() 214 NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().GetY())); in Paint() 216 … NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius().GetY())); in Paint() 218 …NormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())… in Paint() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/showcase/src/main/js/default/pages/component/list/list/list14/ |
H A D | index.css | 56 border-width: 2; 58 border-radius: 2px; 76 border-width: 2; 110 border-width: 2px; 111 border-radius: 2px; 122 border-width: 2px; 123 border-radius: 2px; 135 border-width: 2px; 146 border-width: 2px; 157 border-width: 2px; [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-common-styles.md | 24 | border | - | 0 | 使用简写属性设置所有的边框属性,包含边框的宽度,样式,颜色属性,顺序设置为border-width、border-style、border-color,不设置时… 25 | border-style | string | solid | 使用简写属性设置所有边框的样式,可选值为:<br/>- dotted:显示为一系列圆点,圆点半径为border-widt… 26 | border-[left\|top\|right\|bottom]-style | string | solid | 分别设置左、上、右、下四个边框的样式,可选值为dotted、dashed、s… 27 | border-[left\|top\|right\|bottom] | - | - | 使用简写属性设置对应位置的边框属性,包含边框的宽度,样式,颜色属性,顺序设置为border-width、b… 28 | border-width | <length> | 0 | 使用简写属性设置元素的所有边框宽度,或者单独为各边边框设置宽度。 | 29 | border-[left\|top\|right\|bottom]-width | <length> | 0 | 分别设置左、上、右、下四个边框的宽度。 | 30 | border-color | <color> | black | 使用简写属性设置元素的所有边框颜色,或者单独为各边边框设置颜色。 | 31 | border-[left\|top\|right\|bottom]-color | <color> | black | 分别设置左、上、右、下四个边框的颜色。 | 32 …border-radius | <length> | - | border-radius属性设置元素的外边框圆角半径。设置border-radius时不能单独设置某一个方向的borde… 33 | border-[top\|bottom]-[left\|right]-radius | <length> | - | 分别设置左上,右上,右下和左下四个角的圆角半径。 | [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/div/35/ |
H A D | index.css | 20 border-radius: 227px; 21 border-width: 2px; 22 border-color: #00ff00; 28 border-width: 1px; 29 border-color: #dc143c; 35 border-width: 1px; 36 border-color:#ffd700; 49 border-width: 1px; 50 border-color: #dc143c;
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/div/33/ |
H A D | index.css | 20 border-radius: 227px; 21 border-width: 2px; 22 border-color: #00ff00; 28 border-width: 1px; 29 border-color: #dc143c; 35 border-width: 1px; 36 border-color: #dc143c; 42 border-width: 1px; 43 border-color:#daa520;
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/text/text002/ |
H A D | index.css | 31 border-width: 2px; 32 border-color: greenyellow; 43 border-width: 2px; 44 border-radius: 1px; 56 border-width: 2px; 57 border-radius: 1px; 69 border-width: 2px; 70 border-radius:1px; 82 border-color: blueviolet 86 border-width: 3px;
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/slider/index/ |
H A D | index.css | 29 border-width: 2px; 30 border-radius: 1px; 32 border-width: 2px; 42 border-width: 2px; 43 border-radius:1px; 55 border-color: blueviolet 59 border-width: 5px; 63 border-width: 8px;
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/slider/second/ |
H A D | second.css | 32 border-width: 2px; 33 border-radius: 1px; 35 border-width: 2px; 45 border-width: 2px; 46 border-radius:1px; 58 border-color: blueviolet 62 border-width: 5px; 66 border-width: 8px;
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-common-styles.md | 24 …border | - | 0 … 25 …border-style | string | solid … 27 …border-[left\|top\|right\|bottom] | - | - … 32 …border-radius | <length> | - … 61 …border-image-source<sup>7+</sup> | string | - … 64 …border-image-outset<sup>7+</sup> | <length> \| <percentage> | 0 | H… 65 …border-image-repeat<sup>7+</sup> | string | stretch … 66 …border-image<sup>7+</sup> | string | - … 67 …border-box | Border type of the component.<br>**content-box**: standard box. Its width and heigh… 80 …in: 10px; box-sizing: content-box; width: 300px;height: 300px; border-color: blue; border-width: 2… [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | sliding_panel_model_impl.cpp | 180 auto border = decoration->GetBorder(); in SetBorderColor() local 181 border.SetColor(borderColor); in SetBorderColor() 182 decoration->SetBorder(border); in SetBorderColor() 195 auto border = decoration->GetBorder(); in SetBorderWidth() local 196 border.SetWidth(borderWidth); in SetBorderWidth() 197 decoration->SetBorder(border); in SetBorderWidth() 211 border.SetStyle(borderStyle); in SetBorderStyle() 212 decoration->SetBorder(border); in SetBorderStyle() 227 border.SetStyle(borderStyle); in SetBorder() 228 border.SetWidth(borderWidth); in SetBorder() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/div/01/ |
H A D | index.css | 20 border-radius: 227px; 21 border-width: 2px; 22 border-color: #00ff00; 28 border-width: 1px; 29 border-color: #dc143c; 35 border-width: 1px; 36 border-color:#daa520;
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/div/02/ |
H A D | index.css | 20 border-radius: 227px; 21 border-width: 2px; 22 border-color: #00ff00; 28 border-width: 1px; 29 border-color: #dc143c; 35 border-width: 1px; 36 border-color:#daa520;
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/div/03/ |
H A D | index.css | 20 border-radius: 227px; 21 border-width: 2px; 22 border-color: #00ff00; 28 border-width: 1px; 29 border-color: #dc143c; 35 border-width: 1px; 36 border-color:#daa520;
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/div/34/ |
H A D | index.css | 20 border-radius: 227px; 21 border-width: 2px; 22 border-color: #00ff00; 28 border-width: 1px; 29 border-color: #dc143c; 35 border-width: 1px; 36 border-color:#ffd700;
|