blob: 292bdd1973e86464672bc8071227361ca1fe3add (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// 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)
*/
|