diff options
Diffstat (limited to 'redo/table_darwin.go')
| -rw-r--r-- | redo/table_darwin.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redo/table_darwin.go b/redo/table_darwin.go index 1f889c0..bccaf1b 100644 --- a/redo/table_darwin.go +++ b/redo/table_darwin.go @@ -62,6 +62,18 @@ func (t *table) LoadImageList(i ImageList) { i.apply(&t.images) } +func (t *table) Selected() int { + t.RLock() + defer t.RUnlock() + return int(C.tableSelected(t._id)) +} + +func (t *table) Select(index int) { + t.RLock() + defer t.RUnlock() + C.tableSelect(t._id, C.intptr_t(index)) +} + //export goTableDataSource_getValue func goTableDataSource_getValue(data unsafe.Pointer, row C.intptr_t, col C.intptr_t, outtype *C.int) unsafe.Pointer { t := (*table)(data) |
