FeatureDrawScope

abstract class FeatureDrawScope<T : Any>(val state: CanvasState<T>) : DrawScope

An extension of DrawScope to include map-specific features

Inheritors

Constructors

Link copied to clipboard
constructor(state: CanvasState<T>)

Properties

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

Functions

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