Html

Html renderer.

Members

Functions

getClass
string getClass()

Get CSS class name.

getStyle
string getStyle()

Get CSS style value.

render
string render(QrCode qrCode)

render(): defined by RendererInterface.

setClass
void setClass(string _class)

Set CSS class name.

setStyle
void setStyle(string style)

Set CSS style value.

Variables

css_class
string css_class;

HTML CSS class attribute value.

style
string style;

HTML CSS style definition for the code element.

Inherited Members

From Plain

margin
int margin;

Margin around the QR code, also known as quiet zone.

fullBlock
string fullBlock;

Char used for full block.

emptyBlock
string emptyBlock;

Char used for empty space

setFullBlock
void setFullBlock(string fullBlock)

Set char used as full block (occupied space, "black").

getFullBlock
string getFullBlock()

Get char used as full block (occupied space, "black").

setEmptyBlock
void setEmptyBlock(string emptyBlock)

Set char used as empty block (empty space, "white").

getEmptyBlock
string getEmptyBlock()

Get char used as empty block (empty space, "white").

setMargin
RendererInterface setMargin(int margin)

Sets the margin around the QR code.

getMargin
int getMargin()

Gets the margin around the QR code.

render
string render(QrCode qrCode)

render(): defined by RendererInterface.

initRender
void initRender()
Undocumented in source. Be warned that the author may not have intended to support it.
addColor
void addColor(string id, ColorInterface color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawBackground
void drawBackground(string colorId)
Undocumented in source. Be warned that the author may not have intended to support it.
drawBlock
void drawBlock(int x, int y, string colorId)
Undocumented in source. Be warned that the author may not have intended to support it.
getByteStream
string getByteStream()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta