521829a0a6 | ||
---|---|---|
examples | ||
gtkdtp | ||
gtkpopover | ||
mergeback | ||
new | ||
popover | ||
proposals | ||
wintable | ||
LICENSE | ||
README.md | ||
area.go | ||
area_darwin.go | ||
area_darwin.m | ||
area_unix.go | ||
area_windows.c | ||
area_windows.go | ||
assortednotes.md | ||
basicctrls.go | ||
basicctrls_darwin.m | ||
basicctrls_windows.c | ||
button_darwin.go | ||
button_unix.go | ||
button_windows.go | ||
checkbox_darwin.go | ||
checkbox_unix.go | ||
checkbox_windows.go | ||
comctl32_windows.c | ||
common_darwin.go | ||
common_darwin.m | ||
common_unix.go | ||
common_windows.c | ||
common_windows.go | ||
compatibility.md | ||
container.go | ||
container_darwin.go | ||
container_darwin.m | ||
container_unix.c | ||
container_unix.go | ||
container_windows.c | ||
container_windows.go | ||
control.go | ||
control_darwin.go | ||
control_darwin.m | ||
control_unix.go | ||
control_windows.c | ||
control_windows.go | ||
dialog.go | ||
dialog_darwin.go | ||
dialog_darwin.m | ||
dialog_unix.go | ||
dialog_windows.c | ||
dialog_windows.go | ||
doc.go | ||
events_darwin.go | ||
events_notdarwin.go | ||
future | ||
grid.go | ||
group_darwin.go | ||
group_unix.go | ||
group_windows.go | ||
gtk_unix.h | ||
image_darwin.m | ||
image_unix.go | ||
image_windows.c | ||
init_windows.c | ||
label_darwin.go | ||
label_unix.go | ||
label_windows.go | ||
objc_darwin.h | ||
prevlib.tar | ||
progressbar_darwin.go | ||
progressbar_unix.go | ||
progressbar_windows.go | ||
scrapped | ||
simplegrid.go | ||
spinbox_darwin.go | ||
spinbox_darwin.m | ||
spinbox_unix.go | ||
spinbox_windows.go | ||
stack.go | ||
tab_darwin.go | ||
tab_darwin.m | ||
tab_unix.go | ||
tab_windows.c | ||
tab_windows.go | ||
table.go | ||
table_darwin.go | ||
table_darwin.m | ||
table_unix.c | ||
table_unix.go | ||
table_windows.c | ||
table_windows.go | ||
textbox_darwin.go | ||
textbox_unix.go | ||
textbox_windows.go | ||
textfield_darwin.go | ||
textfield_unix.go | ||
textfield_windows.go | ||
uitask.go | ||
uitask_darwin.go | ||
uitask_darwin.m | ||
uitask_unix.go | ||
uitask_windows.c | ||
uitask_windows.go | ||
warningpopover_darwin.m | ||
winapi_windows.h | ||
window.go | ||
window_darwin.go | ||
window_darwin.m | ||
window_unix.go | ||
window_windows.c | ||
window_windows.go | ||
wininclude_windows.h | ||
yz_icons_test.go | ||
yz_repaint_test.go | ||
zz_test.go |
README.md
ui: platform-native GUI library for Go
Feature requests wanted! (Really; IDK what to add next!)
This is a library that aims to provide simple GUI software development in Go. It runs on/requires:
- Windows: cgo, MinGW-w64 (see note below), Windows XP and newer
- Note: Notice I specifically said MinGW-w64 here. This is important: regular MinGW is missing various recent header files which package ui uses, and thus won't build with it. Make sure your MinGW is that version instead. If you're running on Windows and are not sure what to download, get the mingw-builds distribution.
- Mac OS X: cgo, Mac OS X 10.7 and newer
- other Unixes: cgo, GTK+ 3.4 and newer
Go 1.4 RC1 or newer (including Go tip/master/direct from the source repository) is required. This is due to a variety of compiler and linker bugs on Windows and Mac OS X spanning the Go 1.3 release family.
(this README needs some work)
Be sure to have at least each outermost Window escaping to the heap until a good resolution to Go issue 8310 comes out.
prevlib.tar contains the previous version of the library as it stood when I restarted; don't bother using it.
Documentation
The in-code documentation needs improvement. I have written a tutorial in the Wiki.
Updates
21 February 2015
Implemented Table column headers as a uicolumn:
struct tag.
This will probably be the last change for a while; I want to redo the backend again.
19 February 2015
ImageList is now gone; you simply store *image.RGBA
s in your Table data structure and they'll work.
Alongside this change is the introduction of a new backend for Table on Windows that should be more flexible than the standard list view control. This control is implemented in the wintable/
folder; it is implemented in C and will one day be spun off into its own project for general-purpose use. I have tried to make it work as much like the standard list view control as possible, and it mostly works fine. That being said, there are still issues and incompletenesses. Please feel free to report any issues you may have found (though watch the TODOs in the source; I may know about the issue already).
5 November 2014
TextFields can now be marked as read-only (non-editable). Textboxes will gain this ability soon.
4 November 2014
Added two new controls, Spinbox (which allows numeric entry with up and down buttons) and ProgressBar (which measures progress). Both aren't fully fleshed out, but are good enough for general use now.
28 October 2014
Mac OS X resizing issues should be (mostly?) fixed now. Textbox still doesn't work right...
24 October 2014
Textbox, a multi-line version of TextField, has been added. (Note that it may not work properly on Mac OS X; this is being investigated.) In addition, excess space around controls on Mac OS X should be settled now.
18 October 2014
The container system was rewritten entirely. You can now set a margin on Windows and Groups and spacing between controls ("padding") on Stacks, Grids, and SimpleGrids. Margins on Tabs will come soon. The work needed to change this will make future additions (like Popover and Spinbox) easier/more sensible. (The Mac OS X code is still glitchy; mind the dust.)
As part of the change, standalone Labels have been removed. All Labels now behave like standalone labels. A new layout container, Form, will be introduced in the near future to allow proper layout of widgets with labels.
3 September 2014
The new GtkGrid-style Grid is now implemented! See its documentation for more details. Also, debugging spew has been removed.
31 August 2014
Grid is now renamed SimpleGrid in preparation for implementing a more GtkGrid-like Grid. Mind the change.
Screenshots
The example widget gallery on GTK+ in the Adwaita theme (3.13/master):