ColorStop
ColorStop(const rgb_color c, float o);
ColorStop(uint8 r, uint8 g, uint8 b, uint8 a, float o);
ColorStop(const ColorStop& other);
ColorStop();
bool operator!=(const ColorStop& other) const;
bool AddColorStop(const ColorStop& colorStop,
const ColorStop& colorStop);
ColorStop* ColorStopAt(int32 index) const;
ColorStop* ColorStopAtFast(int32 index) const;
ColorStop* ColorStops() const;
BGradient::ColorStop* step = fGradient->ColorAt(fDraggingStepIndex);
if (BGradient::ColorStop* step
if (BGradient::ColorStop* step
for (int32 i = 0; BGradient::ColorStop* step = fGradient->ColorAt(i);
BGradient::ColorStop* stop
for (int32 i = 0; BGradient::ColorStop* step
if (BGradient::ColorStop* step = fGradient->ColorAt(fCurrentStepIndex)) {
BGradient::ColorStop* step = gradient->ColorAtFast(i);
BGradient::ColorStop* step = gradient->ColorAtFast(i);
BGradient::ColorStop* step = gradient.ColorAt(0);
for (int32 i = 0; BGradient::ColorStop* stop = gradient->ColorAt(i); i++) {
BGradient::ColorStop stop;
if ((status = Read(&stop, sizeof(BGradient::ColorStop))) != B_OK)
sizeof(BGradient::ColorStop));
ColorStop stop;
for (int32 i = 0; ColorStop* stop = ColorStopAt(i); i++) {
BGradient::ColorStop::ColorStop(const rgb_color c, float o)
ColorStop* ourStop = ColorStopAtFast(i);
ColorStop* otherStop = other.ColorStopAtFast(i);
for (int32 i = 0; ColorStop* stop = other.ColorStopAt(i); i++)
ColorStop* stop = new ColorStop(color, offset);
ColorStop* s = ColorStopAtFast(index);
BGradient::AddColorStop(const ColorStop& colorStop, int32 index)
ColorStop* stop = new ColorStop(colorStop);
ColorStop* stop = (ColorStop*)fColorStops.RemoveItem(index);
BGradient::ColorStop::ColorStop(uint8 r, uint8 g, uint8 b, uint8 a, float o)
BGradient::SetColorStop(int32 index, const ColorStop& color)
if (ColorStop* stop = ColorStopAt(index)) {
ColorStop* stop = ColorStopAt(index);
ColorStop* stop = ColorStopAt(index);
BGradient::ColorStop*
return (ColorStop*)fColorStops.ItemAt(index);
BGradient::ColorStop*
return (ColorStop*)fColorStops.ItemAtFast(index);
BGradient::ColorStop*
return (ColorStop*) fColorStops.Items();
const BGradient::ColorStop** first = (const BGradient::ColorStop**)fColorStops.Items();
const BGradient::ColorStop** last = first + fColorStops.CountItems();
sizeof(ColorStop));
BGradient::ColorStop::ColorStop(const ColorStop& other)
ColorStop stop;
if ((status = stream->Read(&stop, sizeof(ColorStop))) < B_OK)
BGradient::ColorStop::ColorStop()
BGradient::ColorStop::operator!=(const ColorStop& other) const
sort_color_stops_by_offset(const BGradient::ColorStop* left,
const BGradient::ColorStop* right)
for (int32 i = 0; BGradient::ColorStop* step = other.ColorAt(i); i++) {
for (int32 i = 0; BGradient::ColorStop* step = ColorAt(i); i++) {
BGradient::ColorStop* ourStep = ColorAtFast(i);
BGradient::ColorStop* otherStep = other.ColorAtFast(i);
for (int32 i = 0; BGradient::ColorStop* step = other.ColorAt(i); i++)
BGradient::ColorStop* step = new BGradient::ColorStop(color, offset);
BGradient::ColorStop* s = ColorAtFast(index);
Gradient::AddColor(const BGradient::ColorStop& color, int32 index)
BGradient::ColorStop* step = new BGradient::ColorStop(color);
BGradient::ColorStop* step
= (BGradient::ColorStop*)fColors.RemoveItem(index);
Gradient::SetColor(int32 index, const BGradient::ColorStop& color)
if (BGradient::ColorStop* step = ColorAt(index)) {
if (BGradient::ColorStop* step = ColorAt(index)) {
BGradient::ColorStop* step = ColorAt(index);
BGradient::ColorStop*
return (BGradient::ColorStop*)fColors.ItemAt(index);
BGradient::ColorStop*
return (BGradient::ColorStop*)fColors.ItemAtFast(index);
AddColor(BGradient::ColorStop(0, 0, 0, 255, 0.0), 0);
BGradient::ColorStop* from = ColorAt(0);
AddColor(BGradient::ColorStop(255, 255, 255, 255, 1.0), 1);
for (int32 i = 0; BGradient::ColorStop* step = ColorAt(i); i++) {
for (int32 i = 0; BGradient::ColorStop* step = ColorAt(i); i++) {
BGradient::ColorStop* to = NULL;
for (int32 i = 0; BGradient::ColorStop* step
= (BGradient::ColorStop*)nextSteps.ItemAt(i); i++) {
for (int32 i = 0; BGradient::ColorStop* step = ColorAt(i); i++) {
BGradient::ColorStop step;
bool AddColor(const BGradient::ColorStop& color,
const BGradient::ColorStop& step);
BGradient::ColorStop* ColorAt(int32 index) const;
BGradient::ColorStop* ColorAtFast(int32 index) const;
BGradient::ColorStop* step = fGradient->ColorAtFast(i);
BGradient::ColorStop* end = gradient->ColorStopAtFast(
BGradient::ColorStop* start = gradient->ColorStopAtFast(0);
BGradient::ColorStop* from = gradient.ColorStopAt(0);
BGradient::ColorStop* to = gradient.ColorStopAtFast(i);
BGradient::ColorStop* from = gradient.ColorStopAtFast(i);
BGradient::ColorStop* to = gradient.ColorStopAtFast(i + 1);
BGradient::ColorStop* stop = gradient.ColorStopAt(i);