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§
Sourceunsafe 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 drawWithRect_options_attributes_context( &self, rect: CGRect, options: NSStringDrawingOptions, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, context: Option<&NSStringDrawingContext>, )
objc2-core-foundation only.§Safety
attributes generic should be of the correct type.
Sourceunsafe 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.
unsafe fn boundingRectWithSize_options_attributes_context( &self, size: CGSize, options: NSStringDrawingOptions, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, context: Option<&NSStringDrawingContext>, ) -> CGRect
objc2-core-foundation only.§Safety
attributes generic should be of the correct type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".