/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_modifier.cpp | 857 auto gradientColors = gradient.GetColors(); in GenerateLinearSweepingGradientInfo() local 858 for (size_t i = 0; i < gradientColors.size(); i++) { in GenerateLinearSweepingGradientInfo() 859 colors.emplace_back(gradientColors[i].GetColor().GetValue()); in GenerateLinearSweepingGradientInfo() 860 pos.emplace_back(gradientColors[i].GetDimension().Value()); in GenerateLinearSweepingGradientInfo() 930 std::vector<GradientColor> gradientColors = gradient.GetColors(); in GetRingProgressGradientColors() local 931 // Fault protection processing, if gradientColors is empty, set to default colors. in GetRingProgressGradientColors() 933 if (gradientColors.empty()) { in GetRingProgressGradientColors() 935 CHECK_NULL_RETURN(pipeline, gradientColors); in GetRingProgressGradientColors() 937 CHECK_NULL_RETURN(theme, gradientColors); in GetRingProgressGradientColors() 944 gradientColors in GetRingProgressGradientColors() 956 std::vector<GradientColor> gradientColors = GetRingProgressGradientColors(); PaintRingProgressOrShadow() local 1287 auto gradientColors = gradient.GetColors(); GenerateRingSweepingGradientInfo() local 1315 std::vector<GradientColor> gradientColors = GetRingProgressGradientColors(); PaintTrailing() local 1608 auto gradientColors = gradient.GetColors(); PaintCapsuleLightSweep() local [all...] |
H A D | progress_modifier.h | 84 std::vector<GradientColor>& gradientColors) const; 86 std::vector<GradientColor>& gradientColors) const;
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | render_tab_bar.cpp | 732 std::vector<GradientColor> gradientColors = std::vector<GradientColor>(GRADIENT_POINT_SIZE); in ApplyGradientColor() local 734 gradientColors[0].SetColor(colorA); in ApplyGradientColor() 735 gradientColors[0].SetDimension(Dimension(0.0, DimensionUnit::PX)); in ApplyGradientColor() 737 gradientColors[1].SetColor(colorB); in ApplyGradientColor() 738 gradientColors[1].SetDimension(Dimension(gradientWidthPx, DimensionUnit::PX)); in ApplyGradientColor() 740 gradientColors[2].SetColor(colorB); in ApplyGradientColor() 741 gradientColors[2].SetDimension(Dimension(viewWidth - gradientWidthPx, DimensionUnit::PX)); in ApplyGradientColor() 743 gradientColors[3].SetColor(colorA); in ApplyGradientColor() 744 gradientColors[3].SetDimension(Dimension(viewWidth, DimensionUnit::PX)); in ApplyGradientColor() 746 for (const auto& gradientColor : gradientColors) { in ApplyGradientColor() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_graphic.cpp | 264 auto gradientColors = gradient->GetColors(); in SetGradientStyle() local 265 if (gradientColors.empty()) { in SetGradientStyle() 271 for (const auto& gradientColor : gradientColors) { in SetGradientStyle() 295 auto gradientColors = gradient->GetColors(); in SetStrokeGradientStyle() local 296 if (gradientColors.empty()) { in SetStrokeGradientStyle() 302 for (const auto& gradientColor : gradientColors) { in SetStrokeGradientStyle()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_content_modifier.cpp | 156 std::vector<GradientColor> gradientColors = GetTrackBackgroundColor(); in DrawBackground() local 159 for (size_t i = 0; i < gradientColors.size(); i++) { in DrawBackground() 160 colors.emplace_back(gradientColors[i].GetLinearColor().GetValue()); in DrawBackground() 161 pos.emplace_back(gradientColors[i].GetDimension().Value()); in DrawBackground() 869 std::vector<GradientColor> gradientColors = gradient.GetColors(); in GetTrackBackgroundColor() local 870 // Fault protection processing, if gradientColors is empty, set to default colors. in GetTrackBackgroundColor() 872 if (gradientColors.empty()) { in GetTrackBackgroundColor() 874 CHECK_NULL_RETURN(pipeline, gradientColors); in GetTrackBackgroundColor() 876 CHECK_NULL_RETURN(theme, gradientColors); in GetTrackBackgroundColor() 877 gradientColors in GetTrackBackgroundColor() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_svg_painter.cpp | 138 auto gradientColors = gradient->GetColors(); in SetGradientStyle() local 139 if (gradientColors.empty()) { in SetGradientStyle() 144 for (const auto& gradientColor : gradientColors) { in SetGradientStyle() 153 skPaint.setShader(SkGradientShader::MakeLinear(pts, &colors[0], &pos[0], gradientColors.size(), in SetGradientStyle() 163 gradientColors.size(), static_cast<SkTileMode>(gradient->GetSpreadMethod()), 0, nullptr)) in SetGradientStyle() 166 gradientColors.size(), static_cast<SkTileMode>(gradient->GetSpreadMethod()), 0, nullptr)); in SetGradientStyle() 176 auto gradientColors = gradient->GetColors(); in SetGradientStyle() local 177 if (gradientColors.empty()) { in SetGradientStyle() 182 for (const auto& gradientColor : gradientColors) { in SetGradientStyle()
|
/foundation/arkui/ace_engine/frameworks/core/components/swiper/ |
H A D | rosen_render_swiper.cpp | 305 std::vector<GradientColor> gradientColors = std::vector<GradientColor>(GRADIENT_COLOR_SIZE); in PaintMask() local 306 gradientColors[0].SetColor(Color(0x00000000)); in PaintMask() 307 gradientColors[1].SetColor(Color(0xff000000)); in PaintMask() 308 gradientColors[2].SetColor(Color(0xff000000)); in PaintMask() 322 for (uint32_t i = 0; i < gradientColors.size(); ++i) { in PaintMask() 323 const auto& gradientColor = gradientColors[i]; in PaintMask()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/slider/ |
H A D | slider_modifier_test_ng.cpp | 1057 std::vector<GradientColor> gradientColors = gradient.GetColors(); in HWTEST_F() local 1068 EXPECT_EQ(gradientColors.size(), gradientColors2.size()); in HWTEST_F() 1069 EXPECT_EQ(gradientColors[0].GetLinearColor(), gradientColors2[0].GetLinearColor()); in HWTEST_F() 1070 EXPECT_EQ(gradientColors[1].GetLinearColor(), gradientColors2[1].GetLinearColor()); in HWTEST_F() 1071 EXPECT_EQ(gradientColors[2].GetLinearColor(), gradientColors2[2].GetLinearColor()); in HWTEST_F() 1072 EXPECT_EQ(gradientColors[0].GetDimension(), gradientColors2[0].GetDimension()); in HWTEST_F() 1073 EXPECT_EQ(gradientColors[1].GetDimension(), gradientColors2[1].GetDimension()); in HWTEST_F() 1074 EXPECT_EQ(gradientColors[2].GetDimension(), gradientColors2[2].GetDimension()); in HWTEST_F() 1113 std::vector<GradientColor> gradientColors = gradient.GetColors(); in HWTEST_F() local 1126 EXPECT_EQ(defaultGradientColors.size(), gradientColors in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_paint_method.cpp | 155 std::vector<RSColorQuad> gradientColors { startColor.GetValue(), endColor.GetValue(), endColor.GetValue() }; in PaintGradientRect() 158 startPoint, endPoint, gradientColors, gradientPos, RSTileMode::CLAMP)); in PaintGradientRect()
|
/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/ |
H A D | rosen_render_offscreen_canvas.cpp | 1058 std::vector<GradientColor> gradientColors = gradient.GetColors(); in UpdatePaintShader() local 1059 std::stable_sort(gradientColors.begin(), gradientColors.end(), in UpdatePaintShader() 1061 uint32_t colorsSize = gradientColors.size(); in UpdatePaintShader() 1062 SkColor colors[gradientColors.size()]; in UpdatePaintShader() 1063 float pos[gradientColors.size()]; in UpdatePaintShader() 1065 const auto& gradientColor = gradientColors[i]; in UpdatePaintShader() 1074 skShader = SkGradientShader::MakeLinear(pts, colors, pos, gradientColors.size(), mode); in UpdatePaintShader() 1078 endPoint, gradient.GetOuterRadius(), colors, pos, gradientColors.size(), mode); in UpdatePaintShader() 1081 gradient.GetOuterRadius(), colors, pos, gradientColors in UpdatePaintShader() 1094 auto gradientColors = gradient.GetColors(); UpdatePaintShader() local [all...] |
H A D | rosen_render_custom_paint.cpp | 2181 std::vector<GradientColor> gradientColors = gradient.GetColors(); local 2182 std::stable_sort(gradientColors.begin(), gradientColors.end(), 2184 uint32_t colorsSize = gradientColors.size(); 2185 SkColor colors[gradientColors.size()]; 2186 float pos[gradientColors.size()]; 2188 const auto& gradientColor = gradientColors[i]; 2197 skShader = SkGradientShader::MakeLinear(pts, colors, pos, gradientColors.size(), mode); 2201 endPoint, gradient.GetOuterRadius(), colors, pos, gradientColors.size(), mode); 2204 gradient.GetOuterRadius(), colors, pos, gradientColors 2218 auto gradientColors = gradient.GetColors(); global() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | custom_paint_paint_method.cpp | 220 auto gradientColors = gradient.GetColors(); in MakeConicGradient() local 221 std::stable_sort(gradientColors.begin(), gradientColors.end(), in MakeConicGradient() 223 uint32_t colorsSize = gradientColors.size(); in MakeConicGradient() 224 std::vector<RSColorQuad> colors(gradientColors.size(), 0); in MakeConicGradient() 225 std::vector<RSScalar> pos(gradientColors.size(), 0); in MakeConicGradient() 230 const auto& gradientColor = gradientColors[i]; in MakeConicGradient() 248 auto gradientColors = gradient.GetColors(); in UpdatePaintShader() local 249 std::stable_sort(gradientColors.begin(), gradientColors in UpdatePaintShader() [all...] |
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_common_modifier.cpp | 5225 std::vector<GradientColor> gradientColors = gradient.GetColors(); in GetSweepGradient() local 5228 for (auto& gradientColor : gradientColors) { in GetSweepGradient() 5251 std::vector<GradientColor> gradientColors = gradient.GetColors(); in GetRadialGradient() local 5254 for (auto& gradientColor : gradientColors) { in GetRadialGradient() 5413 std::vector<GradientColor> gradientColors = gradient.GetColors(); in GetLinearGradient() local 5416 for (auto& gradientColor : gradientColors) { in GetLinearGradient()
|
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | style_modifier.cpp | 1369 static uint32_t gradientColors[NUM_10]; in GetLinearGradient() local 1372 gradientColors[i] = colors[i]; in GetLinearGradient() 1375 colorStop.colors = gradientColors; in GetLinearGradient() 2584 static uint32_t gradientColors[NUM_10]; in GetSweepGradient() local 2587 gradientColors[i] = colors[i]; in GetSweepGradient() 2590 colorStop.colors = gradientColors; in GetSweepGradient() 2683 static uint32_t gradientColors[NUM_10]; in GetRadialGradient() local 2686 gradientColors[i] = colors[i]; in GetRadialGradient() 2689 colorStop.colors = gradientColors; in GetRadialGradient()
|