Go to file
Pietro Gagliardi 29e5384b2e Migrated dialog_windows.go to use func() for uitask. 2014-06-12 09:51:29 -04:00
experiments Merged back combobox_darwin.m, rewrote it to use boundListboxArray() instead of creating a whole new object, and implemented what appears to be a fix for NSPopUpButton selection. Will delete the unneeded select(-1) code later and test again... 2014-05-28 23:46:33 -04:00
olddocs Disabled Travis.ci for now. 2014-06-06 18:59:37 -04:00
test Added Window.Center() test to the test program. 2014-06-11 10:10:10 -04:00
tools Made adjustments to the output of windowsconstgen to please go fmt. 2014-06-10 09:46:00 -04:00
LICENSE Added license and README. 2014-02-17 18:38:50 -05:00
README.md Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
area.go More go fmt. That completes the main package go fmt. Won't bother with test or tools. 2014-06-10 16:05:41 -04:00
area_darwin.go More go fmt. That completes the main package go fmt. Won't bother with test or tools. 2014-06-10 16:05:41 -04:00
area_darwin.m Fixed Command key up on Mac OS X. This fix also fixes Help key down, so remove the workaround there. 2014-06-07 18:17:29 -04:00
area_unix.go More go fmt. 2014-06-10 15:43:01 -04:00
area_windows.go More go fmt. 2014-06-10 15:31:55 -04:00
button.go More go fmt. 2014-06-10 14:59:39 -04:00
callbacks_unix.go More go fmt. 2014-06-10 14:59:39 -04:00
checkbox.go More go fmt. 2014-06-10 14:59:39 -04:00
combobox.go More go fmt. 2014-06-10 14:59:39 -04:00
combobox_darwin.m Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
comctl_windows.go More go fmt. 2014-06-10 14:59:39 -04:00
common_windows.go added Center function to window 2014-06-11 11:41:31 +02:00
compatibility.md Added Mac OS X 10.8 and 10.9 to compatibility.md. 2014-06-12 01:21:05 -04:00
control.go More go fmt. 2014-06-10 14:59:39 -04:00
controls_windows.go More go fmt. 2014-06-10 14:59:39 -04:00
d32 cgo inserts -m32 automatically, so we don't need to in ./d32. 2014-03-08 17:32:56 -05:00
delegate_darwin.go More go fmt. 2014-06-10 14:59:39 -04:00
delegateuitask_darwin.m Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
dialog.go More go fmt. 2014-06-10 14:49:54 -04:00
dialog_darwin.go More go fmt. 2014-06-10 14:49:54 -04:00
dialog_darwin.m Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
dialog_unix.go More go fmt. 2014-06-10 14:49:54 -04:00
dialog_windows.go Migrated dialog_windows.go to use func() for uitask. 2014-06-12 09:51:29 -04:00
doc.go Cleaned up the scrollbars documentation in the Overview. 2014-06-09 22:37:43 -04:00
events_darwin.go More go fmt. 2014-06-10 14:35:26 -04:00
events_notdarwin.go More go fmt. 2014-06-10 14:33:48 -04:00
futureplans.md Removed Window.Center() from futureplans.md now that that's done. 2014-06-11 14:39:19 -04:00
grid.go More go fmt. 2014-06-10 14:33:48 -04:00
gtk_unix.h Moved <stdlib.h> includes in the GTK+ backend to gtk_unix.h; organized that file a bit. 2014-04-01 16:01:49 -04:00
gtkcalls_unix.go More go fmt. 2014-06-10 13:35:18 -04:00
gtkcasts_unix.go Removed the extra #cgo directives from the Unix files. cgo collects directives from ALL files, rather than using each file's directive individually, so having them combined like this is pointless. Instead, the #cgo directives are (or is, since there's only one) in uitask_unix.go. Will do the same for Mac next; this will help since we're going to add a CFLAGS value afterward. 2014-05-19 22:32:38 -04:00
init.go More go fmt. 2014-06-10 13:10:59 -04:00
init_windows.go More go fmt. 2014-06-10 13:10:59 -04:00
label.go More go fmt. 2014-06-10 11:38:52 -04:00
lineedit.go More go fmt. 2014-06-10 11:38:52 -04:00
listbox.go More go fmt. 2014-06-10 11:38:52 -04:00
listbox_darwin.go More go fmt. 2014-06-10 11:38:52 -04:00
listbox_darwin.m Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
listbox_unix.go More go fmt. 2014-06-10 11:33:53 -04:00
objc_darwin.go Same as previous commit, but for Mac OS X now. The #cgo directives are in uitask_darwin.go. 2014-05-19 22:52:59 -04:00
objc_darwin.h Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
objc_darwin.m Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
prefsize_darwin.go More go fmt. 2014-06-10 11:33:53 -04:00
prefsize_darwin.m Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
prefsize_unix.go More go fmt. 2014-06-10 11:33:53 -04:00
prefsize_windows.go More go fmt. 2014-06-10 11:23:00 -04:00
progressbar.go More go fmt. 2014-06-10 11:23:00 -04:00
stable.md Declared the API as it stands now stable. 2014-06-09 23:04:19 -04:00
stack.go More go fmt. 2014-06-10 11:12:32 -04:00
stdfont_windows.go More go fmt. 2014-06-10 11:12:32 -04:00
stdwndclass_windows.go More go fmt. 2014-06-10 11:12:32 -04:00
sysdata.go Fixed the implementation of sysData.center() on Windows to be thread-safe; also added center() to the _xSysData interface. 2014-06-11 10:01:55 -04:00
sysdata_darwin.go Implemented Window.Center() on Mac OS X. 2014-06-11 11:17:00 -04:00
sysdata_darwin.m Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
sysdata_unix.go Implemented Window.Center() on GTK+. 2014-06-11 14:38:16 -04:00
sysdata_windows.go Fixed the implementation of sysData.center() on Windows to be thread-safe; also added center() to the _xSysData interface. 2014-06-11 10:01:55 -04:00
tableviewproposal.md Switched TableView proposal from <tt>...</tt> to <tt><ins>...</ins></tt> to make those parts distinct from code blocks. 2014-05-08 16:38:46 -04:00
test.sh Corrected the environment in windowsconstgen.go so that we can run it from test.sh. Phew! 2014-05-25 16:50:52 -04:00
todo.md Had Area.SetSize() explicitly labelled as repainting the whole Area; made sure it does that on GTK+ (it already did on Windows and Mac). I think we're ready to declare the API as it stands now stable! 2014-06-09 22:47:45 -04:00
uitask_darwin.go Removed Mac OS X 10.6 support. Quite a hassle that version was... 2014-06-11 14:58:39 -04:00
uitask_unix.go Partial go fmt. Will do the rest over the next few commits. While I'm not too happy about it, everyone else uses go fmt, and pull requests will be more convenient if I just do it. (Also do it now, because when I change the Windows backend things are going to change...) 2014-06-10 09:55:14 -04:00
uitask_windows.go Added the scaffolding that will allow us to change uitask on Windows to take a func(). Right now it accepts both; this will allow me to do piecewise conversion. 2014-06-12 09:42:45 -04:00
window.go Fixed window.go from the previous commit to improve documentation and change function behavior. 2014-06-11 09:51:00 -04:00
zconstants_windows_386.go Fixed the implementation of sysData.center() on Windows to be thread-safe; also added center() to the _xSysData interface. 2014-06-11 10:01:55 -04:00
zconstants_windows_amd64.go Fixed the implementation of sysData.center() on Windows to be thread-safe; also added center() to the _xSysData interface. 2014-06-11 10:01:55 -04:00

README.md

Woah, lots of attention! Thanks!

Updates

  • 11 June 2014
    I have decided to remove Mac OS X 10.6 support because it's only causing problems for building (and everyone else says I should anyway, including Mac developers!). This does break my original goal, but I'm going to have to break things sooner or later. Please let me know if any of you actually use this package on 10.6. (I personally don't like it when programs require 10.7 (or iOS 7, for that matter), but what are you gonna do?)

README

This is a placeholder README; the previous file (olddocs/oldREADME.md) was rather long and confusing. I'll be rewriting it properly soon.

Until then, here's the important things you need to know:

  • this package is very much incomplete; see stable.md for a list of what is guaranteed to not change at the API level — for everything newer, you have been warned!
  • this package requires Go 1.3, which is presently available as a RC build (source builds from go tip will work too)
    • I don't think the Windows side uses any Go 1.3 features, but just to be safe I'm going to say express caution
    • Unix builds need 1.3 to fix some type-checker bugs in cgo
    • Mac OS X builds need 1.3 because Go 1.3 adds Objective-C support to cgo
  • the Windows build does not need cgo unless you want to regenerate the zconstants_windows_*.go files; the other targets do
  • my plan is to target all versions of OSs that Go itself supports. I will, however, make concessions where appropriate. This means:
    • Windows: Windows XP or newer
    • Unix: this is trickier; I decided to settle on GTK+ 3.4 or newer as Ubuntu 12.04 LTS ships with it
    • Mac OS X: Mac OS X 10.7 or newer (Go supports 10.6 but this is a pain to compile Cocoa programs for due to flaws in the later header files)
  • for the Windows build, you won't need to provide a comctl32.dll version 6 manifest, as the package produces its own
    • comctl32.dll version 6 is required for proper functioning!

andlabs/wakeup is a repository that provides a sample application.

If you are feeling adventurous, running ./test.sh (which accepts go build options) from within the package directory will build a test program which I use to make sure everything works. (I'm not sure how to do automated tests for a package like this, so go test will say no tests found for now; sorry.) If you are cross-compiling to Windows, you will need to have a very specific Go setup which allows multiple cross-compilation setups in a single installation; this requires a CL which won't be in Go 1.3 but may appear in Go 1.4 if accepted and both windows/386 and windows/amd64 set up for cgo. (This is because ./test.sh on Windows targets invariably regenerates the zconstants_windows_*.go files; there is no option to turn it off lest I become complacent and use it myself.)

Finally, please send documentation suggestions! I'm taking the documentation of this package very seriously because I don't want to make anything ambiguous. (Trust me, ambiguity in API documentation was a pain when writing this...)

Thanks!

(Note: I temporarily disabled Travis.ci; if I can figure out how to do good cross-compiles with it, then I can put it back.)

Screenshots

You asked for them; here they are.

Image Description
The test program on Windows 7
The test program on Mac OS X 10.8
The test program on Ubuntu 14.04 with KDE and the oxygen-gtk theme