HomeSort by relevance Sort by last modified time
    Searched full:radii (Results 1 - 25 of 44) sorted by null

1 2

  /frameworks/base/graphics/java/android/graphics/drawable/
PaintDrawable.java 45 float[] radii = null; local
47 radii = new float[8];
49 radii[i] = radius;
52 setCornerRadii(radii);
56 * Specify radii for each of the 4 corners. For each corner, the array
59 * @param radii the x and y radii of the corners
61 public void setCornerRadii(float[] radii) {
62 if (radii == null) {
67 setShape(new RoundRectShape(radii, null, null))
    [all...]
GradientDrawable.java 176 * <p>Specify radii for each of the 4 corners. For each corner, the array
184 * @param radii 4 pairs of X and Y radius for each corner, specified in pixels.
191 public void setCornerRadii(float[] radii) {
192 mGradientState.setCornerRadii(radii);
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/
RoundedIntRect.h 37 class Radii {
39 Radii() {}
40 Radii(const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight)
59 void includeLogicalEdges(const Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge);
75 explicit RoundedIntRect(const IntRect&, const Radii& = Radii());
80 const Radii& radii() const { return m_radii; } function in class:WebCore::RoundedIntRect
85 void setRadii(const Radii& radii) { m_radii = radii;
    [all...]
ShadowBlur.cpp 82 void setLastShadowValues(float radius, const Color& color, ColorSpace colorSpace, const FloatRect& shadowRect, const RoundedIntRect::Radii& radii)
89 m_lastRadii = radii;
92 void setLastInsetShadowValues(float radius, const Color& color, ColorSpace colorSpace, const FloatRect& bounds, const FloatRect& shadowRect, const RoundedIntRect::Radii& radii)
100 m_lastRadii = radii;
103 bool matchesLastShadow(float radius, const Color& color, ColorSpace colorSpace, const FloatRect& shadowRect, const RoundedIntRect::Radii& radii) const
107 return m_lastRadius == radius && m_lastColor == color && m_lastColorSpace == colorSpace && shadowRect == m_lastShadowRect && radii == m_lastRadii;
110 bool matchesLastInsetShadow(float radius, const Color& color, ColorSpace colorSpace, const FloatRect& bounds, const FloatRect& shadowRect, const RoundedIntRect::Radii& radii) cons
    [all...]
ShadowBlur.h 52 void drawRectShadow(GraphicsContext*, const FloatRect&, const RoundedIntRect::Radii&);
53 void drawInsetShadow(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedIntRect::Radii& holeRadii);
67 IntSize templateSize(const RoundedIntRect::Radii&) const;
69 void drawRectShadowWithoutTiling(GraphicsContext*, const FloatRect&, const RoundedIntRect::Radii&, const IntRect& layerRect);
70 void drawRectShadowWithTiling(GraphicsContext*, const FloatRect&, const RoundedIntRect::Radii&, const IntSize& shadowTemplateSize);
72 void drawInsetShadowWithoutTiling(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedIntRect::Radii&, const IntRect& layerRect);
73 void drawInsetShadowWithTiling(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedIntRect::Radii&, const IntSize& shadowTemplateSize);
75 void drawLayerPieces(GraphicsContext*, const FloatRect& shadowBounds, const RoundedIntRect::Radii&, float roundedRadius, const IntSize& templateSize, ShadowDirection);
RoundedIntRect.cpp 37 bool RoundedIntRect::Radii::isZero() const
42 void RoundedIntRect::Radii::scale(float factor)
47 // If either radius on a corner becomes zero, reset both radii on that corner.
63 void RoundedIntRect::Radii::expand(int topWidth, int bottomWidth, int leftWidth, int rightWidth)
78 void RoundedIntRect::Radii::includeLogicalEdges(const RoundedIntRect::Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge)
97 void RoundedIntRect::Radii::excludeLogicalEdges(bool isHorizontal, bool excludeLogicalLeftEdge, bool excludeLogicalRightEdge)
121 RoundedIntRect::RoundedIntRect(const IntRect& rect, const Radii& radii)
123 , m_radii(radii)
    [all...]
Path.cpp 164 // If all the radii cannot be accommodated, return a rect.
193 addRoundedRect(r.rect(), r.radii().topLeft(), r.radii().topRight(), r.radii().bottomLeft(), r.radii().bottomRight());
GraphicsContext.cpp 623 fillRoundedRect(rect.rect(), rect.radii().topLeft(), rect.radii().topRight(), rect.radii().bottomLeft(), rect.radii().bottomRight(), color, colorSpace);
635 if (!roundedHoleRect.radii().isZero())
  /external/webkit/Source/WebCore/rendering/
RenderBoxModelObject.cpp 568 border.setRadii(segmentBorder.radii());
    [all...]
  /external/webkit/Source/WebCore/platform/win/
DragImageWin.cpp 204 static const IntSize radii(DragLabelRadius, DragLabelRadius);
206 context.fillRoundedRect(rect, radii, radii, radii, radii, backgroundColor, ColorSpaceDeviceRGB);
  /external/webkit/Source/WebCore/platform/graphics/android/context/
PlatformGraphicsContextSkia.cpp 548 SkScalar radii[8]; local
550 radii[0] = SkIntToScalar(topLeft.width());
551 radii[1] = SkIntToScalar(topLeft.height());
552 radii[2] = SkIntToScalar(topRight.width());
553 radii[3] = SkIntToScalar(topRight.height());
554 radii[4] = SkIntToScalar(bottomRight.width());
555 radii[5] = SkIntToScalar(bottomRight.height());
556 radii[6] = SkIntToScalar(bottomLeft.width());
557 radii[7] = SkIntToScalar(bottomLeft.height());
558 path.addRoundRect(rect, radii);
    [all...]
  /external/webkit/Source/WebCore/rendering/style/
RenderStyle.cpp 758 static RoundedIntRect::Radii calcRadiiFor(const BorderData& border, int width, int height)
760 return RoundedIntRect::Radii(IntSize(border.topLeft().width().calcValue(width),
770 static float calcConstraintScaleFor(const IntRect& rect, const RoundedIntRect::Radii& radii)
772 // Constrain corner radii using CSS3 rules:
779 radiiSum = static_cast<unsigned>(radii.topLeft().width()) + static_cast<unsigned>(radii.topRight().width()); // Casts to avoid integer overflow.
784 radiiSum = static_cast<unsigned>(radii.bottomLeft().width()) + static_cast<unsigned>(radii.bottomRight().width());
806 RoundedIntRect::Radii radii = calcRadiiFor(surround->border, borderRect.width(), borderRect.height()); local
836 RoundedIntRect::Radii radii = getRoundedBorderFor(borderRect).radii(); local
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/shapes/
RoundRectShape.java 61 throw new ArrayIndexOutOfBoundsException("outer radii must have >= 8 values");
64 throw new ArrayIndexOutOfBoundsException("inner radii must have >= 8 values");
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
PaintDrawableTest.java 82 float[] radii = { local
98 paintDrawable.setCornerRadii(radii);
GradientDrawableTest.java 48 float[] radii = new float[] {1.0f, 2.0f, 3.0f}; local
51 gradientDrawable.setCornerRadii(radii);
  /external/webkit/Source/WebCore/css/
CSSGradientValue.h 82 // Resolve points/radii to front end values.
156 // Resolve points/radii to front end values.
  /frameworks/base/graphics/java/android/graphics/
Path.java 490 * @param radii Array of 8 values, 4 pairs of [X,Y] radii
493 public void addRoundRect(RectF rect, float[] radii, Direction dir) {
497 if (radii.length < 8) {
498 throw new ArrayIndexOutOfBoundsException("radii[] needs 8 values");
501 native_addRoundRect(mNativePath, rect, radii, dir.nativeInt);
646 float[] radii, int dir);
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
Path_Delegate.java 385 /*package*/ static void native_addRoundRect(int nPath, RectF rect, float[] radii, int dir) {
388 native_addRoundRect(nPath, rect, radii[0], radii[1], dir);
394 if (radii[i * 2] != radii[(i + 1) * 2] || radii[i * 2 + 1] != radii[(i + 1) * 2 + 1]) {
  /cts/tests/tests/graphics/src/android/graphics/cts/
PathTest.java 307 float[] radii = new float[8]; local
309 radii[i] = 10.0f + i * 5.0f;
311 path.addRoundRect(rect, radii, Path.Direction.CW);
  /external/skia/samplecode/
SampleCircle.cpp 15 // fractional, and the impl computes the center and radii, and uses them to
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
FaultHeightMap.java 83 private float minRadius; // radii for circular fault
90 * be provided. For faultshape circle, min and max radii can be provided.
  /external/jmonkeyengine/engine/src/core/com/jme3/math/
Ring.java 70 * up vector, and inner and outer radii.
  /external/webkit/Source/WebCore/platform/graphics/cairo/
ContextShadowCairo.cpp 221 // The length of a side of the buffer is the enough space for four blur radii,
222 // the radii of the corners, and then 1 pixel to draw the side tiles.
  /external/webkit/Source/WebCore/svg/
SVGPathParser.cpp 418 // Check if the radii are big enough to draw the arc, scale radii if not.
  /external/webkit/Source/WebCore/platform/graphics/skia/
GradientSkia.cpp 155 // The radii we give to Skia must be positive. If we're given a

Completed in 1681 milliseconds

1 2