CIRoundedQRCodeGenerator

Trait CIRoundedQRCodeGenerator 

Source
pub unsafe trait CIRoundedQRCodeGenerator: CIFilterProtocol {
Show 16 methods // 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 { ... } unsafe fn scale(&self) -> c_float where Self: Sized + Message { ... } unsafe fn setScale(&self, scale: c_float) where Self: Sized + Message { ... } unsafe fn roundedMarkers(&self) -> NSInteger where Self: Sized + Message { ... } unsafe fn setRoundedMarkers(&self, rounded_markers: NSInteger) where Self: Sized + Message { ... } unsafe fn roundedData(&self) -> bool where Self: Sized + Message { ... } unsafe fn setRoundedData(&self, rounded_data: bool) where Self: Sized + Message { ... } unsafe fn centerSpaceSize(&self) -> c_float where Self: Sized + Message { ... } unsafe fn setCenterSpaceSize(&self, center_space_size: c_float) where Self: Sized + Message { ... } unsafe fn color0(&self) -> Retained<CIColor> where Self: Sized + Message { ... } unsafe fn setColor0(&self, color0: &CIColor) where Self: Sized + Message { ... } unsafe fn color1(&self) -> Retained<CIColor> where Self: Sized + Message { ... } unsafe fn setColor1(&self, color1: &CIColor) where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Rounded 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.

Source

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

The scale factor to enlarge the QRCode by.

Source

unsafe fn setScale(&self, scale: c_float)
where Self: Sized + Message,

Setter for scale.

Source

unsafe fn roundedMarkers(&self) -> NSInteger
where Self: Sized + Message,

If 1, then the Finder Patterns in the QRCode should have a rounded appearance. If 2, then the Alignment Patterns will also be rounded

Source

unsafe fn setRoundedMarkers(&self, rounded_markers: NSInteger)
where Self: Sized + Message,

Setter for roundedMarkers.

Source

unsafe fn roundedData(&self) -> bool
where Self: Sized + Message,

If true then the data points in the QRCode should have a rounded appearance.

Source

unsafe fn setRoundedData(&self, rounded_data: bool)
where Self: Sized + Message,

Setter for roundedData.

Source

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

The fraction of the center space of the QRCode to fill with Color 1. If the size is 0.0 or the Correction Level is L or M, the center of the QRCode will be unaltered. The size will be limited to 0.25 if the Correction Level is Q. The size will be limited to 0.33 if the Correction Level is H.

Source

unsafe fn setCenterSpaceSize(&self, center_space_size: c_float)
where Self: Sized + Message,

Setter for centerSpaceSize.

Source

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

Available on crate feature CIColor only.

The background color for the QRCode

Source

unsafe fn setColor0(&self, color0: &CIColor)
where Self: Sized + Message,

Available on crate feature CIColor only.

Setter for color0.

Source

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

Available on crate feature CIColor only.

The foreground color for the QRCode

Source

unsafe fn setColor1(&self, color1: &CIColor)
where Self: Sized + Message,

Available on crate feature CIColor only.

Setter for color1.

Trait Implementations§

Source§

impl ProtocolType for dyn CIRoundedQRCodeGenerator

Source§

const NAME: &'static str = "CIRoundedQRCodeGenerator"

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 CIRoundedQRCodeGenerator

Implementations on Foreign Types§

Source§

impl<T> CIRoundedQRCodeGenerator for ProtocolObject<T>

Implementors§