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§
unsafe fn sizeWithAttributes( &self, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, ) -> CGSize
Available on crate feature
objc2-core-foundation
only.unsafe fn drawAtPoint_withAttributes( &self, point: CGPoint, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )
Available on crate feature
objc2-core-foundation
only.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.