ui/eg
Noah fee6e1e105 New widget: ColorPicker, plus other changes
New properties are added to EventData for Supervisor events:

* Widget: a reference to the widget which is receiving the event.
* Clicked (bool): for MouseMove events records if the primary button is pressed.
* func RelativePoint(): returns a version of EventData.Point adjusted to be
  relative to the Widget (0,0 at the Widget's absolute position on screen).

Other changes:

* Destroy() method for the Widget interface: widgets that need to free up resources
  on teardown should define this, the BaseWidget provides a no-op implementation.
* Window.Resize() will properly resize a Window.
* Window.Center(w, h int) to easily center a window on screen.
2022-01-01 18:43:36 -08:00
..
colorpicker New widget: ColorPicker, plus other changes 2022-01-01 18:43:36 -08:00
forms Add SelectBox Widget 2021-06-06 13:44:05 -07:00
frame-place Update example apps and documentation 2021-06-03 12:27:48 -07:00
hello-world Update example apps and documentation 2021-06-03 12:27:48 -07:00
menus Update example apps and documentation 2021-06-03 12:27:48 -07:00
tabframe New Widget: TabFrame 2021-07-25 20:53:09 -07:00
themes Update example apps and documentation 2021-06-03 12:27:48 -07:00
tooltip Update example apps and documentation 2021-06-03 12:27:48 -07:00
wasm-common Menus and Menu Bars 2020-06-04 00:50:23 -07:00
windows Update example apps and documentation 2021-06-03 12:27:48 -07:00
DejaVuSans.ttf Add README, LICENSE and Examples 2019-12-27 16:06:24 -08:00
README.md New widget: ColorPicker, plus other changes 2022-01-01 18:43:36 -08:00
main.go Tooltip Widget and Event Refactor 2020-03-09 17:13:33 -07:00

README.md

Examples for go/ui

Here are some example programs using go/ui, each accompanied by a screenshot and description:

  • Hello, World!: a basic UI demo with a Label and a Button.
  • Frame Place(): demonstrates using the Place() layout management option for Frame widgets.
  • Window Manager: demonstrates the Window widget and window management features of the Supervisor.
  • Tooltip: demonstrates the Tooltip widget on a variety of buttons scattered around the window.
  • Menus: demonstrates various Menu Buttons and a Menu Bar.
  • Themes: a UI demo that shows off the Default, Flat, and Dark UI themes as part of experimental theming support.
  • TabFrame: demo for the TabFrame widget showing multiple Windows with tabbed interfaces.
  • ColorPicker: demo for the ColorPicker widget.