Trait NSStringDrawing

Source
pub unsafe trait NSStringDrawing:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn sizeWithAttributes(
        &self,
        attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
    ) -> CGSize { ... }
    unsafe fn drawAtPoint_withAttributes(
        &self,
        point: CGPoint,
        attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
    ) { ... }
    unsafe fn drawInRect_withAttributes(
        &self,
        rect: CGRect,
        attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
    ) { ... }
}
Available on crate feature NSStringDrawing only.
Expand description

Category on NSString.

Provided Methods§

Source

unsafe fn sizeWithAttributes( &self, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, ) -> CGSize

Available on crate feature objc2-core-foundation only.
Source

unsafe fn drawAtPoint_withAttributes( &self, point: CGPoint, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )

Available on crate feature objc2-core-foundation only.
Source

unsafe fn drawInRect_withAttributes( &self, rect: CGRect, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )

Available on crate feature objc2-core-foundation only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSStringDrawing for NSString

Implementors§