ComposeFeatureDrawScope

class ComposeFeatureDrawScope<T : Any>(drawScope: DrawScope, state: CanvasState<T>, painterCache: Map<PainterFeature<T>, Painter>, textMeasurer: TextMeasurer?) : FeatureDrawScope<T> , DrawScope

Default implementation of FeatureDrawScope to be used in Compose (both schemes and Maps)

Constructors

Link copied to clipboard
constructor(drawScope: DrawScope, state: CanvasState<T>, painterCache: Map<PainterFeature<T>, Painter>, textMeasurer: TextMeasurer?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val center: Offset
Link copied to clipboard
open override val density: Float
Link copied to clipboard
open override val drawContext: DrawContext
Link copied to clipboard
open override val fontScale: Float
Link copied to clipboard
open override val layoutDirection: LayoutDirection
Link copied to clipboard
open override val size: Size
Link copied to clipboard

Functions

Link copied to clipboard
open override fun drawArc(brush: Brush, startAngle: Float, sweepAngle: Float, useCenter: Boolean, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawArc(color: Color, startAngle: Float, sweepAngle: Float, useCenter: Boolean, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawCircle(brush: Brush, radius: Float, center: Offset, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawCircle(color: Color, radius: Float, center: Offset, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
Link copied to clipboard
open override fun drawImage(image: ImageBitmap, topLeft: Offset, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawImage(image: ImageBitmap, srcOffset: IntOffset, srcSize: IntSize, dstOffset: IntOffset, dstSize: IntSize, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode, filterQuality: FilterQuality)
Link copied to clipboard
open override fun drawLine(brush: Brush, start: Offset, end: Offset, strokeWidth: Float, cap: StrokeCap, pathEffect: PathEffect?, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawLine(color: Color, start: Offset, end: Offset, strokeWidth: Float, cap: StrokeCap, pathEffect: PathEffect?, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawOval(brush: Brush, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawOval(color: Color, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawPath(path: Path, brush: Brush, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawPath(path: Path, color: Color, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawPoints(points: List<Offset>, pointMode: PointMode, brush: Brush, strokeWidth: Float, cap: StrokeCap, pathEffect: PathEffect?, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawPoints(points: List<Offset>, pointMode: PointMode, color: Color, strokeWidth: Float, cap: StrokeCap, pathEffect: PathEffect?, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawRect(brush: Brush, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawRect(color: Color, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawRoundRect(brush: Brush, topLeft: Offset, size: Size, cornerRadius: CornerRadius, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawRoundRect(color: Color, topLeft: Offset, size: Size, cornerRadius: CornerRadius, style: DrawStyle, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawText(text: String, position: Offset, attributes: Attributes)
Link copied to clipboard
open override fun painterFor(feature: PainterFeature<T>): Painter
Link copied to clipboard
open override fun Dp.roundToPx(): Int
open override fun TextUnit.roundToPx(): Int
Link copied to clipboard
fun Offset.toCoordinates(): T
Link copied to clipboard
open override fun Float.toDp(): Dp
open override fun Int.toDp(): Dp
open override fun TextUnit.toDp(): Dp
Link copied to clipboard
fun Rectangle<T>.toDpRect(): DpRect
Link copied to clipboard
open override fun Size.toDpSize(): DpSize
Link copied to clipboard
open fun T.toOffset(): Offset
Link copied to clipboard
open override fun Dp.toPx(): Float
open override fun TextUnit.toPx(): Float
Link copied to clipboard
open override fun DpRect.toRect(): Rect
Link copied to clipboard
open override fun DpSize.toSize(): Size
Link copied to clipboard
open override fun Float.toSp(): TextUnit
open override fun Int.toSp(): TextUnit
open override fun Dp.toSp(): TextUnit