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§
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.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.