IKImageEditPanelDataSource

Trait IKImageEditPanelDataSource 

Source
pub unsafe trait IKImageEditPanelDataSource {
    // Provided methods
    unsafe fn image(&self) -> Option<Retained<CGImage>>
       where Self: Sized + Message { ... }
    unsafe fn setImage_imageProperties(
        &self,
        image: Option<&CGImage>,
        meta_data: Option<&NSDictionary>,
    )
       where Self: Sized + Message { ... }
    unsafe fn thumbnailWithMaximumSize(
        &self,
        size: NSSize,
    ) -> Option<Retained<CGImage>>
       where Self: Sized + Message { ... }
    unsafe fn imageProperties(&self) -> Retained<NSDictionary>
       where Self: Sized + Message { ... }
    unsafe fn hasAdjustMode(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn hasEffectsMode(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn hasDetailsMode(&self) -> bool
       where Self: Sized + Message { ... }
}
Available on crate features IKImageEditPanel and ImageKit only.
Expand description

The data source of IKImageEditPanel must conform to IKImageEditPanelDataSource protocol.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn image(&self) -> Option<Retained<CGImage>>
where Self: Sized + Message,

Available on crate feature objc2-core-graphics only.

Returns an image.

Source

unsafe fn setImage_imageProperties( &self, image: Option<&CGImage>, meta_data: Option<&NSDictionary>, )
where Self: Sized + Message,

Available on crate feature objc2-core-graphics only.

Sets an image with the specifies properties.

Source

unsafe fn thumbnailWithMaximumSize( &self, size: NSSize, ) -> Option<Retained<CGImage>>
where Self: Sized + Message,

Available on crate feature objc2-core-graphics only.

Returns a thumbnail image whose size is no larger than the specified size.

Source

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

Returns a dictionary of the image properties associated with the image in the image edit panel.

Source

unsafe fn hasAdjustMode(&self) -> bool
where Self: Sized + Message,

Show the adjust view tab

Source

unsafe fn hasEffectsMode(&self) -> bool
where Self: Sized + Message,

Show the effects view tab

Source

unsafe fn hasDetailsMode(&self) -> bool
where Self: Sized + Message,

Show the details view tab

Trait Implementations§

Source§

impl ProtocolType for dyn IKImageEditPanelDataSource

Source§

const NAME: &'static str = "IKImageEditPanelDataSource"

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 IKImageEditPanelDataSource

Implementations on Foreign Types§

Source§

impl<T> IKImageEditPanelDataSource for ProtocolObject<T>

Implementors§