// a table is a grid with X columns and 1 row of header names // that means that the toolkits might be able to sort the table // pushing traditional application development to the display // is that a good idea? package gui // should this be a gadget or in here with the widget primatives? // a table is a group of widgets. Then again, Grid & Box 'widgets' are // really groups of widgets also /* mytable := NewTable(5) // make a table with 5 things type mytable struct { first TableRow(1, Widget.TextBox, "First Name") song TableRow(2, Widget.Label, "Favorite Song") func (t *Table) NewRow() *TableRow { r := new(myRow) r.first = r.Cell1 = whatever widget type first is r.Cell2 = whatever widget type song is type songTable TableDef { first TableCell `default:string` song TableCell GuiPlugin string `arg:"Label" header:"Favorite Song"` } func makeSongTable() { tb := NewTable(5) */