Trait objc2_app_kit::NSStringDrawing
source · pub unsafe trait NSStringDrawing: ClassType {
// Provided methods
unsafe fn sizeWithAttributes(
&self,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>
) -> NSSize
where Self: Sized + Message { ... }
unsafe fn drawAtPoint_withAttributes(
&self,
point: NSPoint,
attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>
)
where Self: Sized + Message { ... }
unsafe fn drawInRect_withAttributes(
&self,
rect: NSRect,
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>> ) -> NSSize
unsafe fn drawAtPoint_withAttributes( &self, point: NSPoint, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>> )
unsafe fn drawInRect_withAttributes( &self, rect: NSRect, attrs: Option<&NSDictionary<NSAttributedStringKey, AnyObject>> )
Object Safety§
This trait is not object safe.