CIHueSaturationValueGradient

Trait CIHueSaturationValueGradient 

Source
pub unsafe trait CIHueSaturationValueGradient: CIFilterProtocol {
    // Provided methods
    unsafe fn value(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setValue(&self, value: 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 softness(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setSoftness(&self, softness: c_float)
       where Self: Sized + Message { ... }
    unsafe fn dither(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setDither(&self, dither: c_float)
       where Self: Sized + Message { ... }
    unsafe fn colorSpace(&self) -> Option<Retained<CGColorSpace>>
       where Self: Sized + Message { ... }
    unsafe fn setColorSpace(&self, color_space: Option<&CGColorSpace>)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Hue/Saturation/Value Gradient filter.

Generates a color wheel that shows hues and saturations for a specified value.

See also Apple’s documentation

Provided Methods§

Source

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

The color value used to generate the color wheel.

Source

unsafe fn setValue(&self, value: c_float)
where Self: Sized + Message,

Setter for value.

Source

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

The radius of the color wheel in pixels.

Source

unsafe fn setRadius(&self, radius: c_float)
where Self: Sized + Message,

Setter for radius.

Source

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

The amount to smooth the hue angle to make it appear more continuous.

Source

unsafe fn setSoftness(&self, softness: c_float)
where Self: Sized + Message,

Setter for softness.

Source

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

The amount of dithered noise to add to the color wheel to avoid banding artifacts.

Source

unsafe fn setDither(&self, dither: c_float)
where Self: Sized + Message,

Setter for dither.

Source

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

Available on crate feature objc2-core-graphics only.

The CGColorSpaceRef that the color wheel should be generated in.

Source

unsafe fn setColorSpace(&self, color_space: Option<&CGColorSpace>)
where Self: Sized + Message,

Available on crate feature objc2-core-graphics only.

Setter for colorSpace.

Trait Implementations§

Source§

impl ProtocolType for dyn CIHueSaturationValueGradient

Source§

const NAME: &'static str = "CIHueSaturationValueGradient"

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 CIHueSaturationValueGradient

Implementations on Foreign Types§

Source§

impl<T> CIHueSaturationValueGradient for ProtocolObject<T>

Implementors§