ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
Data Fields
TableViewDataSource Struct Reference

The TableView data source protocol. More...

#include <TableView.h>

Data Fields

size_t(* numberOfRows )(const TableView *tableView)
 
ident self
 The data source self-reference. More...
 
ident(* valueForColumnAndRow )(const TableView *tableView, const TableColumn *column, size_t row)
 Called by the TableView for the associated value of a cell. More...
 

Detailed Description

The TableView data source protocol.

Definition at line 56 of file TableView.h.

Field Documentation

◆ numberOfRows

size_t(* TableViewDataSource::numberOfRows) (const TableView *tableView)
Parameters
tableViewThe TableView.
Returns
The number of rows in the TableView.

Definition at line 67 of file TableView.h.

◆ self

ident TableViewDataSource::self

The data source self-reference.

Definition at line 61 of file TableView.h.

◆ valueForColumnAndRow

ident(* TableViewDataSource::valueForColumnAndRow) (const TableView *tableView, const TableColumn *column, size_t row)

Called by the TableView for the associated value of a cell.

Parameters
tableViewThe TableView.
columThe Column.
rowThe row number.
Returns
The value for the cell at the given column and row number.

Definition at line 76 of file TableView.h.


The documentation for this struct was generated from the following file: