pub unsafe trait CIAttributedTextImageGenerator: CIFilterProtocol {
// Provided methods
unsafe fn text(&self) -> Retained<NSAttributedString>
where Self: Sized + Message { ... }
unsafe fn setText(&self, text: &NSAttributedString)
where Self: Sized + Message { ... }
unsafe fn scaleFactor(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setScaleFactor(&self, scale_factor: c_float)
where Self: Sized + Message { ... }
unsafe fn padding(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setPadding(&self, padding: c_float)
where Self: Sized + Message { ... }
}Available on crate features
CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Attributed Text Image Generator filter.
Generate an image attributed string.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn text(&self) -> Retained<NSAttributedString>
unsafe fn text(&self) -> Retained<NSAttributedString>
The attributed text to render.
Sourceunsafe fn setText(&self, text: &NSAttributedString)
unsafe fn setText(&self, text: &NSAttributedString)
Setter for text.
Sourceunsafe fn scaleFactor(&self) -> c_float
unsafe fn scaleFactor(&self) -> c_float
The scale of the font to use for the generated text.
Sourceunsafe fn setScaleFactor(&self, scale_factor: c_float)
unsafe fn setScaleFactor(&self, scale_factor: c_float)
Setter for scaleFactor.