CIAttributedTextImageGenerator

Trait CIAttributedTextImageGenerator 

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

Source

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

The attributed text to render.

Source

unsafe fn setText(&self, text: &NSAttributedString)
where Self: Sized + Message,

Setter for text.

Source

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

The scale of the font to use for the generated text.

Source

unsafe fn setScaleFactor(&self, scale_factor: c_float)
where Self: Sized + Message,

Setter for scaleFactor.

Source

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

A value for an additional number of pixels to pad around the text’s bounding box.

Source

unsafe fn setPadding(&self, padding: c_float)
where Self: Sized + Message,

Setter for padding.

Trait Implementations§

Source§

impl ProtocolType for dyn CIAttributedTextImageGenerator

Source§

const NAME: &'static str = "CIAttributedTextImageGenerator"

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 CIAttributedTextImageGenerator

Implementations on Foreign Types§

Source§

impl<T> CIAttributedTextImageGenerator for ProtocolObject<T>

Implementors§