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§

source

unsafe fn drawWithFrame_inView( &self, cell_frame: NSRect, control_view: Option<&NSView>, mtm: MainThreadMarker )
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn wantsToTrackMouse(&self, mtm: MainThreadMarker) -> bool
where Self: Sized + Message,

source

unsafe fn highlight_withFrame_inView( &self, flag: bool, cell_frame: NSRect, control_view: Option<&NSView>, mtm: MainThreadMarker )
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

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,

Available on crate features NSEvent and NSResponder and NSView only.
source

unsafe fn cellSize(&self) -> NSSize
where Self: Sized + Message,

source

unsafe fn cellBaselineOffset(&self) -> NSPoint
where Self: Sized + Message,

source

unsafe fn attachment(&self) -> Option<Retained<NSTextAttachment>>
where Self: Sized + Message,

Available on crate feature NSTextAttachment only.
source

unsafe fn setAttachment(&self, attachment: Option<&NSTextAttachment>)
where Self: Sized + Message,

Available on crate feature NSTextAttachment only.
source

unsafe fn drawWithFrame_inView_characterIndex( &self, cell_frame: NSRect, control_view: Option<&NSView>, char_index: NSUInteger, mtm: MainThreadMarker )
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

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,

Available on crate features NSLayoutManager and NSResponder and NSView only.
source

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,

Available on crate features NSEvent and NSResponder and NSView only.
source

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,

Available on crate features NSEvent and NSResponder and NSView only.
source

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 NSTextContainer only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTextAttachmentCellProtocol

source§

const NAME: &'static str = "NSTextAttachmentCell"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn NSTextAttachmentCellProtocol

Implementations on Foreign Types§

source§

impl<T> NSTextAttachmentCellProtocol for ProtocolObject<T>

Implementors§

source§

impl NSTextAttachmentCellProtocol for NSTextAttachmentCell

Available on crate feature NSCell only.