/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | box_component_helper.h | 34 Border border = decoration->GetBorder(); in SetBorderColor() local 35 border.SetColor(color); in SetBorderColor() 36 decoration->SetBorder(border); in SetBorderColor() 45 Border border = decoration->GetBorder(); in SetBorderColor() local 46 border.SetLeftColor(colorLeft, option); in SetBorderColor() 47 border.SetRightColor(colorRight, option); in SetBorderColor() 48 border.SetTopColor(colorTop, option); in SetBorderColor() 49 border.SetBottomColor(colorBottom, option); in SetBorderColor() 50 decoration->SetBorder(border); in SetBorderColor() 99 Border border in SetBorderRadius() local 111 Border border = decoration->GetBorder(); SetBorderRadius() local 124 Border border = decoration->GetBorder(); GetBorderRadius() local 136 Border border = decoration->GetBorder(); GetBorderRadiusTopLeft() local 148 Border border = decoration->GetBorder(); GetBorderRadiusTopRight() local 160 Border border = decoration->GetBorder(); GetBorderRadiusBottomLeft() local 172 Border border = decoration->GetBorder(); GetBorderRadiusBottomRight() local 184 Border border = decoration->GetBorder(); SetBorderStyle() local 195 Border border = decoration->GetBorder(); SetBorderStyle() local 208 Border border = decoration->GetBorder(); GetBorderStyle() local 217 Border border = decoration->GetBorder(); GetBorderStyleLeft() local 226 Border border = decoration->GetBorder(); GetBorderStyleRight() local 235 Border border = decoration->GetBorder(); GetBorderStyleTop() local 244 Border border = decoration->GetBorder(); GetBorderStyleBottom() local 254 Border border = decoration->GetBorder(); SetBorderWidth() local 265 Border border = decoration->GetBorder(); SetBorderWidth() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_border_test.cpp | 50 std::shared_ptr<RSBorder> border = std::make_shared<RSBorder>(); in HWTEST_F() local 51 ASSERT_TRUE(border->GetColor(0) == RgbPalette::Transparent()); in HWTEST_F() 52 ASSERT_TRUE(border->GetStyle(0) == BorderStyle::NONE); in HWTEST_F() 53 border->SetColor(color); in HWTEST_F() 54 border->GetColor(0); in HWTEST_F() 56 border->SetColor(color2); in HWTEST_F() 57 border->GetColor(1); in HWTEST_F() 58 border->SetWidth(1.f); in HWTEST_F() 59 border->SetWidth(2.f); in HWTEST_F() 60 ASSERT_TRUE(border in HWTEST_F() 81 std::shared_ptr<RSBorder> border = std::make_shared<RSBorder>(); HWTEST_F() local 150 std::shared_ptr<RSBorder> border = std::make_shared<RSBorder>(); HWTEST_F() local 167 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 180 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 193 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 211 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 231 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 250 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 269 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 291 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 310 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 331 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 344 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 367 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 386 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 405 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 418 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 444 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 465 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 482 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 501 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 541 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 560 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 576 auto border = std::make_shared<RSBorder>(); HWTEST_F() local 598 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 611 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 624 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 687 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 750 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 815 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 868 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 925 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 987 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 1036 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 1086 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 1136 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local 1186 auto border = std::make_shared<RSBorder>(false); HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | property_animatable_helper.h | 22 #include "core/components/common/properties/border.h" 36 const BorderEdge& Get(const Border& border) const in Get() 38 return std::bind(getter_, &border)(); in Get() 41 bool Set(double value, Border* border) const in Set() 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() 59 BorderEdge edge = Get(*border); in Set() 64 std::bind(setter_, border, edge)(); in Set() 68 bool Set(BorderStyle value, Border* border) cons [all...] |
/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) const in MakeRRect() 93 SkPoint::Make(NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().GetY())); in MakeRRect() 95 SkPoint::Make(NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius().GetY())); in MakeRRect() 97 NormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())); in MakeRRect() 99 SkPoint::Make(NormalizeToPx(border.BottomLeftRadius().GetX()), NormalizeToPx(border.BottomLeftRadius().GetY())); in MakeRRect() 105 const Offset& offset, const Size& size, const Border& border) cons in MakeRRect() [all...] |
H A D | render_piece.cpp | 57 auto border = pieceComponent_->GetBorder(); in OnPaintFinish() local 69 { border.TopLeftRadius(), border.TopRightRadius(), border.BottomRightRadius(), border.BottomLeftRadius() }); in OnPaintFinish()
|
H A D | rosen_render_piece.h | 36 SkRRect MakeRRect(const Offset& offset, const Size& size, const Border& border) const; 38 RSRoundRect MakeRRect(const Offset& offset, const Size& size, const Border& border) const;
|
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_decoration_painter.h | 24 #include "core/components/common/properties/border.h" 124 static void AdjustBorderStyle(Border& border); 126 static void PaintBorder(std::shared_ptr<RSNode>& rsNode, Border& border, double dipScale); 168 SkRRect GetBoxRRect(const Offset& offset, const Border& border, double shrinkFactor, bool isRound); 170 RSRoundRect GetBoxRRect(const Offset& offset, const Border& border, 174 void CheckWidth(const Border& border); 187 void PaintAllEqualBorder(const SkRRect& rrect, const Border& border, SkCanvas* canvas, SkPaint& paint); 191 void PaintBorder(const Offset& offset, const Border& border, SkCanvas* canvas, SkPaint& paint); 192 void PaintBorderWithLine(const Offset& offset, const Border& border, SkCanvas* canvas, SkPaint& paint); 195 SkRRect GetOuterRRect(const Offset& offset, const Border& border); [all...] |
H A D | rosen_decoration_painter.cpp | 1139 Border border = decoration_->GetBorder(); in PaintDecoration() local 1148 Border border = decoration_->GetBorder(); in PaintDecoration() 1151 if (border.HasRadius()) { in PaintDecoration() 1152 cornerRadius.SetValues(NormalizeToPx(border.TopLeftRadius().GetX()), in PaintDecoration() 1153 NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetX()), in PaintDecoration() 1154 NormalizeToPx(border.BottomLeftRadius().GetX())); in PaintDecoration() 1156 if (border.HasValue()) { in PaintDecoration() 1157 borderFour = border; in PaintDecoration() 1289 Border border in PaintDecoration() local 1324 Border border = decoration_->GetBorder(); PaintDecoration() local 1345 CheckWidth(const Border& border) CheckWidth() argument 1875 PaintBorder(std::shared_ptr<RSNode>& rsNode, Border& border, double dipScale) PaintBorder() argument 1896 Border border = decoration_->GetBorder(); GetBoxOuterRRect() local 1910 Border border = decoration_->GetBorder(); GetBoxOuterRRect() local 1984 GetOuterRRect(const Offset& offset, const Border& border) GetOuterRRect() argument 2003 GetOuterRRect(const Offset& offset, const Border& border) GetOuterRRect() argument 2025 GetInnerRRect(const Offset& offset, const Border& border) GetInnerRRect() argument 2053 GetInnerRRect(const Offset& offset, const Border& border) GetInnerRRect() argument 2082 GetClipRRect(const Offset& offset, const Border& border) GetClipRRect() argument 2108 GetClipRRect(const Offset& offset, const Border& border) GetClipRRect() argument 2137 CanUseFillStyle(const Border& border, SkPaint& paint) CanUseFillStyle() argument 2161 CanUsePathRRect(const Border& border, SkPaint& paint) CanUsePathRRect() argument 2187 CanUseFourLine(const Border& border) CanUseFourLine() argument 2205 CanUseInnerRRect(const Border& border) CanUseInnerRRect() argument 2219 GetBoxRRect( const Offset& offset, const Border& border, double shrinkFactor, bool isRound) GetBoxRRect() argument 2266 GetBoxRRect( const Offset& offset, const Border& border, double shrinkFactor, bool isRound) GetBoxRRect() argument 2404 PaintBorder(const Offset& offset, const Border& border, SkCanvas* canvas, SkPaint& paint) PaintBorder() argument 2760 PaintBorderWithLine( const Offset& offset, const Border& border, SkCanvas* canvas, SkPaint& paint) PaintBorderWithLine() argument 3146 CheckBorderEdgeForRRect(const Border& border) PaintShadow() argument 3159 AdjustBorderStyle(Border& border) PaintShadow() argument [all...] |
/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() 179 canvas->drawRRect(MakeRRect(rectOffset + offset, rectSize, border), paint); in Paint() 183 canvas->DrawRoundRect(MakeRRect(rectOffset + offset, rectSize, border)); in Paint() 190 SkRRect RosenRenderSearch::MakeRRect(const Offset& offset, const Size& size, const Border& border) in Paint() argument 196 SkPoint::Make(NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().GetY())); in Paint() 198 SkPoint::Make(NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius().GetY())); in Paint() 200 NormalizeToPx(border in Paint() 207 MakeRRect(const Offset& offset, const Size& size, const Border& border) Paint() argument [all...] |
H A D | rosen_render_search.h | 38 SkRRect MakeRRect(const Offset& offset, const Size& size, const Border& border); 41 RSRoundRect MakeRRect(const Offset& offset, const Size& size, const Border& border);
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
H A D | popup_list_component.cpp | 40 Border border; in BuildBackground() local 43 border.SetTopLeftRadius(radiusTop); in BuildBackground() 44 border.SetTopRightRadius(radiusTop); in BuildBackground() 45 border.SetBottomLeftRadius(radiusBottom); in BuildBackground() 46 border.SetBottomRightRadius(radiusBottom); in BuildBackground() 49 boxDecoration->SetBorder(border); in BuildBackground()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | sliding_panel_model_impl.cpp | 177 auto border = decoration->GetBorder(); in SetBorderColor() local 178 border.SetColor(borderColor); in SetBorderColor() 179 decoration->SetBorder(border); in SetBorderColor() 192 auto border = decoration->GetBorder(); in SetBorderWidth() local 193 border.SetWidth(borderWidth); in SetBorderWidth() 194 decoration->SetBorder(border); in SetBorderWidth() 207 auto border = decoration->GetBorder(); in SetBorderStyle() local 208 border.SetStyle(borderStyle); in SetBorderStyle() 209 decoration->SetBorder(border); in SetBorderStyle() 223 auto border in SetBorder() local [all...] |
H A D | search_model_impl.cpp | 219 Border border = {}; in SetBackBorder() local 220 boxDecoration->SetBorder(border); in SetBackBorder() 349 Border border = decoration->GetBorder(); in UpdateDecorationStyle() local 350 border.SetLeftEdge(boxBorder.Left()); in UpdateDecorationStyle() 351 border.SetRightEdge(boxBorder.Right()); in UpdateDecorationStyle() 352 border.SetTopEdge(boxBorder.Top()); in UpdateDecorationStyle() 353 border.SetBottomEdge(boxBorder.Bottom()); in UpdateDecorationStyle() 354 border.SetBorderRadius(defaultRadius); in UpdateDecorationStyle() 355 decoration->SetBorder(border); in UpdateDecorationStyle() 366 Border border; in UpdateDecorationStyle() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/ |
H A D | rs_property_drawable_foreground_test.cpp | 176 std::shared_ptr<RSBorder> border = std::make_shared<RSBorder>(); in HWTEST_F() local 177 EXPECT_NE(border, nullptr); in HWTEST_F() 178 renderNodeTest10.renderContent_->renderProperties_.border_ = border; in HWTEST_F() 180 border->colors_.emplace_back(RSColor(1.0f, 1.0f, 1.0f, 1.0f)); in HWTEST_F() 181 border->widths_.emplace_back(1.0f); in HWTEST_F() 182 border->styles_.emplace_back(BorderStyle::SOLID); in HWTEST_F() 460 std::shared_ptr<RSBorder> border = std::make_shared<RSBorder>(); in HWTEST_F() local 461 border->colors_.emplace_back(Color()); in HWTEST_F() 462 border->styles_.emplace_back(BorderStyle::SOLID); in HWTEST_F() 463 EXPECT_EQ(border in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render/render_base/unittest/draw/ |
H A D | rs_property_draw_foreground_test.cpp | 176 std::shared_ptr<RSBorder> border = std::make_shared<RSBorder>(); in HWTEST_F() local 177 EXPECT_NE(border, nullptr); in HWTEST_F() 178 renderNodeTest10.renderContent_->renderProperties_.border_ = border; in HWTEST_F() 180 border->colors_.emplace_back(RSColor(1.0f, 1.0f, 1.0f, 1.0f)); in HWTEST_F() 181 border->widths_.emplace_back(1.0f); in HWTEST_F() 182 border->styles_.emplace_back(BorderStyle::SOLID); in HWTEST_F() 460 std::shared_ptr<RSBorder> border = std::make_shared<RSBorder>(); in HWTEST_F() local 461 border->colors_.emplace_back(Color()); in HWTEST_F() 462 border->styles_.emplace_back(BorderStyle::SOLID); in HWTEST_F() 463 EXPECT_EQ(border in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | tab_bar_indicator_component.cpp | 31 Border border; in TabBarIndicatorComponent() local 32 border.SetBorderRadius(Radius(borderWidth / DOUBLE_FACTOR)); in TabBarIndicatorComponent() 34 indicatorDecoration_->SetBorder(border); in TabBarIndicatorComponent()
|
/foundation/arkui/ace_engine/frameworks/core/components/semi_modal/ |
H A D | semi_modal_component.cpp | 60 Border border; in BuildInnerChild() local 61 border.SetTopLeftRadius(Radius(DRAG_BAR_RADIUS)); in BuildInnerChild() 62 border.SetTopRightRadius(Radius(DRAG_BAR_RADIUS)); in BuildInnerChild() 63 backDecoration->SetBorder(border); in BuildInnerChild()
|
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | render_picker_value.cpp | 123 auto border = back->GetBorder(); in HandleAnimation() local 125 corner.topLeftRadius = border.TopLeftRadius(); in HandleAnimation() 126 corner.topRightRadius = border.TopRightRadius(); in HandleAnimation() 127 corner.bottomRightRadius = border.BottomRightRadius(); in HandleAnimation() 128 corner.bottomLeftRadius = border.BottomLeftRadius(); in HandleAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/ |
H A D | menu_item_paint_method.cpp | 82 BorderRadiusProperty border; in UpdateRenderContextBorderRadius() local 86 border.SetRadius(selectTheme->GetMenuDefaultInnerRadius()); in UpdateRenderContextBorderRadius() 88 border.SetRadius(selectTheme->GetInnerBorderRadius()); in UpdateRenderContextBorderRadius() 91 border.SetRadius(0.0_vp); in UpdateRenderContextBorderRadius() 93 renderContext->UpdateBorderRadius(border); in UpdateRenderContextBorderRadius()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_popup.cpp | 55 borderStyle.border.SetBorderRadius(theme->GetRadius()); in InitializeStyle() 211 Border border; in PrepareSpecializedComponent() local 212 border.SetTopLeftRadius(boxBorder.TopLeftRadius()); in PrepareSpecializedComponent() 213 border.SetTopRightRadius(boxBorder.TopRightRadius()); in PrepareSpecializedComponent() 214 border.SetBottomLeftRadius(boxBorder.BottomLeftRadius()); in PrepareSpecializedComponent() 215 border.SetBottomRightRadius(boxBorder.BottomRightRadius()); in PrepareSpecializedComponent() 216 boxComponent_->GetBackDecoration()->SetBorder(border); in PrepareSpecializedComponent()
|
H A D | dom_textarea.cpp | 353 // set box border properties to child component in UpdateDecoration() 361 Border border = decoration->GetBorder(); in UpdateDecoration() local 362 border.SetLeftEdge(boxBorder.Left()); in UpdateDecoration() 363 border.SetRightEdge(boxBorder.Right()); in UpdateDecoration() 364 border.SetTopEdge(boxBorder.Top()); in UpdateDecoration() 365 border.SetBottomEdge(boxBorder.Bottom()); in UpdateDecoration() 366 decoration->SetBorder(border); in UpdateDecoration() 374 Border border; in UpdateDecoration() local 376 border.SetBorderRadius(defaultRadius_); in UpdateDecoration() 378 border in UpdateDecoration() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/panel/ |
H A D | sliding_panel_component_v2.cpp | 66 Border border; in BuildInnerChild() local 67 border.SetTopLeftRadius(Radius(DRAG_BAR_RADIUS)); in BuildInnerChild() 68 border.SetTopRightRadius(Radius(DRAG_BAR_RADIUS)); in BuildInnerChild() 69 backDecoration->SetBorder(border); in BuildInnerChild()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | image_composed_element.cpp | 195 auto border = GetRenderImage()->GetImageComponentBorder(); in GetBorderStyle() local 196 int32_t style = static_cast<int32_t>(border.Left().GetBorderStyle()); in GetBorderStyle() 206 auto border = GetRenderImage()->GetImageComponentBorder(); in GetBorderWidth() local 207 return border.Left().GetWidth().ToString(); in GetBorderWidth() 216 auto border = GetRenderImage()->GetImageComponentBorder(); in GetBorderColor() local 217 return border.Left().GetColor().ColorToString(); in GetBorderColor()
|
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/ |
H A D | dialog_modal_component.cpp | 66 Border border; in BuildInnerChild() local 67 border.SetBorderRadius(Radius(BG_RADIUS)); in BuildInnerChild() 68 decoration->SetBorder(border); in BuildInnerChild()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/input/ |
H A D | dom_textfield_util.cpp | 338 Border border = decoration->GetBorder(); in UpdateDecorationStyle() local 339 border.SetLeftEdge(boxBorder.Left()); in UpdateDecorationStyle() 340 border.SetRightEdge(boxBorder.Right()); in UpdateDecorationStyle() 341 border.SetTopEdge(boxBorder.Top()); in UpdateDecorationStyle() 342 border.SetBottomEdge(boxBorder.Bottom()); in UpdateDecorationStyle() 343 border.SetBorderRadius(defaultRadius_); in UpdateDecorationStyle() 344 decoration->SetBorder(border); in UpdateDecorationStyle() 355 Border border; in UpdateDecorationStyle() local 357 border.SetBorderRadius(defaultRadius_); in UpdateDecorationStyle() 359 border in UpdateDecorationStyle() [all...] |