pub unsafe trait CIRoundedRectangleStrokeGenerator: CIFilterProtocol {
// Provided methods
unsafe fn extent(&self) -> CGRect
where Self: Sized + Message { ... }
unsafe fn setExtent(&self, extent: CGRect)
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 smoothness(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setSmoothness(&self, smoothness: 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 { ... }
unsafe fn width(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setWidth(&self, width: c_float)
where Self: Sized + Message { ... }
}Available on crate features
CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Rounded Rectangle Stroke Generator filter.
Generates a rounded rectangle stroke image with the specified extent, corner radius, stroke width, and color.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn extent(&self) -> CGRect
Available on crate feature objc2-core-foundation only.
unsafe fn extent(&self) -> CGRect
objc2-core-foundation only.A rectangle that defines the extent of the effect.
Sourceunsafe fn setExtent(&self, extent: CGRect)
Available on crate feature objc2-core-foundation only.
unsafe fn setExtent(&self, extent: CGRect)
objc2-core-foundation only.Setter for extent.
Sourceunsafe fn smoothness(&self) -> c_float
unsafe fn smoothness(&self) -> c_float
A value to control the smoothness of the transition between the curved and linear edges of the shape.
Sourceunsafe fn setSmoothness(&self, smoothness: c_float)
unsafe fn setSmoothness(&self, smoothness: c_float)
Setter for smoothness.
Sourceunsafe fn setColor(&self, color: &CIColor)
Available on crate feature CIColor only.
unsafe fn setColor(&self, color: &CIColor)
CIColor only.Setter for color.