pub unsafe trait CIDepthOfField: CIFilterProtocol {
Show 14 methods
// Provided methods
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message { ... }
unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message { ... }
unsafe fn point0(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setPoint0(&self, point0: CGPoint)
where Self: Sized + Message { ... }
unsafe fn point1(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setPoint1(&self, point1: CGPoint)
where Self: Sized + Message { ... }
unsafe fn saturation(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setSaturation(&self, saturation: c_float)
where Self: Sized + Message { ... }
unsafe fn unsharpMaskRadius(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setUnsharpMaskRadius(&self, unsharp_mask_radius: c_float)
where Self: Sized + Message { ... }
unsafe fn unsharpMaskIntensity(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setUnsharpMaskIntensity(&self, unsharp_mask_intensity: c_float)
where Self: Sized + Message { ... }
unsafe fn radius(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setRadius(&self, radius: c_float)
where Self: Sized + Message { ... }
}CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Depth of Field filter.
Simulates miniaturization effect created by Tilt & Shift lens by performing depth of field effects.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn inputImage(&self) -> Option<Retained<CIImage>>
Available on crate feature CIImage only.
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
CIImage only.The image to use as an input for the effect.
Sourceunsafe fn setInputImage(&self, input_image: Option<&CIImage>)
Available on crate feature CIImage only.
unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
CIImage only.Setter for inputImage.
Sourceunsafe fn point0(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn point0(&self) -> CGPoint
objc2-core-foundation only.The first of two points defining a line in the image that should remain in focus
Sourceunsafe fn setPoint0(&self, point0: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setPoint0(&self, point0: CGPoint)
objc2-core-foundation only.Setter for point0.
Sourceunsafe fn point1(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn point1(&self) -> CGPoint
objc2-core-foundation only.The second of two points defining a line in the image that should remain in focus
Sourceunsafe fn setPoint1(&self, point1: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setPoint1(&self, point1: CGPoint)
objc2-core-foundation only.Setter for point1.
Sourceunsafe fn saturation(&self) -> c_float
unsafe fn saturation(&self) -> c_float
The amount to adjust the saturation.
Sourceunsafe fn setSaturation(&self, saturation: c_float)
unsafe fn setSaturation(&self, saturation: c_float)
Setter for saturation.
Sourceunsafe fn unsharpMaskRadius(&self) -> c_float
unsafe fn unsharpMaskRadius(&self) -> c_float
A float number representing the radius of the unsharpened mask effect applied to the in-focus area of effect.
Sourceunsafe fn setUnsharpMaskRadius(&self, unsharp_mask_radius: c_float)
unsafe fn setUnsharpMaskRadius(&self, unsharp_mask_radius: c_float)
Setter for unsharpMaskRadius.
Sourceunsafe fn unsharpMaskIntensity(&self) -> c_float
unsafe fn unsharpMaskIntensity(&self) -> c_float
A float number representing the intensity of the unsharp mask effect applied to the in-focus area of effect.
Sourceunsafe fn setUnsharpMaskIntensity(&self, unsharp_mask_intensity: c_float)
unsafe fn setUnsharpMaskIntensity(&self, unsharp_mask_intensity: c_float)
Setter for unsharpMaskIntensity.