26#include <Objectively/IndexSet.h>
27#include <Objectively/Array.h>
50typedef struct TableViewInterface TableViewInterface;
179struct TableViewInterface {
184 ControlInterface controlInterface;
202 void (*addColumnWithIdentifier)(
TableView *self,
const char *identifier);
237 void (*deselectRowAtIndex)(
TableView *self,
size_t index);
246 void (*deselectRowsAtIndexes)(
TableView *self,
const IndexSet *indexSet);
264 SDL_Size (*naturalSize)(
const TableView *self);
292 ssize_t (*rowAtPoint)(
const TableView *self,
const SDL_Point *point);
308 IndexSet *(*selectedRowIndexes)(
const TableView *self);
317 void (*selectRowAtIndex)(
TableView *self,
size_t index);
326 void (*selectRowsAtIndexes)(
TableView *self,
const IndexSet *indexes);
Controls are Views which capture and respond to events.
StackViews are containers that manage the arrangement of their subviews.
Each row in a TableView is comprised of TableCellViews.
static IndexSet * selectedRowIndexes(const TableView *self)
OBJECTIVELYMVC_EXPORT Class * _TableView(void)
#define OBJECTIVELYMVC_EXPORT
Controls are Views which capture and respond to events.
StackViews are containers that manage the arrangement of their subviews.
Each row in a TableView is comprised of TableCellViews.
Columns provide alignment, spacing and sorting hints for TableView instances.
The TableView data source protocol.
ident self
The data source self-reference.
ident(* valueForColumnAndRow)(const TableView *tableView, const TableColumn *column, size_t row)
Called by the TableView for the associated value of a cell.
size_t(* numberOfRows)(const TableView *tableView)
The TableView delegate protocol.
void(* didSelectRowsAtIndexes)(TableView *tableView, const IndexSet *selectedRowIndexes)
Called by the TableView when the row selection changes.
void(* didSetSortColumn)(TableView *tableView)
Called by the TableView when the sort column or order changes.
ident self
The delegate self-reference.
TableViews provide sortable, tabular presentations of data.
Control control
The superclass.
ScrollView * scrollView
The scroll view.
TableViewInterface * interface
The interface.
TableViewDelegate delegate
The delegate.
TableColumn * sortColumn
The column to sort by.
TableViewDataSource dataSource
The data source.
Array * columns
The column definitions.
StackView * contentView
The content View.
TableHeaderView * headerView
The header.