CIAztecCodeGenerator

Trait CIAztecCodeGenerator 

Source
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§

Source

unsafe fn message(&self) -> Retained<NSData>
where Self: Sized + Message,

The message to encode in the Aztec Barcode

Source

unsafe fn setMessage(&self, message: &NSData)
where Self: Sized + Message,

Setter for message.

Source

unsafe fn correctionLevel(&self) -> c_float
where Self: Sized + Message,

Aztec error correction value between 5 and 95

Source

unsafe fn setCorrectionLevel(&self, correction_level: c_float)
where Self: Sized + Message,

Setter for correctionLevel.

Source

unsafe fn layers(&self) -> c_float
where Self: Sized + Message,

Aztec layers value between 1 and 32. Set to nil for automatic.

Source

unsafe fn setLayers(&self, layers: c_float)
where Self: Sized + Message,

Setter for layers.

Source

unsafe fn compactStyle(&self) -> c_float
where Self: Sized + Message,

Force a compact style Aztec code to true or false. Set to nil for automatic.

Source

unsafe fn setCompactStyle(&self, compact_style: c_float)
where Self: Sized + Message,

Setter for compactStyle.

Trait Implementations§

Source§

impl ProtocolType for dyn CIAztecCodeGenerator

Source§

const NAME: &'static str = "CIAztecCodeGenerator"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CIAztecCodeGenerator

Implementations on Foreign Types§

Source§

impl<T> CIAztecCodeGenerator for ProtocolObject<T>

Implementors§