CISpotLight

Trait CISpotLight 

Source
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§

Source

unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message,

Available on crate feature CIImage only.

The image to use as an input for the effect.

Source

unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message,

Available on crate feature CIImage only.

Setter for inputImage.

Source

unsafe fn lightPosition(&self) -> Retained<CIVector>
where Self: Sized + Message,

Available on crate feature CIVector only.

The x and y position of the spotlight.

Source

unsafe fn setLightPosition(&self, light_position: &CIVector)
where Self: Sized + Message,

Available on crate feature CIVector only.

Setter for lightPosition.

Source

unsafe fn lightPointsAt(&self) -> Retained<CIVector>
where Self: Sized + Message,

Available on crate feature CIVector only.

The x and y position that the spotlight points at.

Source

unsafe fn setLightPointsAt(&self, light_points_at: &CIVector)
where Self: Sized + Message,

Available on crate feature CIVector only.

Setter for lightPointsAt.

Source

unsafe fn brightness(&self) -> c_float
where Self: Sized + Message,

The brightness of the spotlight.

Source

unsafe fn setBrightness(&self, brightness: c_float)
where Self: Sized + Message,

Setter for brightness.

Source

unsafe fn concentration(&self) -> c_float
where Self: Sized + Message,

The spotlight size. The smaller the value, the more tightly focused the light beam.

Source

unsafe fn setConcentration(&self, concentration: c_float)
where Self: Sized + Message,

Setter for concentration.

Source

unsafe fn color(&self) -> Retained<CIColor>
where Self: Sized + Message,

Available on crate feature CIColor only.

The color of the spotlight.

Source

unsafe fn setColor(&self, color: &CIColor)
where Self: Sized + Message,

Available on crate feature CIColor only.

Setter for color.

Trait Implementations§

Source§

impl ProtocolType for dyn CISpotLight

Source§

const NAME: &'static str = "CISpotLight"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CISpotLight
where T: ?Sized + Message + CISpotLight,

Implementations on Foreign Types§

Source§

impl<T> CISpotLight for ProtocolObject<T>
where T: ?Sized + CISpotLight,

Implementors§