vqr.h Header
Platform Contract
Types
| struct | QrMatrix | Grid of a QR code's squares, which QR calls *modules*, from encode_qr(). |
Function Documentation
QrMatrix encode_qr(const std::string & data)
Encodes data, like a URL, as a QR code with medium error correction.
Returns a grid with a size of 0 when data is empty or too long for
a QR code, and the QR node then shows only its fill.
Every platform draws QR nodes from this result. Desktop widgets call it
directly, while web and Android read it from each QR node's JSON, as
qrSize and qrModules (a string of "0" and "1", like "1001").