CICode128BarcodeGenerator

Trait CICode128BarcodeGenerator 

Source
pub unsafe trait CICode128BarcodeGenerator: 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 quietSpace(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setQuietSpace(&self, quiet_space: c_float)
       where Self: Sized + Message { ... }
    unsafe fn barcodeHeight(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setBarcodeHeight(&self, barcode_height: c_float)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Code 128 Barcode Generator filter.

Generate a Code 128 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 Code 128 Barcode

Source

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

Setter for message.

Source

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

The number of empty white pixels that should surround the barcode.

Source

unsafe fn setQuietSpace(&self, quiet_space: c_float)
where Self: Sized + Message,

Setter for quietSpace.

Source

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

The height of the generated barcode in pixels.

Source

unsafe fn setBarcodeHeight(&self, barcode_height: c_float)
where Self: Sized + Message,

Setter for barcodeHeight.

Trait Implementations§

Source§

impl ProtocolType for dyn CICode128BarcodeGenerator

Source§

const NAME: &'static str = "CICode128BarcodeGenerator"

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 CICode128BarcodeGenerator

Implementations on Foreign Types§

Source§

impl<T> CICode128BarcodeGenerator for ProtocolObject<T>

Implementors§