CIRadialGradient

Trait CIRadialGradient 

Source
pub unsafe trait CIRadialGradient: CIFilterProtocol {
    // Provided methods
    unsafe fn center(&self) -> CGPoint
       where Self: Sized + Message { ... }
    unsafe fn setCenter(&self, center: CGPoint)
       where Self: Sized + Message { ... }
    unsafe fn radius0(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setRadius0(&self, radius0: c_float)
       where Self: Sized + Message { ... }
    unsafe fn radius1(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setRadius1(&self, radius1: c_float)
       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 Radial Gradient filter.

Generates a gradient that varies radially between two circles having the same center. It is valid for one of the two circles to have a radius of 0.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn center(&self) -> CGPoint
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

The center of the effect as x and y pixel coordinates.

Source

unsafe fn setCenter(&self, center: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for center.

Source

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

The radius of the starting circle to use in the gradient.

Source

unsafe fn setRadius0(&self, radius0: c_float)
where Self: Sized + Message,

Setter for radius0.

Source

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

The radius of the ending circle to use in the gradient.

Source

unsafe fn setRadius1(&self, radius1: c_float)
where Self: Sized + Message,

Setter for radius1.

Source

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

Available on crate feature CIColor only.

The first color to use in the gradient.

Source

unsafe fn setColor0(&self, color0: &CIColor)
where Self: Sized + Message,

Available on crate feature CIColor only.

Setter for color0.

Source

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

Available on crate feature CIColor only.

The second color to use in the gradient.

Source

unsafe fn setColor1(&self, color1: &CIColor)
where Self: Sized + Message,

Available on crate feature CIColor only.

Setter for color1.

Trait Implementations§

Source§

impl ProtocolType for dyn CIRadialGradient

Source§

const NAME: &'static str = "CIRadialGradient"

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 CIRadialGradient

Implementations on Foreign Types§

Source§

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

Implementors§