#[non_exhaustive]pub struct Layout {}Expand description
Pixel geometry of a rendered symbol.
Every measurement is a whole number of pixels, and the symbol width is an exact multiple of the module width. Snapping to integers matters: a module that straddles a pixel boundary is rendered as a grey edge, which degrades the contrast a scanner relies on.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.module_px: u32Width of one module, in pixels. Always at least 1.
quiet_x_px: u32Horizontal quiet zone per side, in pixels.
quiet_y_px: u32Vertical quiet zone per side, in pixels. Zero for linear symbologies, which need no vertical quiet zone.
symbol_w_px: u32Symbol width, in pixels.
symbol_h_px: u32Symbol height, in pixels. For linear symbologies this is the bar height; for matrix symbologies it follows the module grid.
symbol_x_px: u32Left edge of the symbol.
symbol_y_px: u32Top edge of the symbol.
hri_scale: u32Integer scale factor applied to the 5x7 HRI font. Zero when no HRI is drawn.
hri_block_h_px: u32Total vertical space taken by the HRI line, including the gap above it. Zero when no HRI is drawn.
hri_x_px: u32Left edge of the HRI text.
hri_y_px: u32Top edge of the HRI text.
width_px: u32Total image width.
height_px: u32Total image height.