blob: 496787bc2eac593523c15c5e8adff1a50153272c [file] [log] [blame]
// Signature format: 4.0
package androidx.ink.rendering.android.canvas {
public interface CanvasStrokeRenderer {
method public static androidx.ink.rendering.android.canvas.CanvasStrokeRenderer create();
method public default void draw(android.graphics.Canvas canvas, androidx.ink.strokes.InProgressStroke inProgressStroke, android.graphics.Matrix strokeToScreenTransform);
method public default void draw(android.graphics.Canvas canvas, androidx.ink.strokes.InProgressStroke inProgressStroke, androidx.ink.geometry.AffineTransform strokeToScreenTransform);
method public default void draw(android.graphics.Canvas canvas, androidx.ink.strokes.Stroke stroke, android.graphics.Matrix strokeToScreenTransform);
method public default void draw(android.graphics.Canvas canvas, androidx.ink.strokes.Stroke stroke, androidx.ink.geometry.AffineTransform strokeToScreenTransform);
method @Px public default int strokeModifiedRegionOutsetPx();
field public static final androidx.ink.rendering.android.canvas.CanvasStrokeRenderer.Companion Companion;
}
public static final class CanvasStrokeRenderer.Companion {
method public androidx.ink.rendering.android.canvas.CanvasStrokeRenderer create();
}
public final class StrokeDrawScope {
method public void drawStroke(androidx.ink.strokes.Stroke stroke);
}
}
package androidx.ink.rendering.android.view {
public final class ViewStrokeRenderer {
ctor public ViewStrokeRenderer(androidx.ink.rendering.android.canvas.CanvasStrokeRenderer canvasStrokeRenderer, android.view.View view);
method public inline void drawWithStrokes(android.graphics.Canvas canvas, kotlin.jvm.functions.Function1<? super androidx.ink.rendering.android.canvas.StrokeDrawScope,kotlin.Unit> block);
method public void drawWithStrokes(android.graphics.Canvas canvas, kotlin.jvm.functions.Function2<? super android.graphics.Canvas,? super androidx.ink.rendering.android.canvas.StrokeDrawScope,kotlin.Unit> block);
method @kotlin.PublishedApi internal androidx.ink.rendering.android.canvas.StrokeDrawScope obtainDrawScope(android.graphics.Canvas canvas);
method @kotlin.PublishedApi internal void recycleDrawScope(androidx.ink.rendering.android.canvas.StrokeDrawScope scope);
}
}