Skip to main content

NSOutlineViewDelegate

Trait NSOutlineViewDelegate 

Source
pub unsafe trait NSOutlineViewDelegate: NSControlTextEditingDelegate + MainThreadOnly {
Show 39 methods // Provided methods unsafe fn outlineView_viewForTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> Option<Retained<NSView>> where Self: Sized + Message { ... } unsafe fn outlineView_rowViewForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> Option<Retained<NSTableRowView>> where Self: Sized + Message { ... } fn outlineView_didAddRowView_forRow( &self, outline_view: &NSOutlineView, row_view: &NSTableRowView, row: NSInteger, ) where Self: Sized + Message { ... } fn outlineView_didRemoveRowView_forRow( &self, outline_view: &NSOutlineView, row_view: &NSTableRowView, row: NSInteger, ) where Self: Sized + Message { ... } unsafe fn outlineView_willDisplayCell_forTableColumn_item( &self, outline_view: &NSOutlineView, cell: &AnyObject, table_column: Option<&NSTableColumn>, item: &AnyObject, ) where Self: Sized + Message { ... } unsafe fn outlineView_shouldEditTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } fn selectionShouldChangeInOutlineView( &self, outline_view: &NSOutlineView, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_shouldSelectItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } fn outlineView_selectionIndexesForProposedSelection( &self, outline_view: &NSOutlineView, proposed_selection_indexes: &NSIndexSet, ) -> Retained<NSIndexSet> where Self: Sized + Message { ... } fn outlineView_shouldSelectTableColumn( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, ) -> bool where Self: Sized + Message { ... } fn outlineView_mouseDownInHeaderOfTableColumn( &self, outline_view: &NSOutlineView, table_column: &NSTableColumn, ) where Self: Sized + Message { ... } fn outlineView_didClickTableColumn( &self, outline_view: &NSOutlineView, table_column: &NSTableColumn, ) where Self: Sized + Message { ... } fn outlineView_didDragTableColumn( &self, outline_view: &NSOutlineView, table_column: &NSTableColumn, ) where Self: Sized + Message { ... } unsafe fn outlineView_toolTipForCell_rect_tableColumn_item_mouseLocation( &self, outline_view: &NSOutlineView, cell: &NSCell, rect: NSRectPointer, table_column: Option<&NSTableColumn>, item: &AnyObject, mouse_location: NSPoint, ) -> Retained<NSString> where Self: Sized + Message { ... } unsafe fn outlineView_heightOfRowByItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> CGFloat where Self: Sized + Message { ... } unsafe fn outlineView_tintConfigurationForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> Option<Retained<NSTintConfiguration>> where Self: Sized + Message { ... } unsafe fn outlineView_typeSelectStringForTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> Option<Retained<NSString>> where Self: Sized + Message { ... } unsafe fn outlineView_nextTypeSelectMatchFromItem_toItem_forString( &self, outline_view: &NSOutlineView, start_item: &AnyObject, end_item: &AnyObject, search_string: &NSString, ) -> Option<Retained<AnyObject>> where Self: Sized + Message { ... } fn outlineView_shouldTypeSelectForEvent_withCurrentSearchString( &self, outline_view: &NSOutlineView, event: &NSEvent, search_string: Option<&NSString>, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_shouldShowCellExpansionForTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_shouldTrackCell_forTableColumn_item( &self, outline_view: &NSOutlineView, cell: &NSCell, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_dataCellForTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> Option<Retained<NSCell>> where Self: Sized + Message { ... } unsafe fn outlineView_isGroupItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_shouldExpandItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_shouldCollapseItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_willDisplayOutlineCell_forTableColumn_item( &self, outline_view: &NSOutlineView, cell: &AnyObject, table_column: Option<&NSTableColumn>, item: &AnyObject, ) where Self: Sized + Message { ... } fn outlineView_sizeToFitWidthOfColumn( &self, outline_view: &NSOutlineView, column: NSInteger, ) -> CGFloat where Self: Sized + Message { ... } fn outlineView_shouldReorderColumn_toColumn( &self, outline_view: &NSOutlineView, column_index: NSInteger, new_column_index: NSInteger, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_shouldShowOutlineCellForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } fn outlineView_userCanChangeVisibilityOfTableColumn( &self, outline_view: &NSOutlineView, column: &NSTableColumn, ) -> bool where Self: Sized + Message { ... } fn outlineView_userDidChangeVisibilityOfTableColumns( &self, outline_view: &NSOutlineView, columns: &NSArray<NSTableColumn>, ) where Self: Sized + Message { ... } fn outlineViewSelectionDidChange(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn outlineViewColumnDidMove(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn outlineViewColumnDidResize(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn outlineViewSelectionIsChanging(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn outlineViewItemWillExpand(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn outlineViewItemDidExpand(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn outlineViewItemWillCollapse(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn outlineViewItemDidCollapse(&self, notification: &NSNotification) where Self: Sized + Message { ... }
}
Available on crate features NSControl and NSOutlineView only.
Expand description

Provided Methods§

Source

unsafe fn outlineView_viewForTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> Option<Retained<NSView>>
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_rowViewForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> Option<Retained<NSTableRowView>>
where Self: Sized + Message,

Available on crate features NSResponder and NSTableRowView and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

fn outlineView_didAddRowView_forRow( &self, outline_view: &NSOutlineView, row_view: &NSTableRowView, row: NSInteger, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTableRowView and NSTableView and NSView only.
Source

fn outlineView_didRemoveRowView_forRow( &self, outline_view: &NSOutlineView, row_view: &NSTableRowView, row: NSInteger, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTableRowView and NSTableView and NSView only.
Source

unsafe fn outlineView_willDisplayCell_forTableColumn_item( &self, outline_view: &NSOutlineView, cell: &AnyObject, table_column: Option<&NSTableColumn>, item: &AnyObject, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety
  • cell should be of the correct type.
  • item should be of the correct type.
Source

unsafe fn outlineView_shouldEditTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

fn selectionShouldChangeInOutlineView( &self, outline_view: &NSOutlineView, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
Source

unsafe fn outlineView_shouldSelectItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

fn outlineView_selectionIndexesForProposedSelection( &self, outline_view: &NSOutlineView, proposed_selection_indexes: &NSIndexSet, ) -> Retained<NSIndexSet>
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
Source

fn outlineView_shouldSelectTableColumn( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
Source

fn outlineView_mouseDownInHeaderOfTableColumn( &self, outline_view: &NSOutlineView, table_column: &NSTableColumn, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
Source

fn outlineView_didClickTableColumn( &self, outline_view: &NSOutlineView, table_column: &NSTableColumn, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
Source

fn outlineView_didDragTableColumn( &self, outline_view: &NSOutlineView, table_column: &NSTableColumn, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
Source

unsafe fn outlineView_toolTipForCell_rect_tableColumn_item_mouseLocation( &self, outline_view: &NSOutlineView, cell: &NSCell, rect: NSRectPointer, table_column: Option<&NSTableColumn>, item: &AnyObject, mouse_location: NSPoint, ) -> Retained<NSString>
where Self: Sized + Message,

Available on crate features NSCell and NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety
  • rect must be a valid pointer.
  • item should be of the correct type.
Source

unsafe fn outlineView_heightOfRowByItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> CGFloat
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView and objc2-core-foundation only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_tintConfigurationForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> Option<Retained<NSTintConfiguration>>
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSTintConfiguration and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_typeSelectStringForTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_nextTypeSelectMatchFromItem_toItem_forString( &self, outline_view: &NSOutlineView, start_item: &AnyObject, end_item: &AnyObject, search_string: &NSString, ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
§Safety
  • start_item should be of the correct type.
  • end_item should be of the correct type.
Source

fn outlineView_shouldTypeSelectForEvent_withCurrentSearchString( &self, outline_view: &NSOutlineView, event: &NSEvent, search_string: Option<&NSString>, ) -> bool
where Self: Sized + Message,

Available on crate features NSEvent and NSResponder and NSTableView and NSView only.
Source

unsafe fn outlineView_shouldShowCellExpansionForTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_shouldTrackCell_forTableColumn_item( &self, outline_view: &NSOutlineView, cell: &NSCell, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> bool
where Self: Sized + Message,

Available on crate features NSCell and NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_dataCellForTableColumn_item( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: &AnyObject, ) -> Option<Retained<NSCell>>
where Self: Sized + Message,

Available on crate features NSCell and NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_isGroupItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_shouldExpandItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_shouldCollapseItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

unsafe fn outlineView_willDisplayOutlineCell_forTableColumn_item( &self, outline_view: &NSOutlineView, cell: &AnyObject, table_column: Option<&NSTableColumn>, item: &AnyObject, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety
  • cell should be of the correct type.
  • item should be of the correct type.
Source

fn outlineView_sizeToFitWidthOfColumn( &self, outline_view: &NSOutlineView, column: NSInteger, ) -> CGFloat
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView and objc2-core-foundation only.
Source

fn outlineView_shouldReorderColumn_toColumn( &self, outline_view: &NSOutlineView, column_index: NSInteger, new_column_index: NSInteger, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
Source

unsafe fn outlineView_shouldShowOutlineCellForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableView and NSView only.
§Safety

item should be of the correct type.

Source

fn outlineView_userCanChangeVisibilityOfTableColumn( &self, outline_view: &NSOutlineView, column: &NSTableColumn, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
Source

fn outlineView_userDidChangeVisibilityOfTableColumns( &self, outline_view: &NSOutlineView, columns: &NSArray<NSTableColumn>, )
where Self: Sized + Message,

Available on crate features NSResponder and NSTableColumn and NSTableView and NSView only.
Source

fn outlineViewSelectionDidChange(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn outlineViewColumnDidMove(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn outlineViewColumnDidResize(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn outlineViewSelectionIsChanging(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn outlineViewItemWillExpand(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn outlineViewItemDidExpand(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn outlineViewItemWillCollapse(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn outlineViewItemDidCollapse(&self, notification: &NSNotification)
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSOutlineViewDelegate

Source§

impl ProtocolType for dyn NSOutlineViewDelegate

Source§

const NAME: &'static str = "NSOutlineViewDelegate"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSOutlineViewDelegate for ProtocolObject<T>

Implementors§