diff options
| author | Jeff Carr <[email protected]> | 2019-05-31 22:28:02 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-31 22:28:02 -0700 |
| commit | a9c1b9321e19d28a1b0b0368094a7d648837d763 (patch) | |
| tree | 0408473c9ae6f533e668fdeaf32cb4d890d3ec36 /structs.go | |
| parent | 05ac24551744e0bd03d1f6556582df4fe31c8c5b (diff) | |
v0.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -71,13 +71,14 @@ type GuiData struct { // type GuiWindow struct { Action string -// Area *GuiArea // should be moved to GuiBox BoxMap map[string]*GuiBox Width int Height int + // andlabs/ui abstraction mapping UiWindow *ui.Window UiTab *ui.Tab // if this != nil, the window is 'tabbed' + GetText func() *ui.AttributedString } @@ -100,9 +101,6 @@ type GuiButton struct { // andlabs/ui abstraction mapping B *ui.Button FB *ui.FontButton - A *ui.Area // should be deprecated - W *ui.Window // should be deprecated - T *ui.Tab // should be deprecated } type GuiBox struct { @@ -110,6 +108,7 @@ type GuiBox struct { EntryMap map[string]*GuiEntry Area *GuiArea + // andlabs/ui abstraction mapping UiBox *ui.Box } @@ -120,13 +119,12 @@ type GuiEntry struct { Normalize func (string) string // function to 'normalize' the data B *GuiButton + Box *GuiBox Account *pb.Account VM *pb.Event_VM - E *ui.Entry - W *ui.Window // should be moved to *GuiWindow or GuiBox - T *ui.Tab // should be moved to *GuiWindow or GuiBox - + // andlabs/ui abstraction mapping + UiEntry *ui.Entry } // @@ -135,8 +133,8 @@ type GuiEntry struct { // AREA STRUCTURES START // type GuiArea struct{ - Window *GuiWindow // what window this area is in (should be GuiBox?) Button *GuiButton // what button handles mouse events + Box *GuiBox UiAttrstr *ui.AttributedString UiArea *ui.Area @@ -178,7 +176,6 @@ type TableData struct { lastRow int lastColumn int -// parentTab *ui.Tab } // @@ -231,6 +228,7 @@ type RowData struct { Status string // status of the row? /* // TODO: These may or may not be implementable + // depending on if it's possible to detect the bgcolor or what row is selected click func() // what function to call if the user clicks on it doubleclick func() // what function to call if the user double clicks on it */ |
