Commit Graph

24 Commits

Author SHA1 Message Date
Jeff Carr 5417c8f477 v0.4.2 more code cleanups and improvements
Add command line argv handling using go-arg
    make hello world dumb stupid simple again
    more swtiching to common code
    move debugging options to support go-args
    more debugging output cleanup
    more debugging cleanups
    fix null pointer crash
2022-11-05 10:19:04 -05:00
Jeff Carr c5735353a6 v0.4.1 set sane toolkit default look and feel
autogenerate README.md from doc.go (goreadme cmd)
    remove passing arguements on a mouse click()
    make defaults for padding, margin, stretchy, etc
    add a checkbox widget
    function rename to NewButton()
    keep cleaning up toolkit code
    fix date. I was somehow in the future

Signed-off-by: Jeff Carr <jcarr@wit.com>
2022-10-21 11:40:08 -05:00
Jeff Carr d28f0eb8c1 Squashed commit of the following:
all non binary tree structs are gone (almost all)
    Use names from https://en.wikipedia.org/wiki/Graphical_widget
    toolkit andlabs/ui is isolated from being accessable
        all direct references to andlabs are removed
    working dropdown widgets
    add debugging more buttons and windows
2022-10-20 06:55:42 -05:00
Jeff Carr 6286635049 Refactor to 'gui/toolkit/'
* add a example cmds/consolemouse
       uses a console button to launch the andlabs/ui
    * fix wrong return value in toolkit/NewLabel()
    * redirect STDIN output to a file
    * wonderful fix of Window() exit
    * finally remove the ancient stupid variables x & y
    * phase out struct 'box' and use 'node' instead
    * better names for things: use NewFoo() and NewBar()
2022-10-19 13:23:22 -05:00
Jeff Carr 390556e083 Change Node to Box 2022-10-11 11:25:46 -05:00
Jeff Carr c91d7d52b8 SMALL: some stuff hanging around
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-04 05:46:49 -05:00
Jeff Carr 12cc3882f5 GOOD: font button shows up again (doesn't do anything)
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-04 03:25:42 -05:00
Jeff Carr 2af6db4d6c GOOD: use global 'Stretchy' setting
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-04 02:23:41 -05:00
Jeff Carr 20899fc2b4 PANIC: remove almost all panic()s
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-04 00:12:48 -05:00
Jeff Carr 9c946630a1 WINDOW: try to properly destroy a window
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-03 01:44:32 -05:00
Jeff Carr 898874b0e9 CLEAN: out of the rabbit hole
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-01 00:24:56 -05:00
Jeff Carr 8c1c837879 CLEAN: remove GuiButton struct 2021-10-31 23:48:34 -05:00
Jeff Carr d6980daa81 BOX: kill GuiBox
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 21:07:36 -05:00
Jeff Carr f9c6083be4 BOX: keep removing GuiBox
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 20:07:26 -05:00
Jeff Carr b90d7b96c3 BOX: start removing GuiBox
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 19:39:57 -05:00
Jeff Carr f7ead697d3 REFACTOR: refactor everything to gui.Node struct
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 14:21:36 -05:00
Jeff Carr 9dc8d79062 DEBUG: add DumpMap()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-05 10:37:53 -05:00
Jeff Carr 999a8fd199 reimplement the color button
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-05 10:01:36 -07:00
Jeff Carr 584e3b60d4 make a buttonMap
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 22:22:04 -07:00
Jeff Carr abd061ae58 This might be stable enough to leave alone.
Up to this point it's been needing 10 patches
a day.

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 20:51:26 -07:00
Jeff Carr 5536e659ae see if an interface can store the outside values
also finally fixed the splash area logic

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 19:49:17 -07:00
Jeff Carr 1366012bc9 more deletions of old stuff
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 15:49:52 -07:00
Jeff Carr 1274211f20 almost complete 'CLEAN'. yet more code refactoring
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 15:19:53 -07:00
Jeff Carr 2af6fa52a4 finally cleaned out all protobuf references
this effort is almost done being 'cleaned'
of the code I started with. This library
is not perfect and lacks features from
andlabs/ui but it will work for our purposes

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 13:40:44 -07:00