//qrcode-kotlin/qrcode.shape/QRCodeShapeFunction
interface QRCodeShapeFunction
Function to render (draw) a single square.
DefaultShapeFunction |
Name | Summary |
---|---|
beforeRender | [common] open fun beforeRender(qrCode: QRCode, qrCodeGraphics: QRCodeGraphics) Called before rendering starts, to set up something if needed |
renderControlSquare | [common] abstract fun renderControlSquare(xOffset: Int, yOffset: Int, colorFn: QRCodeColorFunction, square: QRCodeSquare, canvas: QRCodeGraphics, qrCode: QRCode) Renders a control square (those bigger ones on the edges). |
renderSquare | [common] abstract fun renderSquare(x: Int, y: Int, colorFn: QRCodeColorFunction, square: QRCodeSquare, canvas: QRCodeGraphics, qrCode: QRCode) Renders a single square. |