Go to file
Pietro Gagliardi b9c46d4cdf Don't try to scroll if we're deselecting. First part of mouse deselect fix. 2014-12-16 18:40:58 -05:00
examples Improved the example window program that was just merged. 2014-11-26 22:09:56 -05:00
gtkpopover
mergeback
popover
proposals
wintable Don't try to scroll if we're deselecting. First part of mouse deselect fix. 2014-12-16 18:40:58 -05:00
LICENSE
README.md Now require Go 1.4 due to crazy Go bugs unfixed in 1.3 stable releases. Thanks to github user @infogulch. 2014-11-25 07:45:01 -05:00
area.go
area_darwin.go
area_darwin.m
area_unix.go
area_windows.c
area_windows.go
assortednotes.md
basicctrls.go Started adding TextField.ReadOnly() and implemented it (mostly) on Windows. 2014-11-05 12:59:44 -05:00
basicctrls_darwin.m Implemented TextField.ReadOnly() on Mac OS X. Began standardizing window class name access on Windows. 2014-11-05 13:35:39 -05:00
basicctrls_windows.c Started adding TextField.ReadOnly() and implemented it (mostly) on Windows. 2014-11-05 12:59:44 -05:00
button_darwin.go
button_unix.go
button_windows.go
checkbox_darwin.go
checkbox_unix.go
checkbox_windows.go
comctl32_windows.c Added the initial Windows Spinbox code. 2014-10-28 15:46:13 -04:00
common_darwin.go
common_darwin.m
common_unix.go
common_windows.c Fixed up appearance of read-only TextFields on Windows. 2014-11-05 16:36:44 -05:00
common_windows.go
compatibility.md More future compatibility stuff. 2014-10-28 10:44:23 -04:00
container.go
container_darwin.go Added the initial implementaiton of Spinbox on Mac OS X. It doesn't quite work yet. 2014-10-29 12:12:00 -04:00
container_darwin.m Restructured container on Mac OS X likewise. Still have to test. 2014-10-27 23:57:54 -04:00
container_unix.c Migrated the GTK+ backend to the new new container system in which containers are no longer full controls but are still used to hold more than one control and handle the resizing entirely on their own. 2014-10-27 15:21:47 -04:00
container_unix.go Migrated the GTK+ backend to the new new container system in which containers are no longer full controls but are still used to hold more than one control and handle the resizing entirely on their own. 2014-10-27 15:21:47 -04:00
container_windows.c Removed the gouicontainer window class from the Windows backend; it is no longer needed. 2014-10-27 10:19:39 -04:00
container_windows.go Removed the gouicontainer window class from the Windows backend; it is no longer needed. 2014-10-27 10:19:39 -04:00
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 More TODOs. 2014-12-15 18:28:36 -05:00
grid.go Removed container from SimpleGrid and Grid. This is necessary to do now, alas; the Windows gouicontainers left over weren't being hidden, causing undesirable Tab behavior. 2014-10-26 21:33:52 -04:00
group_darwin.go Fixed Mac OS X issues. 2014-10-28 00:13:18 -04:00
group_unix.go More TODOs. 2014-10-27 15:23:52 -04:00
group_windows.go Fixed Group on Windows not sending events to children. I /think/ we're done with container madness on the Windows backend... 2014-10-27 10:41:10 -04:00
gtk_unix.h
imagelist.go
imagelist_darwin.go
imagelist_darwin.m
imagelist_unix.go
imagelist_windows.c
imagelist_windows.go
init_windows.c
label_darwin.go
label_unix.go
label_windows.go
objc_darwin.h Implemented TextField.ReadOnly() on Mac OS X. Began standardizing window class name access on Windows. 2014-11-05 13:35:39 -05:00
prevlib.tar
progressbar_darwin.go Implemented ProgressBar on Mac OS X. 2014-11-04 11:41:38 -05:00
progressbar_unix.go Actually added GTK+ ProgressBar this time. 2014-11-04 08:49:10 -05:00
progressbar_windows.go Started the Windows ProgressBar implemetnation. There's still an important detail left over... 2014-11-04 09:18:57 -05:00
scrapped
simplegrid.go Removed container from SimpleGrid and Grid. This is necessary to do now, alas; the Windows gouicontainers left over weren't being hidden, causing undesirable Tab behavior. 2014-10-26 21:33:52 -04:00
spinbox_darwin.go Added Spinbox.OnChanged() and implemented it on GTK+ and Mac OS X. Implementing it on Windows is going to be a pain... 2014-10-31 19:57:48 -04:00
spinbox_darwin.m Added Spinbox.OnChanged() and implemented it on GTK+ and Mac OS X. Implementing it on Windows is going to be a pain... 2014-10-31 19:57:48 -04:00
spinbox_unix.go Added Spinbox.OnChanged() and implemented it on GTK+ and Mac OS X. Implementing it on Windows is going to be a pain... 2014-10-31 19:57:48 -04:00
spinbox_windows.go Fixed up Spinbox appearance on Windows. 2014-11-04 11:55:07 -05:00
stack.go De-container-ized Stack. 2014-10-26 20:08:53 -04:00
tab_darwin.go Fixed Mac OS X issues. 2014-10-28 00:13:18 -04:00
tab_darwin.m
tab_unix.go Migrated the GTK+ backend to the new new container system in which containers are no longer full controls but are still used to hold more than one control and handle the resizing entirely on their own. 2014-10-27 15:21:47 -04:00
tab_windows.c Okay, REALLY fixed the redraw issues now. A few wacky drawing issues remain, but... not THIS. 2014-10-30 08:48:36 -04:00
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 Implemented TextField.ReadOnly() on Mac OS X. Began standardizing window class name access on Windows. 2014-11-05 13:35:39 -05:00
textfield_unix.go Implemented TextField.ReadOnly() on GTK+. 2014-11-05 13:08:06 -05:00
textfield_windows.go Started adding TextField.ReadOnly() and implemented it (mostly) on Windows. 2014-11-05 12:59:44 -05:00
uitask.go
uitask_darwin.go
uitask_darwin.m
uitask_unix.go
uitask_windows.c More Windows window class logic simplification. This will be needed for read-only TextFields, next. 2014-11-05 14:12:57 -05:00
uitask_windows.go Removed the gouicontainer window class from the Windows backend; it is no longer needed. 2014-10-27 10:19:39 -04:00
warningpopover_darwin.m
winapi_windows.h Started the work to add accessibility to the new Windows Table. Also adjusted winapi_windows.h to accomodate this (defined CINTERFACE and included <oleacc.h>). 2014-11-09 13:04:04 -05:00
window.go
window_darwin.go Fixed Mac OS X issues. 2014-10-28 00:13:18 -04:00
window_darwin.m Restructured container on Mac OS X likewise. Still have to test. 2014-10-27 23:57:54 -04:00
window_unix.go Migrated the GTK+ backend to the new new container system in which containers are no longer full controls but are still used to hold more than one control and handle the resizing entirely on their own. 2014-10-27 15:21:47 -04:00
window_windows.c Okay, REALLY fixed the redraw issues now. A few wacky drawing issues remain, but... not THIS. 2014-10-30 08:48:36 -04:00
window_windows.go
yz_icons_test.go
yz_repaint_test.go
zz_test.go Started adding TextField.ReadOnly() and implemented it (mostly) on Windows. 2014-11-05 12:59:44 -05:00

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

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):

widget gallery example