CINinePartStretched

Trait CINinePartStretched 

Source
pub unsafe trait CINinePartStretched: 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 breakpoint0(&self) -> CGPoint
       where Self: Sized + Message { ... }
    unsafe fn setBreakpoint0(&self, breakpoint0: CGPoint)
       where Self: Sized + Message { ... }
    unsafe fn breakpoint1(&self) -> CGPoint
       where Self: Sized + Message { ... }
    unsafe fn setBreakpoint1(&self, breakpoint1: CGPoint)
       where Self: Sized + Message { ... }
    unsafe fn growAmount(&self) -> CGPoint
       where Self: Sized + Message { ... }
    unsafe fn setGrowAmount(&self, grow_amount: CGPoint)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Nine Part Stretched filter.

Distorts an image by stretching an image based on two input breakpoints.

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 breakpoint0(&self) -> CGPoint
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Lower left corner of image to retain before stretching begins.

Source

unsafe fn setBreakpoint0(&self, breakpoint0: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for breakpoint0.

Source

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

Available on crate feature objc2-core-foundation only.

Upper right corner of image to retain after stretching ends.

Source

unsafe fn setBreakpoint1(&self, breakpoint1: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for breakpoint1.

Source

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

Available on crate feature objc2-core-foundation only.

Vector indicating how much image should grow in pixels in both dimensions.

Source

unsafe fn setGrowAmount(&self, grow_amount: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for growAmount.

Trait Implementations§

Source§

impl ProtocolType for dyn CINinePartStretched

Source§

const NAME: &'static str = "CINinePartStretched"

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 CINinePartStretched

Implementations on Foreign Types§

Source§

impl<T> CINinePartStretched for ProtocolObject<T>

Implementors§