mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2025-02-24 02:18:22 +00:00
Updated documentation comment for field QrCode.modules, in most languages.
This commit is contained in:
parent
1c9a9cf60c
commit
f4b16f25b0
@ -128,7 +128,8 @@ class QrCode final {
|
|||||||
|
|
||||||
// Private grids of modules/pixels, with dimensions of size*size:
|
// 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;
|
private: std::vector<std::vector<bool> > modules;
|
||||||
|
|
||||||
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.
|
// 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:
|
// 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;
|
private boolean[][] modules;
|
||||||
|
|
||||||
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.
|
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.
|
||||||
|
@ -186,7 +186,8 @@ class QrCode(object):
|
|||||||
self._errcorlvl = errcorlvl
|
self._errcorlvl = errcorlvl
|
||||||
|
|
||||||
# Initialize both grids to be size*size arrays of Boolean false
|
# 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
|
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
|
# Indicates function modules that are not subjected to masking. Discarded when constructor finishes
|
||||||
self._isfunction = [[False] * self._size for _ in range(self._size)]
|
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:
|
// 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>,
|
modules: Vec<bool>,
|
||||||
|
|
||||||
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.
|
// 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.
|
// 21 and 177 (inclusive). This is equal to version * 4 + 17.
|
||||||
public readonly size: int;
|
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>> = [];
|
private readonly modules : Array<Array<boolean>> = [];
|
||||||
|
|
||||||
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.
|
// Indicates function modules that are not subjected to masking. Discarded when constructor finishes.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user