Lines Matching defs:index
346 // find the correct index (sorted by offset)
348 int32 index = 0;
350 for (; index < count; index++) {
351 ColorStop* s = ColorStopAtFast(index);
355 if (!fColorStops.AddItem((void*)stop, index)) {
359 return index;
365 BGradient::AddColorStop(const ColorStop& colorStop, int32 index)
368 if (!fColorStops.AddItem((void*)stop, index)) {
378 BGradient::RemoveColor(int32 index)
380 ColorStop* stop = (ColorStop*)fColorStops.RemoveItem(index);
391 BGradient::SetColorStop(int32 index, const ColorStop& color)
393 if (ColorStop* stop = ColorStopAt(index)) {
406 BGradient::SetColor(int32 index, const rgb_color& color)
408 ColorStop* stop = ColorStopAt(index);
419 BGradient::SetOffset(int32 index, float offset)
421 ColorStop* stop = ColorStopAt(index);
440 BGradient::ColorStopAt(int32 index) const
442 return (ColorStop*)fColorStops.ItemAt(index);
448 BGradient::ColorStopAtFast(int32 index) const
450 return (ColorStop*)fColorStops.ItemAtFast(index);