Trait objc2_ui_kit::NSStringDrawing
source · pub unsafe trait NSStringDrawing: ClassType {
// Provided methods
unsafe fn sizeWithAttributes(
&self,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>
) -> CGSize
where Self: Sized + Message { ... }
unsafe fn drawAtPoint_withAttributes(
&self,
point: CGPoint,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>
)
where Self: Sized + Message { ... }
unsafe fn drawInRect_withAttributes(
&self,
rect: CGRect,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>
)
where Self: Sized + Message { ... }
}Available on crate feature
NSStringDrawing only.Expand description
Category on NSString.
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>> )
Object Safety§
This trait is not object safe.