summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-22 07:54:44 -0600
committerJeff Carr <[email protected]>2024-02-22 07:54:44 -0600
commit647bb86717fb25fc3a02890df70d5a16c7ccce1c (patch)
tree3fae33b03c5bcffbda0213d37f648c46d31664f0
parent1e54385f2a6529d25be4da130909dd56ac5f583b (diff)
thoughts on how to make tables
-rw-r--r--table.go35
1 files changed, 35 insertions, 0 deletions
diff --git a/table.go b/table.go
new file mode 100644
index 0000000..292bdd1
--- /dev/null
+++ b/table.go
@@ -0,0 +1,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)
+*/
+