HomeSort by relevance Sort by last modified time
    Searched refs:Shape (Results 1 - 25 of 99) 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/platform/geometry/
Region.h 77 class Shape {
79 Shape();
80 Shape(const IntRect&);
81 Shape(size_t segmentsCapacity, size_t spansCapacity);
97 static Shape unionShapes(const Shape& shape1, const Shape& shape2);
98 static Shape intersectShapes(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.spansBegin(), end = m_shape.spansEnd(); span != end && span + 1 != end; ++span) {
57 for (Shape::SegmentIterator segment = m_shape.segmentsBegin(span), end = m_shape.segmentsEnd(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.spansBegin(), end = m_shape.spansEnd(); span != end && span + 1 != end; ++span) {
90 for (Shape::SegmentIterator segment = m_shape.segmentsBegin(span), end = m_shape.segmentsEnd(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/lldb/test/functionalities/data-formatter/data-formatter-categories/
main.cpp 14 struct Shape
17 Shape() : dummy(true) {}
20 struct Rectangle : public Shape {
26 struct Circle : public Shape {
  /external/chromium_org/mojo/python/tests/
bindings_enums_unittest.py 17 self.assertEquals(sample_import_mojom.Shape.__module__,
22 self.assertEquals(sample_import_mojom.Shape.RECTANGLE, 1)
23 self.assertEquals(sample_import_mojom.Shape.CIRCLE, 2)
24 self.assertEquals(sample_import_mojom.Shape.TRIANGLE, 3)
25 self.assertEquals(sample_import_mojom.Shape.LAST,
26 sample_import_mojom.Shape.TRIANGLE)
46 sample_import_mojom.Shape()
52 sample_import_mojom.Shape.VALUES
57 sample_import_mojom.Shape.RECTANGLE = 2
59 del sample_import_mojom.Shape.RECTANGL
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/
BoxShape.h 33 #include "core/rendering/shapes/Shape.h"
38 class BoxShape FINAL : public Shape {
41 : Shape()
Shape.h 65 // that will fit within or around a shape. The line is defined by a pair of logical Y coordinates and the
69 class Shape {
72 Path shape; member in struct:blink::Shape::DisplayPaths
75 static PassOwnPtr<Shape> createShape(const BasicShape*, const LayoutSize& logicalBoxSize, WritingMode, float margin);
76 static PassOwnPtr<Shape> createRasterShape(Image*, float threshold, const LayoutRect& imageRect, const LayoutRect& marginRect, WritingMode, float margin);
77 static PassOwnPtr<Shape> createEmptyRasterShape(WritingMode, float margin);
78 static PassOwnPtr<Shape> createLayoutBoxShape(const RoundedRect&, WritingMode, float margin);
80 virtual ~Shape() { }
RectangleShape.h 33 #include "core/rendering/shapes/Shape.h"
41 class RectangleShape FINAL : public Shape {
44 : Shape()
BoxShapeTest.cpp 44 PassOwnPtr<Shape> createBoxShape(const RoundedRect& bounds, float shapeMargin)
46 return Shape::createLayoutBoxShape(bounds, TopToBottomWritingMode, shapeMargin);
72 /* The BoxShape is based on a 100x50 rectangle at 0,0. The shape-margin value is 10,
83 OwnPtr<Shape> shape = createBoxShape(RoundedRect(0, 0, 100, 50), 10); local
84 EXPECT_FALSE(shape->isEmpty());
86 EXPECT_EQ(LayoutRect(-10, -10, 120, 70), shape->shapeMarginLogicalBoundingBox());
92 EXPECT_TRUE(shape->lineOverlapsShapeMarginBounds(-9, 1));
93 EXPECT_TRUE(shape->lineOverlapsShapeMarginBounds(-10, 0));
94 EXPECT_TRUE(shape->lineOverlapsShapeMarginBounds(-10, 200))
128 OwnPtr<Shape> shape = createBoxShape(RoundedRect(IntRect(0, 0, 100, 100), cornerRadii), 0); local
    [all...]
Shape.cpp 31 #include "core/rendering/shapes/Shape.h"
50 static PassOwnPtr<Shape> createInsetShape(const FloatRoundedRect& bounds)
56 static PassOwnPtr<Shape> createCircleShape(const FloatPoint& center, float radius)
62 static PassOwnPtr<Shape> createEllipseShape(const FloatPoint& center, const FloatSize& radii)
68 static PassOwnPtr<Shape> createPolygonShape(PassOwnPtr<Vector<FloatPoint> > vertices, WindRule fillRule)
98 PassOwnPtr<Shape> Shape::createShape(const BasicShape* basicShape, const LayoutSize& logicalBoxSize, WritingMode writingMode, float margin)
105 OwnPtr<Shape> shape; local
115 shape = createCircleShape(logicalCenter, radius)
234 OwnPtr<Shape> shape = createInsetShape(bounds); local
    [all...]
PolygonShape.h 33 #include "core/rendering/shapes/Shape.h"
60 class PolygonShape FINAL : public Shape {
64 : Shape()
ShapeOutsideInfo.h 33 #include "core/rendering/shapes/Shape.h"
119 const Shape& computedShape() const;
128 PassOwnPtr<Shape> createShapeForImage(StyleImage*, float shapeImageThreshold, WritingMode, float margin) const;
141 mutable OwnPtr<Shape> m_shape;
ShapeOutsideInfo.cpp 119 PassOwnPtr<Shape> ShapeOutsideInfo::createShapeForImage(StyleImage* styleImage, float shapeImageThreshold, WritingMode writingMode, float margin) const
130 m_renderer.document().addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, ErrorMessageLevel, "The shape-outside image is too large."));
131 return Shape::createEmptyRasterShape(writingMode, margin);
137 return Shape::createRasterShape(image.get(), shapeImageThreshold, imageRect, marginRect, writingMode, margin);
140 const Shape& ShapeOutsideInfo::computedShape() const
142 if (Shape* shape = m_shape.get())
143 return *shape;
160 case ShapeValue::Shape:
161 ASSERT(shapeValue.shape());
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/shapes/
Shape.java 25 * Defines a generic graphical "shape."
26 * Any Shape can be drawn to a Canvas with its own draw() method,
30 public abstract class Shape implements Cloneable {
35 * Returns the width of the Shape.
42 * Returns the height of the Shape.
49 * Draw this shape into the provided Canvas, with the provided Paint.
52 * @param canvas the Canvas within which this shape should be drawn
53 * @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...]
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;
RectShape.java 25 * Defines a rectangle shape.
30 public class RectShape extends Shape {
61 final RectShape shape = (RectShape) super.clone(); local
62 shape.mRect = new RectF(mRect);
63 return shape;
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLAreaElement.h 60 enum Shape { Default, Poly, Rect, Circle, Unknown };
67 Shape m_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/rendering/style/
ShapeValue.h 45 Shape,
50 static PassRefPtr<ShapeValue> createShapeValue(PassRefPtr<BasicShape> shape, CSSBoxType cssBox)
52 return adoptRef(new ShapeValue(shape, cssBox));
66 BasicShape* shape() const { return m_shape.get(); } function in class:blink::ShapeValue
88 ShapeValue(PassRefPtr<BasicShape> shape, CSSBoxType cssBox)
89 : m_type(Shape)
90 , m_shape(shape)
124 case Shape:
125 return shape() == other.shape() && cssBox() == other.cssBox()
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/animation/animatable/
AnimatableShapeValue.cpp 40 if (m_shape->type() != ShapeValue::Shape
41 || shapeValue->m_shape->type() != ShapeValue::Shape
45 const BasicShape* fromShape = this->m_shape->shape();
46 const BasicShape* toShape = shapeValue->m_shape->shape();
57 const BasicShape* fromShape = this->m_shape->shape();
58 const BasicShape* toShape = shapeValue->m_shape->shape();
64 const ShapeValue* shape = toAnimatableShapeValue(value)->m_shape.get(); local
65 return m_shape == shape || (m_shape && shape && *m_shape == *shape);
    [all...]
  /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...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
ShadowCardDrag.java 31 import android.graphics.drawable.shapes.Shape;
114 * Simple shape example that generates a shadow casting outline.
116 private static class TriangleShape extends Shape {
141 private final ArrayList<Shape> mShapes = new ArrayList<Shape>();

Completed in 848 milliseconds

1 2 3 4