a23a0f1088 | ||
---|---|---|
unmigrated | ||
LICENSE | ||
README.md | ||
button.go | ||
callbacks_unix.go | ||
checkbox.go | ||
combobox.go | ||
comctl_windows.go | ||
common_windows.go | ||
control.go | ||
controlcandidates.md | ||
controls_windows.go | ||
dialog.go | ||
dialog_unix.go | ||
dialog_windows.go | ||
grid.go | ||
gtkcalls_unix.go | ||
gtkcasts_unix.go | ||
implementation.md | ||
init.go | ||
init_windows.go | ||
label.go | ||
layoutplan.md | ||
lineedit.go | ||
listbox.go | ||
listbox_unix.go | ||
main_test.go | ||
menus_windows.go | ||
plan.md | ||
prefsize_unix.go | ||
prefsize_windows.go | ||
progressbar.go | ||
restrictions.md | ||
stack.go | ||
stdfont_windows.go | ||
stdwndclass_windows.go | ||
sysdata.go | ||
sysdata_unix.go | ||
sysdata_windows.go | ||
todo.md | ||
uitask_unix.go | ||
uitask_windows.go | ||
window.go | ||
windows_windows.go | ||
winerrors.md |
README.md
Native UI library for Go
THIS PACKAGE IS UNSTABLE. Though it installs to a package ui
, and you can build software in it, it's far from feature-complete, and still in need of testing and crash-fixing. If you can help, please do! Run go test -c
to build a test binary which runs a (mostly) feature-complete UI test.
This is a simple library for building cross-platform GUI programs in Go. It targets Windows and all Unix variants (except Mac OS X until further notice) and provides a thread-safe, channel-based API.
The API is no longer frozen; instead I will have to continue without the OS X port and do more work later. Oh well :/
Until then, check todo.md
for more.
Future Readme Contents
This is a simple library for building cross-platform GUI programs in Go. It targets Windows, Mac OS X, Linux, and other Unixes, and provides a thread-safe, channel-based API. The API itself is minimal; it aims to provide only what is necessary for GUI program design. That being said, suggestions are welcome. Layout is done using various layout managers, and some effort is taken to conform to the target platform's UI guidelines. Otherwise, the library uses native toolkits.
ui aims to run on all supported versions of supported platforms. To be more precise, the system requirements are:
- Windows: Windows 2000 or newer. The Windows backend uses package
syscall
and calls Windows DLLs directly, so does not rely on cgo. - Mac OS X: Mac OS X 10.6 (Snow Leopard) or newer. Objective-C dispatch is done by interfacing with libobjc directly, and thus this uses cgo.
- Other Unixes: The Unix backend uses GTK+, and thus cgo. It requires GTK+ 3.4 or newer; for Ubuntu this means 12.04 LTS (Precise Pangolin) at minimum. Check your distribution.
ui itself has no outside Go package dependencies; it is entirely self-contained.
To install, simply go get
this package. On Mac OS X, make sure you have the Apple development headers. On other Unixes, make sure you have the GTK+ development files (for Ubuntu, libgtk-3-dev
is sufficient).
Package documentation is available at http://godoc.org/github.com/andlabs/ui.
The following is an example program to illustrate what programming with ui is like:
(see main_test.go)
Contributing
Contributions are welcome. File issues, pull requests, approach me on IRC (pietro10 in #go-nuts; andlabs elsewhere), etc. Even suggestions are welcome: while I'm mainly drawing from my own GUI programming experience, everyone is different.
If you want to dive in, read implementation.md: this is a description of how the library works. (Feel free to suggest improvements to this as well.) The other .md files in this repository contain various development notes.
Please suggest documentation improvements as well.