Trait CTAdaptiveImageProviding

Source
pub unsafe trait CTAdaptiveImageProviding {
    // Provided method
    unsafe fn imageForProposedSize_scaleFactor_imageOffset_imageSize(
        &self,
        proposed_size: CGSize,
        scale_factor: CGFloat,
        out_image_offset: NonNull<CGPoint>,
        out_image_size: NonNull<CGSize>,
    ) -> Option<Retained<CGImage>>
       where Self: Sized + Message { ... }
}
Available on crate features CTRunDelegate and objc2 only.
Expand description

Provided Methods§

Source

unsafe fn imageForProposedSize_scaleFactor_imageOffset_imageSize( &self, proposed_size: CGSize, scale_factor: CGFloat, out_image_offset: NonNull<CGPoint>, out_image_size: NonNull<CGSize>, ) -> Option<Retained<CGImage>>
where Self: Sized + Message,

Available on crate feature objc2-core-graphics only.

Trait Implementations§

Source§

impl ProtocolType for dyn CTAdaptiveImageProviding

Source§

const NAME: &'static str = "CTAdaptiveImageProviding"

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 CTAdaptiveImageProviding

Implementations on Foreign Types§

Source§

impl<T> CTAdaptiveImageProviding for ProtocolObject<T>

Implementors§