BlockInfo

data class BlockInfo(val from: Int, val to: Int, val top: Float, val height: Float, val type: BlockType, val widget: WidgetType? = null)

Describes a vertical block in the editor layout — either a text line or a widget.

Constructors

Link copied to clipboard
constructor(from: Int, to: Int, top: Float, height: Float, type: BlockType, widget: WidgetType? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val from: Int

Start document position.

Link copied to clipboard

Block height in pixels.

Link copied to clipboard
val to: Int

End document position.

Link copied to clipboard
val top: Float

Top coordinate (pixels from editor top).

Link copied to clipboard

What kind of block this is.

Link copied to clipboard

Associated widget, for widget blocks.