WhiteboardShape

data class WhiteboardShape(val id: String = generateShapeId(), val type: WhiteboardShapeType, val start: Offset? = null, val end: Offset? = null, val points: List<Offset> = emptyList(), val color: Color = Color.Black, val thickness: Float = 6.0f, val lineType: LineType = LineType.SOLID, val text: String? = null, val fontFamily: String = "Arial", val fontSize: Float = 20.0f, val imageData: ByteArray? = null, val imageSrc: String? = null)

Represents a drawable whiteboard shape.

Constructors

Link copied to clipboard
constructor(id: String = generateShapeId(), type: WhiteboardShapeType, start: Offset? = null, end: Offset? = null, points: List<Offset> = emptyList(), color: Color = Color.Black, thickness: Float = 6.0f, lineType: LineType = LineType.SOLID, text: String? = null, fontFamily: String = "Arial", fontSize: Float = 20.0f, imageData: ByteArray? = null, imageSrc: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val end: Offset? = null
Link copied to clipboard
Link copied to clipboard
val fontSize: Float = 20.0f
Link copied to clipboard
val id: String
Link copied to clipboard
val imageData: ByteArray? = null
Link copied to clipboard
val imageSrc: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val start: Offset? = null
Link copied to clipboard
val text: String? = null
Link copied to clipboard
val thickness: Float = 6.0f
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun toMap(): Map<String, Any?>