pub unsafe trait CILinearGradient: CIFilterProtocol {
// Provided methods
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 color0(&self) -> Retained<CIColor>
where Self: Sized + Message { ... }
unsafe fn setColor0(&self, color0: &CIColor)
where Self: Sized + Message { ... }
unsafe fn color1(&self) -> Retained<CIColor>
where Self: Sized + Message { ... }
unsafe fn setColor1(&self, color1: &CIColor)
where Self: Sized + Message { ... }
}Available on crate features
CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Linear Gradient filter.
Generates a gradient that varies along a linear axis between two defined endpoints.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn point0(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn point0(&self) -> CGPoint
objc2-core-foundation only.The starting position of the gradient – where the first color begins.
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 ending position of the gradient – where the second color begins.
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 color0(&self) -> Retained<CIColor>
Available on crate feature CIColor only.
unsafe fn color0(&self) -> Retained<CIColor>
CIColor only.The first color to use in the gradient.
Sourceunsafe fn setColor0(&self, color0: &CIColor)
Available on crate feature CIColor only.
unsafe fn setColor0(&self, color0: &CIColor)
CIColor only.Setter for color0.