HomeSort by relevance Sort by last modified time
    Searched refs:Shape (Results 1 - 25 of 79) sorted by null

1 2 3 4

  /external/clang/test/PCH/
enum.h 9 enum Shape {
16 enum Shape aRoundShape = Circle;
enum.c 17 enum Shape s = Triangle;
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/
Region.h 76 class Shape {
78 Shape();
79 Shape(const IntRect&);
93 static Shape unionShapes(const Shape& shape1, const Shape& shape2);
94 static Shape intersectShapes(const Shape& shape1, const Shape& shape2);
95 static Shape subtractShapes(const Shape& shape1, const Shape& shape2)
    [all...]
Region.cpp 31 // A region class based on the paper "Scanline Coherent Shape Algebra"
53 for (Shape::SpanIterator span = m_shape.spans_begin(), end = m_shape.spans_end(); span != end && span + 1 != end; ++span) {
57 for (Shape::SegmentIterator segment = m_shape.segments_begin(span), end = m_shape.segments_end(span); segment != end && segment + 1 != end; segment += 2) {
73 return Shape::compareShapes<Shape::CompareContainsOperation>(m_shape, region.m_shape);
81 for (Shape::SpanIterator span = m_shape.spans_begin(), end = m_shape.spans_end(); span != end && span + 1 != end; ++span) {
90 for (Shape::SegmentIterator segment = m_shape.segments_begin(span), end = m_shape.segments_end(span); segment != end && segment + 1 != end; segment += 2) {
109 return Shape::compareShapes<Shape::CompareIntersectsOperation>(m_shape, region.m_shape);
127 bool Region::Shape::compareShapes(const Shape& aShape, const Shape& bShape
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/
ShapeInfo.cpp 34 #include "core/rendering/shapes/Shape.h"
38 template<class RenderType, ShapeValue* (RenderStyle::*shapeGetter)() const, void (Shape::*intervalGetter)(LayoutUnit, LayoutUnit, SegmentList&) const>
39 const Shape* ShapeInfo<RenderType, shapeGetter, intervalGetter>::computedShape() const
41 if (Shape* shape = m_shape.get())
42 return shape;
45 BasicShape* shape = (shapeValue && shapeValue->type() == ShapeValue::Shape) ? shapeValue->shape() : 0; local
47 ASSERT(shape);
    [all...]
Shape.h 56 // that will fit within or around a shape. The line is defined by a pair of logical Y coordinates and the
60 class Shape {
62 static PassOwnPtr<Shape> createShape(const BasicShape*, const LayoutSize& logicalBoxSize, WritingMode, Length margin, Length padding);
64 virtual ~Shape() { }
ShapeInsideInfo.cpp 47 if (!shapeValue || shapeValue->type() != ShapeValue::Shape)
50 BasicShape* shape = shapeValue->shape();
51 return shape && shape->type() != BasicShape::BasicShapeInsetRectangleType;
56 const Shape* shape = computedShape(); local
57 if (!shape || m_lineHeight <= 0 || logicalLineTop() > shapeLogicalBottom())
61 if (shape->firstIncludedIntervalLogicalTop(m_shapeLineTop, LayoutSize(minSegmentWidth, m_lineHeight), newLineTop)) {
ShapeOutsideInfo.h 40 class ShapeOutsideInfo : public ShapeInfo<RenderBox, &RenderStyle::shapeOutside, &Shape::getExcludedIntervals>, public MappedInfo<RenderBox, ShapeOutsideInfo> {
55 ShapeOutsideInfo(const RenderBox* renderer) : ShapeInfo<RenderBox, &RenderStyle::shapeOutside, &Shape::getExcludedIntervals>(renderer) { }
ShapeInsideInfo.h 63 class ShapeInsideInfo : public ShapeInfo<RenderBlock, &RenderStyle::resolvedShapeInside, &Shape::getIncludedIntervals> {
72 return ShapeInfo<RenderBlock, &RenderStyle::resolvedShapeInside, &Shape::getIncludedIntervals>::computeSegmentsForLine(lineTop, lineHeight);
103 : ShapeInfo<RenderBlock, &RenderStyle::resolvedShapeInside, &Shape::getIncludedIntervals> (renderer)
RectangleShape.h 36 #include "core/rendering/shapes/Shape.h"
61 class RectangleShape : public Shape {
64 : Shape()
ShapeOutsideInfo.cpp 39 return box->isFloatingWithShapeOutside() && value->type() == ShapeValue::Shape && value->shape();
51 if (ShapeInfo<RenderBox, &RenderStyle::shapeOutside, &Shape::getExcludedIntervals>::computeSegmentsForLine(lineTop, lineHeight)) {
Shape.cpp 31 #include "core/rendering/shapes/Shape.h"
44 static PassOwnPtr<Shape> createRectangleShape(const FloatRect& bounds, const FloatSize& radii)
50 static PassOwnPtr<Shape> createCircleShape(const FloatPoint& center, float radius)
56 static PassOwnPtr<Shape> createEllipseShape(const FloatPoint& center, const FloatSize& radii)
62 static PassOwnPtr<Shape> createPolygonShape(PassOwnPtr<Vector<FloatPoint> > vertices, WindRule fillRule)
103 PassOwnPtr<Shape> Shape::createShape(const BasicShape* basicShape, const LayoutSize& logicalBoxSize, WritingMode writingMode, Length margin, Length padding)
110 OwnPtr<Shape> shape; local
127 shape = createRectangleShape(logicalBounds, physicalSizeToLogical(cornerRadii, writingMode))
    [all...]
ShapeInfo.h 35 #include "core/rendering/shapes/Shape.h"
65 template<class RenderType, ShapeValue* (RenderStyle::*shapeGetter)() const, void (Shape::*intervalGetter)(LayoutUnit, LayoutUnit, SegmentList&) const>
109 const Shape* computedShape() const;
122 mutable OwnPtr<Shape> m_shape;
PolygonShape.h 34 #include "core/rendering/shapes/Shape.h"
83 class PolygonShape : public Shape {
87 : Shape()
  /frameworks/base/graphics/java/android/graphics/drawable/shapes/
Shape.java 23 * Defines a generic graphical "shape."
24 * Any Shape can be drawn to a Canvas with its own draw() method,
28 public abstract class Shape implements Cloneable {
33 * Returns the width of the Shape.
40 * Returns the height of the Shape.
48 * Draw this shape into the provided Canvas, with the provided Paint.
51 * @param canvas the Canvas within which this shape should be drawn
52 * @param paint the Paint object that defines this shape's characteristics
58 * Resizes the dimensions of this shape.
61 * @param width the width of the shape (in pixels
    [all...]
RectShape.java 24 * Defines a rectangle shape.
29 public class RectShape extends Shape {
56 final RectShape shape = (RectShape) super.clone(); local
57 shape.mRect = new RectF(mRect);
58 return shape;
PathShape.java 29 public class PathShape extends Shape {
40 * @param path a Path that defines the geometric paths for this shape
41 * @param stdWidth the standard width for the shape. Any changes to the
44 * @param stdHeight the standard height for the shape. Any changes to the
70 PathShape shape = (PathShape) super.clone(); local
71 shape.mPath = new Path(mPath);
72 return shape;
  /cts/tests/tests/animation/src/android/animation/cts/
ShapeHolder.java 20 import android.graphics.drawable.shapes.Shape;
25 * A data structure that holds a Shape and various properties that can be used to define
26 * how the shape is drawn.
94 Shape s = mShape.getShape();
103 Shape s = mShape.getShape();
  /development/samples/ApiDemos/src/com/example/android/apis/animation/
ShapeHolder.java 22 import android.graphics.drawable.shapes.Shape;
26 * A data structure that holds a Shape and various properties that can be used to define
27 * how the shape is drawn.
31 private ShapeDrawable shape; field in class:ShapeHolder
57 shape = value;
60 return shape;
66 shape.getPaint().setColor(value);
78 shape.setAlpha((int)((alpha * 255f) + .5f));
82 return shape.getShape().getWidth();
85 Shape s = shape.getShape()
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
ShapeTest.java 27 import android.graphics.drawable.shapes.Shape;
79 Shape shape = new MockShape(); local
80 shape.resize(100f, 200f);
81 Shape clonedShape = shape.clone();
82 assertEquals(100f, shape.getWidth());
83 assertEquals(200f, shape.getHeight());
85 assertNotSame(shape, clonedShape);
86 assertEquals(shape.getWidth(), clonedShape.getWidth())
91 Shape shape = new MockShape(); local
96 Shape shape = new MockShape(); local
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLAreaElement.h 61 enum Shape { Default, Poly, Rect, Circle, Unknown };
68 Shape m_shape;
  /external/chromium_org/third_party/WebKit/Source/core/rendering/style/
ShapeValue.h 43 Shape,
48 static PassRefPtr<ShapeValue> createShapeValue(PassRefPtr<BasicShape> shape)
50 return adoptRef(new ShapeValue(shape));
64 BasicShape* shape() const { return m_shape.get(); } function in class:WebCore::ShapeValue
74 ShapeValue(PassRefPtr<BasicShape> shape)
75 : m_type(Shape)
76 , m_shape(shape)
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/assetstudio/
CreateAssetSetWizardState.java 22 import com.android.assetstudiolib.GraphicGenerator.Shape;
84 /** The background shape */
85 public Shape shape = Shape.SQUARE; field in class:CreateAssetSetWizardState
93 /** The background color to use for the shape (unless the shape is {@link Shape#NONE} */
96 /** The background color to use for the text or clipart (unless shape is {@link Shape#NONE} *
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
ShapeDrawable.java 20 import android.graphics.drawable.shapes.Shape;
32 * A ShapeDrawable takes a {@link android.graphics.drawable.shapes.Shape}
33 * object and manages its presence on the screen. If no Shape is given, then
37 * <p>This object can be defined in an XML file with the <code>&lt;shape></code> element.</p>
42 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#shape-drawable">
45 * <a href="{@docRoot}guide/topics/resources/drawable-resource.html#Shape">Drawable Resources</a>
68 * Creates a ShapeDrawable with a specified Shape.
70 * @param s the Shape that this ShapeDrawable should be
72 public ShapeDrawable(Shape s) {
83 * Returns the Shape of this ShapeDrawable
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
GcSnapshot.java 38 import java.awt.Shape;
179 * @param clipShape the shape to use a the clip shape.
181 void setClip(Shape clipShape) {
182 // because setClip is only guaranteed to work with rectangle shape,
190 * Clips the layer with the given shape. This performs an intersect between the current
191 * clip shape and the given shape.
192 * @param shape the new clip shape
    [all...]

Completed in 793 milliseconds

1 2 3 4