diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-18 02:22:27 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-18 02:22:27 -0400 |
| commit | 58e95f239940c646dce75c2b978d077884b7d215 (patch) | |
| tree | d97819143dd15c8ca25213e79e54fa1bf9fe514b /redo/table.go | |
| parent | 3cad9aac25515dd3e6d526142db3e90c98d125d7 (diff) | |
Added Table.Selected()/Table.Select() and implemented them on Windows.
Diffstat (limited to 'redo/table.go')
| -rw-r--r-- | redo/table.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/redo/table.go b/redo/table.go index 4dee331..8720c14 100644 --- a/redo/table.go +++ b/redo/table.go @@ -39,7 +39,13 @@ type Table interface { // LoadImageList loads the given ImageList into the Table. // This function copies; changes to the ImageList made later will not be reflected by the Table. - LoadImageList(ImageList) + LoadImageList(imagelist ImageList) + + // Selected and Select get and set the currently selected item in the Table. + // Selected returns -1 if no item is selected. + // Pass -1 to Select to deselect all items. + Selected() int + Select(index int) } type tablebase struct { |
