Skip to main content

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.

§Safety
  • image might not allow None.
  • meta_data generic should be of the correct type.
  • meta_data might not allow None.
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<T> ImplementedBy<T> for dyn IKImageEditPanelDataSource

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

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> IKImageEditPanelDataSource for ProtocolObject<T>

Implementors§