pub unsafe trait CIAztecCodeGenerator: CIFilterProtocol {
// Provided methods
unsafe fn message(&self) -> Retained<NSData>
where Self: Sized + Message { ... }
unsafe fn setMessage(&self, message: &NSData)
where Self: Sized + Message { ... }
unsafe fn correctionLevel(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setCorrectionLevel(&self, correction_level: c_float)
where Self: Sized + Message { ... }
unsafe fn layers(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setLayers(&self, layers: c_float)
where Self: Sized + Message { ... }
unsafe fn compactStyle(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setCompactStyle(&self, compact_style: c_float)
where Self: Sized + Message { ... }
}Available on crate features
CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Aztec Code Generator filter.
Generate an Aztec barcode image for message data.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn correctionLevel(&self) -> c_float
unsafe fn correctionLevel(&self) -> c_float
Aztec error correction value between 5 and 95
Sourceunsafe fn setCorrectionLevel(&self, correction_level: c_float)
unsafe fn setCorrectionLevel(&self, correction_level: c_float)
Setter for correctionLevel.
Sourceunsafe fn layers(&self) -> c_float
unsafe fn layers(&self) -> c_float
Aztec layers value between 1 and 32. Set to nil for automatic.
Sourceunsafe fn compactStyle(&self) -> c_float
unsafe fn compactStyle(&self) -> c_float
Force a compact style Aztec code to true or false. Set to nil for automatic.
Sourceunsafe fn setCompactStyle(&self, compact_style: c_float)
unsafe fn setCompactStyle(&self, compact_style: c_float)
Setter for compactStyle.