CIQRCodeGenerator

Trait CIQRCodeGenerator 

Source
pub unsafe trait CIQRCodeGenerator: 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) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn setCorrectionLevel(&self, correction_level: &NSString)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the QR Code Generator filter.

Generate a QR Code 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 QR Code

Source

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

Setter for message.

Source

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

QR Code correction level L, M, Q, or H.

Source

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

Setter for correctionLevel.

Trait Implementations§

Source§

impl ProtocolType for dyn CIQRCodeGenerator

Source§

const NAME: &'static str = "CIQRCodeGenerator"

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 CIQRCodeGenerator

Implementations on Foreign Types§

Source§

impl<T> CIQRCodeGenerator for ProtocolObject<T>

Implementors§