pub unsafe trait CISpotLight: CIFilterProtocol {
// 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 lightPosition(&self) -> Retained<CIVector>
where Self: Sized + Message { ... }
unsafe fn setLightPosition(&self, light_position: &CIVector)
where Self: Sized + Message { ... }
unsafe fn lightPointsAt(&self) -> Retained<CIVector>
where Self: Sized + Message { ... }
unsafe fn setLightPointsAt(&self, light_points_at: &CIVector)
where Self: Sized + Message { ... }
unsafe fn brightness(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setBrightness(&self, brightness: c_float)
where Self: Sized + Message { ... }
unsafe fn concentration(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setConcentration(&self, concentration: c_float)
where Self: Sized + Message { ... }
unsafe fn color(&self) -> Retained<CIColor>
where Self: Sized + Message { ... }
unsafe fn setColor(&self, color: &CIColor)
where Self: Sized + Message { ... }
}Available on crate features
CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Spot Light filter.
Applies a directional spotlight effect to an image.
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 lightPosition(&self) -> Retained<CIVector>
Available on crate feature CIVector only.
unsafe fn lightPosition(&self) -> Retained<CIVector>
CIVector only.The x and y position of the spotlight.
Sourceunsafe fn setLightPosition(&self, light_position: &CIVector)
Available on crate feature CIVector only.
unsafe fn setLightPosition(&self, light_position: &CIVector)
CIVector only.Setter for lightPosition.
Sourceunsafe fn lightPointsAt(&self) -> Retained<CIVector>
Available on crate feature CIVector only.
unsafe fn lightPointsAt(&self) -> Retained<CIVector>
CIVector only.The x and y position that the spotlight points at.
Sourceunsafe fn setLightPointsAt(&self, light_points_at: &CIVector)
Available on crate feature CIVector only.
unsafe fn setLightPointsAt(&self, light_points_at: &CIVector)
CIVector only.Setter for lightPointsAt.
Sourceunsafe fn brightness(&self) -> c_float
unsafe fn brightness(&self) -> c_float
The brightness of the spotlight.
Sourceunsafe fn setBrightness(&self, brightness: c_float)
unsafe fn setBrightness(&self, brightness: c_float)
Setter for brightness.
Sourceunsafe fn concentration(&self) -> c_float
unsafe fn concentration(&self) -> c_float
The spotlight size. The smaller the value, the more tightly focused the light beam.
Sourceunsafe fn setConcentration(&self, concentration: c_float)
unsafe fn setConcentration(&self, concentration: c_float)
Setter for concentration.