Trait NSStringNSExtendedStringDrawing

Source
pub unsafe trait NSStringNSExtendedStringDrawing:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn drawWithRect_options_attributes_context(
        &self,
        rect: CGRect,
        options: NSStringDrawingOptions,
        attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
        context: Option<&NSStringDrawingContext>,
    ) { ... }
    unsafe fn boundingRectWithSize_options_attributes_context(
        &self,
        size: CGSize,
        options: NSStringDrawingOptions,
        attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
        context: Option<&NSStringDrawingContext>,
    ) -> CGRect { ... }
}
Available on crate feature NSStringDrawing only.
Expand description

Category “NSExtendedStringDrawing” on NSString.

Provided Methods§

Source

unsafe fn drawWithRect_options_attributes_context( &self, rect: CGRect, options: NSStringDrawingOptions, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, context: Option<&NSStringDrawingContext>, )

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

unsafe fn boundingRectWithSize_options_attributes_context( &self, size: CGSize, options: NSStringDrawingOptions, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, context: Option<&NSStringDrawingContext>, ) -> CGRect

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 NSStringNSExtendedStringDrawing for NSString

Implementors§