pub unsafe trait CIModTransition: CITransitionFilter {
// Provided methods
unsafe fn center(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setCenter(&self, center: CGPoint)
where Self: Sized + Message { ... }
unsafe fn angle(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setAngle(&self, angle: 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 { ... }
unsafe fn compression(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setCompression(&self, compression: c_float)
where Self: Sized + Message { ... }
}Available on crate features
CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Mod filter.
Transitions from one image to another by revealing the target image through irregularly shaped holes.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn center(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn center(&self) -> CGPoint
objc2-core-foundation only.The center of the effect as x and y pixel coordinates.
Sourceunsafe fn setCenter(&self, center: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setCenter(&self, center: CGPoint)
objc2-core-foundation only.Setter for center.
Sourceunsafe fn compression(&self) -> c_float
unsafe fn compression(&self) -> c_float
The amount of stretching applied to the mod hole pattern. Holes in the center are not distorted as much as those at the edge of the image.
Sourceunsafe fn setCompression(&self, compression: c_float)
unsafe fn setCompression(&self, compression: c_float)
Setter for compression.