UIShapeProvider

Trait UIShapeProvider 

Source
pub unsafe trait UIShapeProvider: NSObjectProtocol {
    // Provided method
    fn resolvedShapeInContext(
        &self,
        context: &UIShapeResolutionContext,
    ) -> Retained<UIResolvedShape>
       where Self: Sized + Message { ... }
}
Available on crate feature UIShape only.
Expand description

A type that can provide a custom UIShape, resolved dynamically based on context.

See also Apple’s documentation

Provided Methods§

Source

fn resolvedShapeInContext( &self, context: &UIShapeResolutionContext, ) -> Retained<UIResolvedShape>
where Self: Sized + Message,

Resolves this shape in the provided context.

Trait Implementations§

Source§

impl ProtocolType for dyn UIShapeProvider

Source§

const NAME: &'static str = "UIShapeProvider"

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 UIShapeProvider

Implementations on Foreign Types§

Source§

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

Implementors§