Skip to main content

NSTableViewDelegate

Trait NSTableViewDelegate 

Source
pub unsafe trait NSTableViewDelegate: NSControlTextEditingDelegate {
Show 31 methods // Provided methods fn tableView_viewForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> Option<Retained<NSView>> where Self: Sized + Message { ... } fn tableView_rowViewForRow( &self, table_view: &NSTableView, row: NSInteger, ) -> Option<Retained<NSTableRowView>> where Self: Sized + Message { ... } fn tableView_didAddRowView_forRow( &self, table_view: &NSTableView, row_view: &NSTableRowView, row: NSInteger, ) where Self: Sized + Message { ... } fn tableView_didRemoveRowView_forRow( &self, table_view: &NSTableView, row_view: &NSTableRowView, row: NSInteger, ) where Self: Sized + Message { ... } unsafe fn tableView_willDisplayCell_forTableColumn_row( &self, table_view: &NSTableView, cell: &AnyObject, table_column: Option<&NSTableColumn>, row: NSInteger, ) where Self: Sized + Message { ... } fn tableView_shouldEditTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> bool where Self: Sized + Message { ... } unsafe fn tableView_toolTipForCell_rect_tableColumn_row_mouseLocation( &self, table_view: &NSTableView, cell: &NSCell, rect: NSRectPointer, table_column: Option<&NSTableColumn>, row: NSInteger, mouse_location: NSPoint, ) -> Retained<NSString> where Self: Sized + Message { ... } fn tableView_shouldShowCellExpansionForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> bool where Self: Sized + Message { ... } fn tableView_shouldTrackCell_forTableColumn_row( &self, table_view: &NSTableView, cell: &NSCell, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> bool where Self: Sized + Message { ... } fn tableView_dataCellForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> Option<Retained<NSCell>> where Self: Sized + Message { ... } fn selectionShouldChangeInTableView(&self, table_view: &NSTableView) -> bool where Self: Sized + Message { ... } fn tableView_shouldSelectRow( &self, table_view: &NSTableView, row: NSInteger, ) -> bool where Self: Sized + Message { ... } fn tableView_selectionIndexesForProposedSelection( &self, table_view: &NSTableView, proposed_selection_indexes: &NSIndexSet, ) -> Retained<NSIndexSet> where Self: Sized + Message { ... } fn tableView_shouldSelectTableColumn( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, ) -> bool where Self: Sized + Message { ... } fn tableView_mouseDownInHeaderOfTableColumn( &self, table_view: &NSTableView, table_column: &NSTableColumn, ) where Self: Sized + Message { ... } fn tableView_didClickTableColumn( &self, table_view: &NSTableView, table_column: &NSTableColumn, ) where Self: Sized + Message { ... } fn tableView_didDragTableColumn( &self, table_view: &NSTableView, table_column: &NSTableColumn, ) where Self: Sized + Message { ... } fn tableView_heightOfRow( &self, table_view: &NSTableView, row: NSInteger, ) -> CGFloat where Self: Sized + Message { ... } fn tableView_typeSelectStringForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> Option<Retained<NSString>> where Self: Sized + Message { ... } fn tableView_nextTypeSelectMatchFromRow_toRow_forString( &self, table_view: &NSTableView, start_row: NSInteger, end_row: NSInteger, search_string: &NSString, ) -> NSInteger where Self: Sized + Message { ... } fn tableView_shouldTypeSelectForEvent_withCurrentSearchString( &self, table_view: &NSTableView, event: &NSEvent, search_string: Option<&NSString>, ) -> bool where Self: Sized + Message { ... } fn tableView_isGroupRow( &self, table_view: &NSTableView, row: NSInteger, ) -> bool where Self: Sized + Message { ... } fn tableView_sizeToFitWidthOfColumn( &self, table_view: &NSTableView, column: NSInteger, ) -> CGFloat where Self: Sized + Message { ... } fn tableView_shouldReorderColumn_toColumn( &self, table_view: &NSTableView, column_index: NSInteger, new_column_index: NSInteger, ) -> bool where Self: Sized + Message { ... } fn tableView_rowActionsForRow_edge( &self, table_view: &NSTableView, row: NSInteger, edge: NSTableRowActionEdge, ) -> Retained<NSArray<NSTableViewRowAction>> where Self: Sized + Message { ... } fn tableView_userCanChangeVisibilityOfTableColumn( &self, table_view: &NSTableView, column: &NSTableColumn, ) -> bool where Self: Sized + Message { ... } fn tableView_userDidChangeVisibilityOfTableColumns( &self, table_view: &NSTableView, columns: &NSArray<NSTableColumn>, ) where Self: Sized + Message { ... } fn tableViewSelectionDidChange(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn tableViewColumnDidMove(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn tableViewColumnDidResize(&self, notification: &NSNotification) where Self: Sized + Message { ... } fn tableViewSelectionIsChanging(&self, notification: &NSNotification) where Self: Sized + Message { ... }
}
Available on crate features NSControl and NSTableView only.
Expand description

Provided Methods§

Source

fn tableView_viewForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> Option<Retained<NSView>>
where Self: Sized + Message,

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

fn tableView_rowViewForRow( &self, table_view: &NSTableView, row: NSInteger, ) -> Option<Retained<NSTableRowView>>
where Self: Sized + Message,

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

fn tableView_didAddRowView_forRow( &self, table_view: &NSTableView, row_view: &NSTableRowView, row: NSInteger, )
where Self: Sized + Message,

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

fn tableView_didRemoveRowView_forRow( &self, table_view: &NSTableView, row_view: &NSTableRowView, row: NSInteger, )
where Self: Sized + Message,

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

unsafe fn tableView_willDisplayCell_forTableColumn_row( &self, table_view: &NSTableView, cell: &AnyObject, table_column: Option<&NSTableColumn>, row: NSInteger, )
where Self: Sized + Message,

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

cell should be of the correct type.

Source

fn tableView_shouldEditTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> bool
where Self: Sized + Message,

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

unsafe fn tableView_toolTipForCell_rect_tableColumn_row_mouseLocation( &self, table_view: &NSTableView, cell: &NSCell, rect: NSRectPointer, table_column: Option<&NSTableColumn>, row: NSInteger, mouse_location: NSPoint, ) -> Retained<NSString>
where Self: Sized + Message,

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

rect must be a valid pointer.

Source

fn tableView_shouldShowCellExpansionForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> bool
where Self: Sized + Message,

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

fn tableView_shouldTrackCell_forTableColumn_row( &self, table_view: &NSTableView, cell: &NSCell, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> bool
where Self: Sized + Message,

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

fn tableView_dataCellForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> Option<Retained<NSCell>>
where Self: Sized + Message,

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

fn selectionShouldChangeInTableView(&self, table_view: &NSTableView) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn tableView_shouldSelectRow( &self, table_view: &NSTableView, row: NSInteger, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn tableView_selectionIndexesForProposedSelection( &self, table_view: &NSTableView, proposed_selection_indexes: &NSIndexSet, ) -> Retained<NSIndexSet>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn tableView_shouldSelectTableColumn( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, ) -> bool
where Self: Sized + Message,

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

fn tableView_mouseDownInHeaderOfTableColumn( &self, table_view: &NSTableView, table_column: &NSTableColumn, )
where Self: Sized + Message,

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

fn tableView_didClickTableColumn( &self, table_view: &NSTableView, table_column: &NSTableColumn, )
where Self: Sized + Message,

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

fn tableView_didDragTableColumn( &self, table_view: &NSTableView, table_column: &NSTableColumn, )
where Self: Sized + Message,

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

fn tableView_heightOfRow( &self, table_view: &NSTableView, row: NSInteger, ) -> CGFloat
where Self: Sized + Message,

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

fn tableView_typeSelectStringForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger, ) -> Option<Retained<NSString>>
where Self: Sized + Message,

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

fn tableView_nextTypeSelectMatchFromRow_toRow_forString( &self, table_view: &NSTableView, start_row: NSInteger, end_row: NSInteger, search_string: &NSString, ) -> NSInteger
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn tableView_shouldTypeSelectForEvent_withCurrentSearchString( &self, table_view: &NSTableView, event: &NSEvent, search_string: Option<&NSString>, ) -> bool
where Self: Sized + Message,

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

fn tableView_isGroupRow(&self, table_view: &NSTableView, row: NSInteger) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn tableView_sizeToFitWidthOfColumn( &self, table_view: &NSTableView, column: NSInteger, ) -> CGFloat
where Self: Sized + Message,

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

fn tableView_shouldReorderColumn_toColumn( &self, table_view: &NSTableView, column_index: NSInteger, new_column_index: NSInteger, ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn tableView_rowActionsForRow_edge( &self, table_view: &NSTableView, row: NSInteger, edge: NSTableRowActionEdge, ) -> Retained<NSArray<NSTableViewRowAction>>
where Self: Sized + Message,

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

fn tableView_userCanChangeVisibilityOfTableColumn( &self, table_view: &NSTableView, column: &NSTableColumn, ) -> bool
where Self: Sized + Message,

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

fn tableView_userDidChangeVisibilityOfTableColumns( &self, table_view: &NSTableView, columns: &NSArray<NSTableColumn>, )
where Self: Sized + Message,

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

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

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTableViewDelegate

Source§

impl ProtocolType for dyn NSTableViewDelegate

Source§

const NAME: &'static str = "NSTableViewDelegate"

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> NSTableViewDelegate for ProtocolObject<T>

Implementors§