Struct objc2_core_image::CIImage
source · #[repr(C)]pub struct CIImage { /* private fields */ }Available on crate feature
CIImage only.Implementations§
source§impl CIImage
impl CIImage
pub unsafe fn imageWithTexture_size_flipped_options( name: c_uint, size: CGSize, flipped: bool, options: Option<&NSDictionary<CIImageOption, AnyObject>> ) -> Retained<CIImage>
👎Deprecated: Core Image OpenGL API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)
pub unsafe fn imageWithMTLTexture_options( texture: &ProtocolObject<dyn MTLTexture>, options: Option<&NSDictionary<CIImageOption, AnyObject>> ) -> Option<Retained<CIImage>>
Available on crate feature
objc2-metal only.pub unsafe fn imageWithContentsOfURL(url: &NSURL) -> Option<Retained<CIImage>>
pub unsafe fn imageWithContentsOfURL_options( url: &NSURL, options: Option<&NSDictionary<CIImageOption, AnyObject>> ) -> Option<Retained<CIImage>>
pub unsafe fn imageWithData(data: &NSData) -> Option<Retained<CIImage>>
pub unsafe fn imageWithData_options( data: &NSData, options: Option<&NSDictionary<CIImageOption, AnyObject>> ) -> Option<Retained<CIImage>>
pub unsafe fn imageWithColor(color: &CIColor) -> Retained<CIImage>
Available on crate feature
CIColor only.pub unsafe fn emptyImage() -> Retained<CIImage>
pub unsafe fn blackImage() -> Retained<CIImage>
pub unsafe fn whiteImage() -> Retained<CIImage>
pub unsafe fn grayImage() -> Retained<CIImage>
pub unsafe fn redImage() -> Retained<CIImage>
pub unsafe fn greenImage() -> Retained<CIImage>
pub unsafe fn blueImage() -> Retained<CIImage>
pub unsafe fn cyanImage() -> Retained<CIImage>
pub unsafe fn magentaImage() -> Retained<CIImage>
pub unsafe fn yellowImage() -> Retained<CIImage>
pub unsafe fn clearImage() -> Retained<CIImage>
pub unsafe fn initWithData( this: Allocated<Self>, data: &NSData ) -> Option<Retained<Self>>
pub unsafe fn initWithData_options( this: Allocated<Self>, data: &NSData, options: Option<&NSDictionary<CIImageOption, AnyObject>> ) -> Option<Retained<Self>>
pub unsafe fn initWithTexture_size_flipped_options( this: Allocated<Self>, name: c_uint, size: CGSize, flipped: bool, options: Option<&NSDictionary<CIImageOption, AnyObject>> ) -> Retained<Self>
👎Deprecated: Core Image OpenGL API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)
pub unsafe fn initWithMTLTexture_options( this: Allocated<Self>, texture: &ProtocolObject<dyn MTLTexture>, options: Option<&NSDictionary<CIImageOption, AnyObject>> ) -> Option<Retained<Self>>
Available on crate feature
objc2-metal only.pub unsafe fn initWithContentsOfURL( this: Allocated<Self>, url: &NSURL ) -> Option<Retained<Self>>
pub unsafe fn initWithContentsOfURL_options( this: Allocated<Self>, url: &NSURL, options: Option<&NSDictionary<CIImageOption, AnyObject>> ) -> Option<Retained<Self>>
pub unsafe fn initWithColor( this: Allocated<Self>, color: &CIColor ) -> Retained<Self>
Available on crate feature
CIColor only.pub unsafe fn imageByApplyingOrientation( &self, orientation: c_int ) -> Retained<CIImage>
pub unsafe fn imageByCompositingOverImage( &self, dest: &CIImage ) -> Retained<CIImage>
pub unsafe fn imageByCroppingToRect(&self, rect: CGRect) -> Retained<CIImage>
pub unsafe fn imageByClampingToExtent(&self) -> Retained<CIImage>
pub unsafe fn imageByClampingToRect(&self, rect: CGRect) -> Retained<CIImage>
pub unsafe fn imageByApplyingFilter_withInputParameters( &self, filter_name: &NSString, params: Option<&NSDictionary<NSString, AnyObject>> ) -> Retained<CIImage>
pub unsafe fn imageByApplyingFilter( &self, filter_name: &NSString ) -> Retained<CIImage>
pub unsafe fn imageByPremultiplyingAlpha(&self) -> Retained<CIImage>
pub unsafe fn imageByUnpremultiplyingAlpha(&self) -> Retained<CIImage>
pub unsafe fn imageBySettingAlphaOneInExtent( &self, extent: CGRect ) -> Retained<CIImage>
pub unsafe fn imageByApplyingGaussianBlurWithSigma( &self, sigma: c_double ) -> Retained<CIImage>
pub unsafe fn imageBySettingProperties( &self, properties: &NSDictionary ) -> Retained<CIImage>
pub unsafe fn imageBySamplingLinear(&self) -> Retained<CIImage>
pub unsafe fn imageBySamplingNearest(&self) -> Retained<CIImage>
pub unsafe fn imageByInsertingIntermediate(&self) -> Retained<CIImage>
pub unsafe fn imageByInsertingIntermediate_( &self, cache: bool ) -> Retained<CIImage>
pub unsafe fn extent(&self) -> CGRect
pub unsafe fn properties(&self) -> Retained<NSDictionary<NSString, AnyObject>>
pub unsafe fn definition(&self) -> Retained<CIFilterShape>
Available on crate feature
CIFilterShape only.pub unsafe fn url(&self) -> Option<Retained<NSURL>>
pub unsafe fn regionOfInterestForImage_inRect( &self, image: &CIImage, rect: CGRect ) -> CGRect
source§impl CIImage
impl CIImage
AutoAdjustment
pub unsafe fn autoAdjustmentFilters(&self) -> Retained<NSArray<CIFilter>>
Available on crate feature
CIFilter only.pub unsafe fn autoAdjustmentFiltersWithOptions( &self, options: Option<&NSDictionary<CIImageAutoAdjustmentOption, AnyObject>> ) -> Retained<NSArray<CIFilter>>
Available on crate feature
CIFilter only.source§impl CIImage
impl CIImage
LabConversion
pub unsafe fn imageByConvertingWorkingSpaceToLab(&self) -> Retained<CIImage>
pub unsafe fn imageByConvertingLabToWorkingSpace(&self) -> Retained<CIImage>
impl CIImage
This impl block contains no items.
CIImageProvider
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
§Example
Check that an instance of NSObject has the precise class NSObject.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.Use Ivar::load instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut instead.Use Ivar::load_mut instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Trait Implementations§
source§impl BorrowMut<AnyObject> for CIImage
impl BorrowMut<AnyObject> for CIImage
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for CIImage
impl BorrowMut<NSObject> for CIImage
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl ClassType for CIImage
impl ClassType for CIImage
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "CIImage"
const NAME: &'static str = "CIImage"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl NSObjectProtocol for CIImage
impl NSObjectProtocol for CIImage
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl NSSecureCoding for CIImage
impl NSSecureCoding for CIImage
source§impl PartialEq for CIImage
impl PartialEq for CIImage
source§impl RefEncode for CIImage
impl RefEncode for CIImage
source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for CIImage
impl Message for CIImage
impl NSCoding for CIImage
impl StructuralPartialEq for CIImage
Auto Trait Implementations§
impl !Freeze for CIImage
impl !RefUnwindSafe for CIImage
impl !Send for CIImage
impl !Sync for CIImage
impl !Unpin for CIImage
impl !UnwindSafe for CIImage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self if the type has no
mutable counterpart. Read more