NSTextAttachmentLayout class interface

NSTextAttachmentLayout

Implementers

Constructors

NSTextAttachmentLayout.castFrom(ObjCObjectBase other)
Constructs a NSTextAttachmentLayout that points to the same underlying object as other.
NSTextAttachmentLayout.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSTextAttachmentLayout that wraps the given raw object pointer.

Properties

hashCode → int
The hash code for this object.
no setterinherited
ref → ObjCObjectRef
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

$protocol → Protocol
Returns the objc.Protocol object for this protocol.
no setter
attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position_ → ObjCProtocolMethod<CGRect Function(NSDictionary, NSTextLocation, NSTextContainer?, CGRect, CGPoint)>
attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:
final
imageForBounds_attributes_location_textContainer_ → ObjCProtocolMethod<NSImage? Function(CGRect, NSDictionary, NSTextLocation, NSTextContainer?)>
imageForBounds:attributes:location:textContainer:
final
viewProviderForParentView_location_textContainer_ → ObjCProtocolMethod<NSTextAttachmentViewProvider? Function(NSView?, NSTextLocation, NSTextContainer?)>
viewProviderForParentView:location:textContainer:
final

Static Methods

addToBuilder(ObjCProtocolBuilder builder, {required NSImage? imageForBounds_attributes_location_textContainer_(CGRect, NSDictionary, NSTextLocation, NSTextContainer?), required CGRect attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position_(NSDictionary, NSTextLocation, NSTextContainer?, CGRect, CGPoint), required NSTextAttachmentViewProvider? viewProviderForParentView_location_textContainer_(NSView?, NSTextLocation, NSTextContainer?), bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSTextAttachmentLayout protocol to an existing objc.ObjCProtocolBuilder.
conformsTo(ObjCObjectBase obj) → bool
Returns whether obj is an instance of NSTextAttachmentLayout.
implement({required NSImage? imageForBounds_attributes_location_textContainer_(CGRect, NSDictionary, NSTextLocation, NSTextContainer?), required CGRect attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position_(NSDictionary, NSTextLocation, NSTextContainer?, CGRect, CGPoint), required NSTextAttachmentViewProvider? viewProviderForParentView_location_textContainer_(NSView?, NSTextLocation, NSTextContainer?), bool $keepIsolateAlive = true}) → NSTextAttachmentLayout
Builds an object that implements the NSTextAttachmentLayout protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.