Updated documentation comment for field QrCode.modules, in most languages.

pull/39/merge
Project Nayuki 6 years ago
parent 1c9a9cf60c
commit f4b16f25b0

@ -128,7 +128,8 @@ class QrCode final {
// Private grids of modules/pixels, with dimensions of size*size:
// The modules of this QR Code (false = white, true = black). Immutable after constructor finishes.
// The modules of this QR Code (false = white, true = black).
// Immutable after constructor finishes. Accessed through getModule().
private: std::vector<std::vector<bool> > modules;
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.

@ -212,7 +212,8 @@ public final class QrCode {
// Private grids of modules/pixels, with dimensions of size*size:
// The modules of this QR Code (false = white, true = black). Immutable after constructor finishes.
// The modules of this QR Code (false = white, true = black).
// Immutable after constructor finishes. Accessed through getModule().
private boolean[][] modules;
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.

@ -186,7 +186,8 @@ class QrCode(object):
self._errcorlvl = errcorlvl
# Initialize both grids to be size*size arrays of Boolean false
# The modules of this QR Code (False = white, True = black). Immutable after constructor finishes
# The modules of this QR Code (False = white, True = black).
# Immutable after constructor finishes. Accessed through get_module().
self._modules = [[False] * self._size for _ in range(self._size)] # Initially all white
# Indicates function modules that are not subjected to masking. Discarded when constructor finishes
self._isfunction = [[False] * self._size for _ in range(self._size)]

@ -64,7 +64,8 @@ pub struct QrCode {
// Grids of modules/pixels, with dimensions of size*size:
// The modules of this QR Code (false = white, true = black). Immutable after constructor finishes.
// The modules of this QR Code (false = white, true = black).
// Immutable after constructor finishes. Accessed through get_module().
modules: Vec<bool>,
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.

@ -148,7 +148,8 @@ namespace qrcodegen {
// 21 and 177 (inclusive). This is equal to version * 4 + 17.
public readonly size: int;
// The modules of this QR Code (false = white, true = black). Immutable after constructor finishes.
// The modules of this QR Code (false = white, true = black).
// Immutable after constructor finishes. Accessed through getModule().
private readonly modules : Array<Array<boolean>> = [];
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.

Loading…
Cancel
Save