summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-12Fixed ARGB rendering on Windows. Now to make it flicker-free...Pietro Gagliardi
2014-04-12Documented the thread safety of AreaHandler and Area.SetSize().Pietro Gagliardi
2014-04-12Switched to ARGB drawing in Areas on GTK+.Pietro Gagliardi
2014-04-11Rewrote Area code on Windows to use alpha-premultiplied RGB and only use GDI ↵Pietro Gagliardi
functions to do it... and it doesn't quite work right yet.
2014-04-11Added a general-purpose function to produce a native-endian ARGB ↵Pietro Gagliardi
representation of the image. I thought cairo image surfaces would work, but they're not designed for reading in images, the cairo functions for reading image data were introduced in the next version (1.12), and GDK-Pixbuf only does non-alpha-premultiplied... This can be used on Windows though.
2014-04-11Switched to alpha-premultiplied image data for Areas on Mac OS X. This is ↵Pietro Gagliardi
the easiest change; it involves removing one bit flag from the NSBitmapImageRep constructor (the other changes are indentation changes).
2014-04-11Changed from using image.NRGBA to image.RGBA (premultiplied alpha) in ↵Pietro Gagliardi
Area.Paint() since it'll be easier to work with on Windows after applying what Treeki/Ninjifox suggested I do instead of what I am doing now.
2014-04-11Added CS_HREDRAW and CS_VREDRAW to our Area on Windows, just to be safe.Pietro Gagliardi
2014-04-11Attempted to fix the Windows transparency issues; we're not quite there... ↵Pietro Gagliardi
flicker...
2014-04-10Removed TODO about Windows -1 conversions, as the Go spec specifically says ↵Pietro Gagliardi
that signed values are sign-extended to the full size of the type to convert to (and even shows an example of this), so the code we have was correct, not just working out of luck.
2014-04-10Added bounds checking to NewArea() and Area.SetSize() such that an Area must ↵Pietro Gagliardi
have a valid size.
2014-04-10More TODOs.Pietro Gagliardi
2014-04-10Fixed Area mouse events being sent when something happens outside the Area ↵Pietro Gagliardi
itself.
2014-04-10More future plans and TODOs.Pietro Gagliardi
2014-04-10Decided not to make Labels selectable; nothing does it and it's a platform ↵Pietro Gagliardi
detail.
2014-04-10Documented scrollbars on Listbox and Area to the best of my ability, ↵Pietro Gagliardi
shuffling the appropriate TODOs around.
2014-04-10More TODOs.Pietro Gagliardi
2014-04-10"Fixed" the zero-size Combobox drop-down on Windows by having Windows fix it ↵Pietro Gagliardi
for us (and since we did everything we need to do to get it to fix it for us, it was already fixed!).
2014-04-10Removed unnecessary space if the secondaryText argument to MsgBox***() is an ↵Pietro Gagliardi
empty string. This doesn't change much on Mac OS X; it always shows the informational text field, showing an empty string by default. On GTK+ it seems to get rid of the bold over the primary text; I'm going to assume this is intentional (it looks that way on GTK+ 2; the HIG docs have outdated screenshots...).
2014-04-10Documented that event channels can be assigned to each other to collapse events.Pietro Gagliardi
2014-04-09More TODOs and future plans.Pietro Gagliardi
2014-04-09Added a test for the extremities of the Area's actual drawing area to make ↵Pietro Gagliardi
sure all pixels are shown on all platforms. That seems to be the case right now... Also more TODOs.
2014-04-09More future plans.Pietro Gagliardi
2014-04-09Fixed Area drawing assuming the first pixel of the *image.NRGBA is at i.Pix[0].Pietro Gagliardi
2014-04-09Tried to resolve the use a single window class for each type of custom ↵Pietro Gagliardi
window TODO; found it was nothing but problems, so moved to future plans.
2014-04-09Fixed GTK+ windows having the wrong background.Pietro Gagliardi
2014-04-09As it turns out, Windows does have a facility for windows that only serve as ↵Pietro Gagliardi
message dispatches; let's use it for our message handler. (I only found this out while looking up SetParent() for the previous commit).
2014-04-09More (big) future plans.Pietro Gagliardi
2014-04-08Slowed GTK+ indeterminate Progressbars down.Pietro Gagliardi
2014-04-07More future plans.Pietro Gagliardi
2014-04-07Undid the previous change to the keyboard test so that it responds to window ↵Pietro Gagliardi
closes again.
2014-04-07Split out the common resizing code into its own function so that it's all in ↵Pietro Gagliardi
one place. This will also affect what happens if I switch to DeferWindowPos() on Windows.
2014-04-07Updated Area's KeyEvent documentation to talk about some window managers on ↵Pietro Gagliardi
Unix intercepting some events; also updated the keyboard test program to make a note of behaviors related to that.
2014-04-07Removed the TODOs about AppQuit: fixed on OS X, never a problem on Windows, ↵Pietro Gagliardi
unfixable elsewhere (these are window manager window-local(? apparently...) events so they never hit us; thanks to some people in irc.gimp.net/#gtk+). Also added some notes to the future plans document (related to all that).
2014-04-07Fixed AppQuit on Mac OS X (forgot to set the NSApp delegate AND was using ↵Pietro Gagliardi
the wrong selector).
2014-04-06Added (untested; VM issues) code to handle Mac OS X Quit Dock menu items and ↵Pietro Gagliardi
other related stuff that may happen in the future. Will drop the TODO after I can test it.
2014-04-06Added details of application termination handling.Pietro Gagliardi
2014-04-06Added thanks comment (see previous commit).Pietro Gagliardi
2014-04-06Added borders to GTK+ Listboxes (thanks to jlindgren in irc.gimp.net/#gtk+); ↵Pietro Gagliardi
ends that TODO.
2014-04-06Wrote an update on the NSUInteger/NSInteger situation in bleh_darwin.m.Pietro Gagliardi
2014-04-05More TODOs.Pietro Gagliardi
2014-04-05Removed the bit about selectable messagebox text from the TODO file: that's ↵Pietro Gagliardi
a platform-specific thing.
2014-04-05Noted that NSScrollView sets the Listbox border in listbox_darwin.go.Pietro Gagliardi
2014-04-05Gave Listboxes a border on Mac OS X. That just leaves GTK+: oyxgen-gtk ↵Pietro Gagliardi
always gives GtkScrollingWindows a border, which misled me earlier... other themes don't.
2014-04-05More future plans.Pietro Gagliardi
2014-04-05Split the todo.md file into one for immediate TODOs and one for future work; ↵Pietro Gagliardi
merged the latter with controlcandidates.md to form a single future stuff list. Also cleaned up all those lists.
2014-04-05Removed TODO from Mac OS X code about additional label styles; judging from ↵Pietro Gagliardi
Interface Builder I've got them covered.
2014-04-05Gave controls their proper fonts on Mac OS X.Pietro Gagliardi
2014-04-05Updated sysdata_darwin.go to remove some TODOs and change most, if not all, ↵Pietro Gagliardi
embedded magic numbers to named constants.
2014-04-05More TODOs.Pietro Gagliardi