Home
last modified time | relevance | path

Searched refs:shape (Results 1 – 15 of 15) sorted by relevance

/ink/ink-strokes/src/jvmAndroidMain/kotlin/androidx/ink/strokes/
DStroke.kt62 public val shape: PartitionedMesh = constant in androidx.ink.strokes.Stroke
76 shape: PartitionedMesh,
81 shape
93 shape,
124 Stroke(brush, this.inputs, this.shape) in copy()
154 return "Stroke(brush=$brush, inputs=$inputs, shape=$shape)" in toString()
161 val shape = in wrapNative() constant
163 require(shape.getRenderGroupCount() == brush.family.coats.size) { in wrapNative()
172 shape, in wrapNative()
197 shape: Long,
/ink/ink-geometry/src/jvmAndroidTest/kotlin/androidx/ink/geometry/
DPartitionedMeshTest.kt105 val shape = buildTestStrokeShape() in populateOutlinePosition_withStrokeShape_shouldBeWithinBounds() constant
107 assertThat(shape.getRenderGroupCount()).isEqualTo(1) in populateOutlinePosition_withStrokeShape_shouldBeWithinBounds()
108 assertThat(shape.getOutlineCount(0)).isEqualTo(1) in populateOutlinePosition_withStrokeShape_shouldBeWithinBounds()
109 assertThat(shape.getOutlineVertexCount(0, 0)).isGreaterThan(2) in populateOutlinePosition_withStrokeShape_shouldBeWithinBounds()
111 val bounds = assertNotNull(shape.computeBoundingBox()) in populateOutlinePosition_withStrokeShape_shouldBeWithinBounds()
114 for (outlineVertexIndex in 0 until shape.getOutlineVertexCount(0, 0)) { in populateOutlinePosition_withStrokeShape_shouldBeWithinBounds()
115 shape.populateOutlinePosition(groupIndex = 0, outlineIndex = 0, outlineVertexIndex, p) in populateOutlinePosition_withStrokeShape_shouldBeWithinBounds()
125 val shape = buildTestStrokeShape() in populateOutlinePosition_whenBadIndex_shouldThrow() constant
129 @Suppress("Range") shape.populateOutlinePosition(-1, 0, 0, p) in populateOutlinePosition_whenBadIndex_shouldThrow()
131 assertFailsWith<IllegalArgumentException> { shape.populateOutlinePosition(5, 0, 0, p) } in populateOutlinePosition_whenBadIndex_shouldThrow()
[all …]
DIntersectionTest.kt1006 .shape in intersects_forTwoPartitionedMeshes_callsJniAndReturnsBool()
1012 .shape in intersects_forTwoPartitionedMeshes_callsJniAndReturnsBool()
1059 .shape in buildTestStrokeShape()
DBoxAccumulatorTest.kt710 .shape in buildTestStrokeShape()
/ink/ink-strokes/src/jvmAndroidTest/kotlin/androidx/ink/strokes/
DStrokeTest.kt55 val newStroke = Stroke(brushIn, inputsIn, originalStroke.shape) in <lambda>()
60 assertThat(newStroke.shape).isSameInstanceAs(originalStroke.shape) in <lambda>()
70 val shape = Stroke(buildTestBrush(), inputs).shape in <lambda>() constant
71 assertThat(shape.getRenderGroupCount()).isEqualTo(1) in <lambda>()
80 assertThrows(IllegalArgumentException::class.java) { Stroke(brush, inputs, shape) } in <lambda>()
112 assertThat(actual.shape).isSameInstanceAs(originalStroke.shape) in <lambda>()
154 assertThat(actual.shape).isNotSameInstanceAs(originalStroke.shape) in <lambda>()
216 assertThat(actual.shape).isSameInstanceAs(originalStroke.shape) in <lambda>()
236 assertThat(actual.shape).isNotSameInstanceAs(originalStroke.shape) in <lambda>()
256 assertThat(actual.shape).isNotSameInstanceAs(originalStroke.shape) in <lambda>()
/ink/ink-rendering/src/androidMain/kotlin/androidx/ink/rendering/android/canvas/internal/
DCanvasPathRenderer.kt160 for (groupIndex in 0 until stroke.shape.getRenderGroupCount()) { in draw()
163 obtainPath(stroke.shape, groupIndex, strokeToScreenTransform), in draw()
217 shape: PartitionedMesh, in obtainPath()
221 val cachedPathData = strokePathCache[shape] in obtainPath()
224 PartitionedMeshPathData.create(shape, strokeToScreenTransform).also { in obtainPath()
225 strokePathCache[shape] = it in obtainPath()
228 cachedPathData.maybeUpdate(shape, strokeToScreenTransform) in obtainPath()
338 shape: PartitionedMesh, in create()
342 for (groupIndex in 0 until shape.getRenderGroupCount()) { in create()
343 val path = shape.outlinesToPath(groupIndex) // stroke coordinates in create()
[all …]
DCanvasStrokeUnifiedRenderer.kt54 for (groupIndex in 0 until stroke.shape.getRenderGroupCount()) { in getDelegateRendererOrThrow()
55 if (stroke.shape.getOutlineCount(groupIndex) > 0) { in getDelegateRendererOrThrow()
DCanvasMeshRenderer.kt206 val meshes = stroke.shape.renderGroupMeshes(coatIndex) in draw()
638 for (groupIndex in 0 until stroke.shape.getRenderGroupCount()) { in canDraw()
639 if (stroke.shape.renderGroupMeshes(groupIndex).isEmpty()) continue in canDraw()
640 val format = stroke.shape.renderGroupFormat(groupIndex) in canDraw()
/ink/ink-rendering/src/androidInstrumentedTest/kotlin/androidx/ink/rendering/android/canvas/internal/
DCanvasMeshRendererTest.kt76 assertThat(stroke.shape.getRenderGroupCount()).isEqualTo(1) in obtainShaderMetadata_whenCalledTwiceWithSamePackedInstance_returnsCachedValue()
77 val meshFormat = stroke.shape.renderGroupFormat(0) in obtainShaderMetadata_whenCalledTwiceWithSamePackedInstance_returnsCachedValue()
99 assertThat(stroke.shape.getRenderGroupCount()).isEqualTo(1) in obtainShaderMetadata_whenCalledTwiceWithEquivalentPackedFormat_returnsCachedValue()
100 val strokeFormat = stroke.shape.renderGroupFormat(0) in obtainShaderMetadata_whenCalledTwiceWithEquivalentPackedFormat_returnsCachedValue()
101 assertThat(anotherStroke.shape.getRenderGroupCount()).isEqualTo(1) in obtainShaderMetadata_whenCalledTwiceWithEquivalentPackedFormat_returnsCachedValue()
102 val anotherStrokeFormat = anotherStroke.shape.renderGroupFormat(0) in obtainShaderMetadata_whenCalledTwiceWithEquivalentPackedFormat_returnsCachedValue()
/ink/ink-storage/src/commonMain/proto/
Dbrush_family.proto21 // Specifies a list of `BrushCoat`s that determine the stroke shape and dynamic
26 // allow future input models to be added without changing the shape of
72 // Parameters that control how stroke inputs are used to model the tip shape and
75 // 1. Parameters for the baseline shape of the tip as a function of `Brush`
78 // to modify the tip shape and color.
83 // color when drawing. The default values produce a static circular tip shape
86 // Scale used to calculate the baseline width of the tip shape relative to the
101 // Angle used to calculate the baseline slant of the tip shape prior to
105 // Unlike skew, slant tries to preserve the perimeter of the tip shape as
110 // angle by which "vertical" lines of the tip shape will appear rotated about
[all …]
/ink/ink-geometry/src/androidInstrumentedTest/kotlin/androidx/ink/geometry/
DAndroidGraphicsConversionExtensionsTest.kt279 .shape in buildTestStrokeShape()
284 .shape in buildEmptyTestStrokeShape()
DAndroidGraphicsConversionExtensionsEmulatorTest.kt96 .shape in buildTestStrokeShape()
/ink/ink-strokes/api/
Dcurrent.txt75 … brush, androidx.ink.strokes.StrokeInputBatch inputs, androidx.ink.geometry.PartitionedMesh shape);
83 property public androidx.ink.geometry.PartitionedMesh shape;
Drestricted_current.txt75 … brush, androidx.ink.strokes.StrokeInputBatch inputs, androidx.ink.geometry.PartitionedMesh shape);
83 property public androidx.ink.geometry.PartitionedMesh shape;
/ink/ink-authoring/src/androidInstrumentedTest/kotlin/androidx/ink/authoring/
DInProgressStrokesViewTest.kt921 val androidRect = stroke.shape.computeBoundingBox()?.toRectF() ?: return in <lambda>()