Go to file
Pietro Gagliardi a6c0fbdb87 Updated build and rewrite instructions. This was the wrong time to start rewriting this package... 2015-12-16 09:57:12 -05:00
prev More work. 2015-12-11 22:48:25 -05:00
Compatibility.md Quick file rename to push all the *.md files to the top of the directory listing. 2015-12-12 18:51:34 -05:00
LICENSE Added license and README. 2014-02-17 18:38:50 -05:00
README.md Updated build and rewrite instructions. This was the wrong time to start rewriting this package... 2015-12-16 09:57:12 -05:00
TODO.md More TODOs. 2015-12-12 16:19:45 -05:00
areahandler.go Fixed a typo. (See #109.) 2015-12-15 10:07:51 -05:00
box.go Added Box. Phew! Now to port over the libui test program... 2015-12-12 20:15:14 -05:00
button.go Added Button and Checkbox. 2015-12-12 15:52:43 -05:00
checkbox.go Added uiCombobox. 2015-12-12 16:18:58 -05:00
combobox.go Added uiCombobox. 2015-12-12 16:18:58 -05:00
control.go Added Button and Checkbox. 2015-12-12 15:52:43 -05:00
datetimepicker.go Added DateTimePicker. 2015-12-12 18:59:01 -05:00
draw.go Fixed a build error. 2015-12-13 12:53:37 -05:00
entry.go More TODOs. 2015-12-13 02:26:26 -05:00
group.go Added Tab. That just leaves Box... 2015-12-12 19:52:22 -05:00
label.go Added Label. 2015-12-12 16:59:57 -05:00
link_darwin.go Added OS X building. Go 1.5 required because of https://github.com/golang/go/issues/9411 which affects this. Also set up proper multithreading on OS X. Currently crashes due to similar issue I've had with libui. 2015-12-13 02:24:43 -05:00
link_unix.go Added OS X building. Go 1.5 required because of https://github.com/golang/go/issues/9411 which affects this. Also set up proper multithreading on OS X. Currently crashes due to similar issue I've had with libui. 2015-12-13 02:24:43 -05:00
link_windows.go Added OS X building. Go 1.5 required because of https://github.com/golang/go/issues/9411 which affects this. Also set up proper multithreading on OS X. Currently crashes due to similar issue I've had with libui. 2015-12-13 02:24:43 -05:00
main.go Added OS X building. Go 1.5 required because of https://github.com/golang/go/issues/9411 which affects this. Also set up proper multithreading on OS X. Currently crashes due to similar issue I've had with libui. 2015-12-13 02:24:43 -05:00
progressbar.go Added ProgressBar. 2015-12-12 18:44:35 -05:00
radiobuttons.go Added RadioButtons. 2015-12-12 19:05:41 -05:00
separator.go Added Separator. 2015-12-12 18:48:43 -05:00
slider.go Added Spinbox and Slider. That *should* leave just Group, Tab, and Box... (and Area of course, but I want to finalize the interface more first) 2015-12-12 19:26:02 -05:00
spinbox.go Added Spinbox and Slider. That *should* leave just Group, Tab, and Box... (and Area of course, but I want to finalize the interface more first) 2015-12-12 19:26:02 -05:00
tab.go Fixed a latent bug in Tab.InsertAt() where inserted controls are appended to t.children, causing issues during Tab.Destroy(). 2015-12-12 23:53:27 -05:00
util.go Implemented some utility functions. 2015-12-12 13:07:57 -05:00
window.go Added Button and Checkbox. 2015-12-12 15:52:43 -05:00
zy_page1_test.go Ported the test page 1 from libui. 2015-12-12 21:44:50 -05:00
zy_page2_test.go Ported the test page 1 from libui. 2015-12-12 21:44:50 -05:00
zz_test.go Ported the test page 1 from libui. 2015-12-12 21:44:50 -05:00

README.md

ui: platform-native GUI library for Go

This package is still very much WIP.

As of December 2015 the previous package ui API that has been around since this repo was started is no longer being supported. It is being replaced with a much more stable API built around my libui; see below.

If you still want to use the old package ui, you can get the package under the pre-libui tag. Keep in mind that it's not stable, buggy, and no longer supported. If you do continue, make sure that instances of ui.Window escape to the heap to avoid some of the issues.

If you want to play around with this new package ui, you'll need to install libui manually. Clone that repo and make (with GNU make) libui, then:

  • On Windows, merely copy out\libui.dll to the root of this repo.
  • On OS X, copy out/libui.dylib to the root of this repo as libui.0.dylib and symlink it to libui.dylib
  • On other Unixes, copy out/libui.so to the eroot of this reop as libui.so.0 and symlink it to libui.so

and then copy ui.h to the top of this repo as well. (You may symlink any files instead of copying if so choose.)

Stable releases of package ui will have all these files built in; these steps are only necessary for master builds.

New README

This is a library that aims to provide simple GUI software development in Go.

It is based on my libui, a simple cross-platform library that does the same thing, but written in C. You must include this library in your binary distributions.

It runs on/requires:

  • Windows: cgo, Windows Vista and newer
  • Mac OS X: cgo, Mac OS X 10.7 and newer
  • other Unixes: cgo, GTK+ 3.4 and newer

It also requires Go 1.5 or newer (due to various bugs in cgo that were fixed only starting with 1.5).

(this README needs some work)

Installation

Documentation

The in-code documentation needs improvement. I have written a tutorial in the Wiki.

Updates