pub unsafe trait NSStringDrawingDeprecated:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn drawWithRect_options_attributes(
&self,
rect: NSRect,
options: NSStringDrawingOptions,
attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) { ... }
unsafe fn boundingRectWithSize_options_attributes(
&self,
size: NSSize,
options: NSStringDrawingOptions,
attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
) -> NSRect { ... }
}
Available on crate feature
NSStringDrawing
only.Expand description
Category on NSString
.
********************** Deprecated ***********************
Provided Methods§
unsafe fn drawWithRect_options_attributes( &self, rect: NSRect, options: NSStringDrawingOptions, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )
unsafe fn boundingRectWithSize_options_attributes( &self, size: NSSize, options: NSStringDrawingOptions, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, ) -> NSRect
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.