Skip to main content

CTAdaptiveImageProviding

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.
§Safety
  • out_image_offset must be a valid pointer.
  • out_image_size must be a valid pointer.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn CTAdaptiveImageProviding

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> CTAdaptiveImageProviding for ProtocolObject<T>

Implementors§