LabelOp

sealed interface LabelOp(source)

One drawing step of a label, in printer dots with the origin at the top left of the reading orientation.

Inheritors

Types

Link copied to clipboard
data class Band(val x: Int, val y: Int, val width: Int, val height: Int, val text: String, val size: Int) : LabelOp

A black band with white text as tall as it allows, squeezed sideways rather than shrunk when too wide.

Link copied to clipboard
data class Mark(val right: Int, val bottom: Int, val height: Int) : LabelOp

The M-PWRD mark's Ms, height dots tall, with its right and bottom edges at the given dots.

Link copied to clipboard
data class Qr(val modules: QrModules, val x: Int, val y: Int, val dotsPerModule: Int) : LabelOp

A QR code with its top left module at (x, y). Not held to the text margins.

Link copied to clipboard
data class Text(val text: String, val x: Int, val yCenter: Int, val size: Int) : LabelOp

Text starting at x with its vertical middle at yCenter.