Lines Matching defs:gradient
151 CanvasMessage::AddGradient(const BGradient& gradient)
153 Add(gradient.GetType());
155 switch (gradient.GetType()) {
162 = dynamic_cast<const BGradientLinear *>(&gradient);
174 = dynamic_cast<const BGradientRadial *>(&gradient);
186 = dynamic_cast<const BGradientRadialFocus *>(&gradient);
199 = dynamic_cast<const BGradientDiamond *>(&gradient);
210 = dynamic_cast<const BGradientConic *>(&gradient);
220 int32 stopCount = gradient.CountColorStops();
224 BGradient::ColorStop* stop = gradient.ColorStopAt(i);
401 BGradient *gradient = NULL;
413 gradient = new(std::nothrow) BGradientLinear(start, end);
425 gradient = new(std::nothrow) BGradientRadial(center, radius);
438 gradient = new(std::nothrow) BGradientRadialFocus(center, radius,
449 gradient = new(std::nothrow) BGradientDiamond(center);
461 gradient = new(std::nothrow) BGradientConic(center, angle);
466 if (gradient == NULL)
472 delete gradient;
485 gradient->AddColor(color, offset);
488 *_gradient = gradient;