Home
last modified time | relevance | path

Searched refs:fGradientRect (Results 1 – 2 of 2) sorted by relevance

/external/skia/experimental/DrawingBoard/
DSkColorPalette.cpp16 fGradientRect = SkRect::MakeWH(SkIntToScalar(100), SkIntToScalar(100)); in SkColorPalette()
70 canvas->drawRect(fGradientRect, paint); in onDraw()
100 if (curr.fX < 0 || curr.fX > fGradientRect.width() || in onClick()
101 curr.fY < 0 || curr.fY > fGradientRect.height()) { in onClick()
121 fGradientRect = SkRect::MakeWH(this->width() - 2*PalettePadding, in onSizeChange()
146 float h = cursorPosition.fX/fGradientRect.width(); in selectColorFromGradient()
147 float s = 1.0 - cursorPosition.fY/fGradientRect.height(); in selectColorFromGradient()
DSkColorPalette.h27 SkRect fGradientRect; variable