pub unsafe trait NSTextAttachmentCellProtocol: NSObjectProtocol {
Show 13 methods
// Provided methods
unsafe fn drawWithFrame_inView(
&self,
cell_frame: NSRect,
control_view: Option<&NSView>,
mtm: MainThreadMarker
)
where Self: Sized + Message { ... }
unsafe fn wantsToTrackMouse(&self, mtm: MainThreadMarker) -> bool
where Self: Sized + Message { ... }
unsafe fn highlight_withFrame_inView(
&self,
flag: bool,
cell_frame: NSRect,
control_view: Option<&NSView>,
mtm: MainThreadMarker
)
where Self: Sized + Message { ... }
unsafe fn trackMouse_inRect_ofView_untilMouseUp(
&self,
the_event: &NSEvent,
cell_frame: NSRect,
control_view: Option<&NSView>,
flag: bool,
mtm: MainThreadMarker
) -> bool
where Self: Sized + Message { ... }
unsafe fn cellSize(&self) -> NSSize
where Self: Sized + Message { ... }
unsafe fn cellBaselineOffset(&self) -> NSPoint
where Self: Sized + Message { ... }
unsafe fn attachment(&self) -> Option<Retained<NSTextAttachment>>
where Self: Sized + Message { ... }
unsafe fn setAttachment(&self, attachment: Option<&NSTextAttachment>)
where Self: Sized + Message { ... }
unsafe fn drawWithFrame_inView_characterIndex(
&self,
cell_frame: NSRect,
control_view: Option<&NSView>,
char_index: NSUInteger,
mtm: MainThreadMarker
)
where Self: Sized + Message { ... }
unsafe fn drawWithFrame_inView_characterIndex_layoutManager(
&self,
cell_frame: NSRect,
control_view: Option<&NSView>,
char_index: NSUInteger,
layout_manager: &NSLayoutManager,
mtm: MainThreadMarker
)
where Self: Sized + Message { ... }
unsafe fn wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex(
&self,
the_event: &NSEvent,
cell_frame: NSRect,
control_view: Option<&NSView>,
char_index: NSUInteger,
mtm: MainThreadMarker
) -> bool
where Self: Sized + Message { ... }
unsafe fn trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp(
&self,
the_event: &NSEvent,
cell_frame: NSRect,
control_view: Option<&NSView>,
char_index: NSUInteger,
flag: bool,
mtm: MainThreadMarker
) -> bool
where Self: Sized + Message { ... }
unsafe fn cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex(
&self,
text_container: &NSTextContainer,
line_frag: NSRect,
position: NSPoint,
char_index: NSUInteger
) -> NSRect
where Self: Sized + Message { ... }
}
Available on crate feature
NSTextAttachmentCell
only.Provided Methods§
unsafe fn drawWithFrame_inView( &self, cell_frame: NSRect, control_view: Option<&NSView>, mtm: MainThreadMarker )
Available on crate features
NSResponder
and NSView
only.unsafe fn wantsToTrackMouse(&self, mtm: MainThreadMarker) -> bool
unsafe fn highlight_withFrame_inView( &self, flag: bool, cell_frame: NSRect, control_view: Option<&NSView>, mtm: MainThreadMarker )
Available on crate features
NSResponder
and NSView
only.unsafe fn trackMouse_inRect_ofView_untilMouseUp( &self, the_event: &NSEvent, cell_frame: NSRect, control_view: Option<&NSView>, flag: bool, mtm: MainThreadMarker ) -> bool
Available on crate features
NSEvent
and NSResponder
and NSView
only.unsafe fn cellSize(&self) -> NSSize
unsafe fn cellBaselineOffset(&self) -> NSPoint
unsafe fn attachment(&self) -> Option<Retained<NSTextAttachment>>
Available on crate feature
NSTextAttachment
only.unsafe fn setAttachment(&self, attachment: Option<&NSTextAttachment>)
Available on crate feature
NSTextAttachment
only.unsafe fn drawWithFrame_inView_characterIndex( &self, cell_frame: NSRect, control_view: Option<&NSView>, char_index: NSUInteger, mtm: MainThreadMarker )
Available on crate features
NSResponder
and NSView
only.unsafe fn drawWithFrame_inView_characterIndex_layoutManager( &self, cell_frame: NSRect, control_view: Option<&NSView>, char_index: NSUInteger, layout_manager: &NSLayoutManager, mtm: MainThreadMarker )
Available on crate features
NSLayoutManager
and NSResponder
and NSView
only.unsafe fn wantsToTrackMouseForEvent_inRect_ofView_atCharacterIndex( &self, the_event: &NSEvent, cell_frame: NSRect, control_view: Option<&NSView>, char_index: NSUInteger, mtm: MainThreadMarker ) -> bool
Available on crate features
NSEvent
and NSResponder
and NSView
only.unsafe fn trackMouse_inRect_ofView_atCharacterIndex_untilMouseUp( &self, the_event: &NSEvent, cell_frame: NSRect, control_view: Option<&NSView>, char_index: NSUInteger, flag: bool, mtm: MainThreadMarker ) -> bool
Available on crate features
NSEvent
and NSResponder
and NSView
only.unsafe fn cellFrameForTextContainer_proposedLineFragment_glyphPosition_characterIndex( &self, text_container: &NSTextContainer, line_frag: NSRect, position: NSPoint, char_index: NSUInteger ) -> NSRect
Available on crate feature
NSTextContainer
only.Trait Implementations§
source§impl ProtocolType for dyn NSTextAttachmentCellProtocol
impl ProtocolType for dyn NSTextAttachmentCellProtocol
impl<T> ImplementedBy<T> for dyn NSTextAttachmentCellProtocol
Implementations on Foreign Types§
impl<T> NSTextAttachmentCellProtocol for ProtocolObject<T>where
T: ?Sized + NSTextAttachmentCellProtocol,
Implementors§
impl NSTextAttachmentCellProtocol for NSTextAttachmentCell
Available on crate feature
NSCell
only.