Trait NSTextAttachmentCellProtocol

Source
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.
Expand description

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.

Setter for attachment.

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. Read more
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§