NSTextAttachmentCell class interface

NSTextAttachmentCell

Constructors

NSTextAttachmentCell.castFrom(ObjCObjectBase other)
Constructs a NSTextAttachmentCell that points to the same underlying object as other.
NSTextAttachmentCell.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSTextAttachmentCell 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
attachment → ObjCProtocolMethod<NSTextAttachment? Function()>
attachment
final
cellBaselineOffset → ObjCProtocolMethod<CGPoint Function()>
cellBaselineOffset
final
cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex_ → ObjCProtocolMethod<NSRect Function(NSTextContainer, NSRect, NSPoint, DartNSUInteger)>
cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:
final
cellSize → ObjCProtocolMethod<CGSize Function()>
cellSize
final
drawWithFrame_inView_ → ObjCProtocolListenableMethod<void Function(NSRect, NSView?)>
drawWithFrame:inView:
final
drawWithFrame_inView_characterIndex_ → ObjCProtocolListenableMethod<void Function(NSRect, NSView?, DartNSUInteger)>
drawWithFrame:inView:characterIndex:
final
drawWithFrame_inView_characterIndex_layoutManager_ → ObjCProtocolListenableMethod<void Function(NSRect, NSView?, DartNSUInteger, NSLayoutManager)>
drawWithFrame:inView:characterIndex:layoutManager:
final
highlight_withFrame_inView_ → ObjCProtocolListenableMethod<void Function(bool, NSRect, NSView?)>
highlight:withFrame:inView:
final
setAttachment_ → ObjCProtocolListenableMethod<void Function(NSTextAttachment?)>
setAttachment:
final
trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp_ → ObjCProtocolMethod<bool Function(NSEvent, NSRect, NSView?, DartNSUInteger, bool)>
trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp:
final
trackMouse_inRect_ofView_untilMouseUp_ → ObjCProtocolMethod<bool Function(NSEvent, NSRect, NSView?, bool)>
trackMouse:inRect:ofView:untilMouseUp:
final
wantsToTrackMouse → ObjCProtocolMethod<bool Function()>
wantsToTrackMouse
final
wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex_ → ObjCProtocolMethod<bool Function(NSEvent, NSRect, NSView?, DartNSUInteger)>
wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:
final

Static Methods

addToBuilder(ObjCProtocolBuilder builder, {required void drawWithFrame_inView_(NSRect, NSView?), required bool wantsToTrackMouse(), required void highlight_withFrame_inView_(bool, NSRect, NSView?), required bool trackMouse_inRect_ofView_untilMouseUp_(NSEvent, NSRect, NSView?, bool), required CGSize cellSize(), required CGPoint cellBaselineOffset(), required NSTextAttachment? attachment(), required void setAttachment_(NSTextAttachment?), required void drawWithFrame_inView_characterIndex_(NSRect, NSView?, DartNSUInteger), required void drawWithFrame_inView_characterIndex_layoutManager_(NSRect, NSView?, DartNSUInteger, NSLayoutManager), required bool wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex_(NSEvent, NSRect, NSView?, DartNSUInteger), required bool trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp_(NSEvent, NSRect, NSView?, DartNSUInteger, bool), required NSRect cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex_(NSTextContainer, NSRect, NSPoint, DartNSUInteger), bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSTextAttachmentCell protocol to an existing objc.ObjCProtocolBuilder.
addToBuilderAsBlocking(ObjCProtocolBuilder builder, {required void drawWithFrame_inView_(NSRect, NSView?), required bool wantsToTrackMouse(), required void highlight_withFrame_inView_(bool, NSRect, NSView?), required bool trackMouse_inRect_ofView_untilMouseUp_(NSEvent, NSRect, NSView?, bool), required CGSize cellSize(), required CGPoint cellBaselineOffset(), required NSTextAttachment? attachment(), required void setAttachment_(NSTextAttachment?), required void drawWithFrame_inView_characterIndex_(NSRect, NSView?, DartNSUInteger), required void drawWithFrame_inView_characterIndex_layoutManager_(NSRect, NSView?, DartNSUInteger, NSLayoutManager), required bool wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex_(NSEvent, NSRect, NSView?, DartNSUInteger), required bool trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp_(NSEvent, NSRect, NSView?, DartNSUInteger, bool), required NSRect cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex_(NSTextContainer, NSRect, NSPoint, DartNSUInteger), bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSTextAttachmentCell protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be.
addToBuilderAsListener(ObjCProtocolBuilder builder, {required void drawWithFrame_inView_(NSRect, NSView?), required bool wantsToTrackMouse(), required void highlight_withFrame_inView_(bool, NSRect, NSView?), required bool trackMouse_inRect_ofView_untilMouseUp_(NSEvent, NSRect, NSView?, bool), required CGSize cellSize(), required CGPoint cellBaselineOffset(), required NSTextAttachment? attachment(), required void setAttachment_(NSTextAttachment?), required void drawWithFrame_inView_characterIndex_(NSRect, NSView?, DartNSUInteger), required void drawWithFrame_inView_characterIndex_layoutManager_(NSRect, NSView?, DartNSUInteger, NSLayoutManager), required bool wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex_(NSEvent, NSRect, NSView?, DartNSUInteger), required bool trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp_(NSEvent, NSRect, NSView?, DartNSUInteger, bool), required NSRect cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex_(NSTextContainer, NSRect, NSPoint, DartNSUInteger), bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSTextAttachmentCell protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as listeners will be.
conformsTo(ObjCObjectBase obj) → bool
Returns whether obj is an instance of NSTextAttachmentCell.
implement({required void drawWithFrame_inView_(NSRect, NSView?), required bool wantsToTrackMouse(), required void highlight_withFrame_inView_(bool, NSRect, NSView?), required bool trackMouse_inRect_ofView_untilMouseUp_(NSEvent, NSRect, NSView?, bool), required CGSize cellSize(), required CGPoint cellBaselineOffset(), required NSTextAttachment? attachment(), required void setAttachment_(NSTextAttachment?), required void drawWithFrame_inView_characterIndex_(NSRect, NSView?, DartNSUInteger), required void drawWithFrame_inView_characterIndex_layoutManager_(NSRect, NSView?, DartNSUInteger, NSLayoutManager), required bool wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex_(NSEvent, NSRect, NSView?, DartNSUInteger), required bool trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp_(NSEvent, NSRect, NSView?, DartNSUInteger, bool), required NSRect cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex_(NSTextContainer, NSRect, NSPoint, DartNSUInteger), bool $keepIsolateAlive = true}) → NSTextAttachmentCell
Builds an object that implements the NSTextAttachmentCell protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.
implementAsBlocking({required void drawWithFrame_inView_(NSRect, NSView?), required bool wantsToTrackMouse(), required void highlight_withFrame_inView_(bool, NSRect, NSView?), required bool trackMouse_inRect_ofView_untilMouseUp_(NSEvent, NSRect, NSView?, bool), required CGSize cellSize(), required CGPoint cellBaselineOffset(), required NSTextAttachment? attachment(), required void setAttachment_(NSTextAttachment?), required void drawWithFrame_inView_characterIndex_(NSRect, NSView?, DartNSUInteger), required void drawWithFrame_inView_characterIndex_layoutManager_(NSRect, NSView?, DartNSUInteger, NSLayoutManager), required bool wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex_(NSEvent, NSRect, NSView?, DartNSUInteger), required bool trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp_(NSEvent, NSRect, NSView?, DartNSUInteger, bool), required NSRect cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex_(NSTextContainer, NSRect, NSPoint, DartNSUInteger), bool $keepIsolateAlive = true}) → NSTextAttachmentCell
Builds an object that implements the NSTextAttachmentCell protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as blocking listeners will be.
implementAsListener({required void drawWithFrame_inView_(NSRect, NSView?), required bool wantsToTrackMouse(), required void highlight_withFrame_inView_(bool, NSRect, NSView?), required bool trackMouse_inRect_ofView_untilMouseUp_(NSEvent, NSRect, NSView?, bool), required CGSize cellSize(), required CGPoint cellBaselineOffset(), required NSTextAttachment? attachment(), required void setAttachment_(NSTextAttachment?), required void drawWithFrame_inView_characterIndex_(NSRect, NSView?, DartNSUInteger), required void drawWithFrame_inView_characterIndex_layoutManager_(NSRect, NSView?, DartNSUInteger, NSLayoutManager), required bool wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex_(NSEvent, NSRect, NSView?, DartNSUInteger), required bool trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp_(NSEvent, NSRect, NSView?, DartNSUInteger, bool), required NSRect cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex_(NSTextContainer, NSRect, NSPoint, DartNSUInteger), bool $keepIsolateAlive = true}) → NSTextAttachmentCell
Builds an object that implements the NSTextAttachmentCell protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as listeners will be.