summaryrefslogtreecommitdiff
path: root/test/main.go
AgeCommit message (Collapse)Author
2014-07-03Added Post() and implemented it on Windows.Pietro Gagliardi
2014-07-03Added the start() function and fixed compilation errors. Everything seems to ↵Pietro Gagliardi
work...
2014-07-01Removed WindowHandler.Pietro Gagliardi
2014-07-01Made Button.Clicked a callback.Pietro Gagliardi
2014-06-30Made Window.Closing a callback closure.Pietro Gagliardi
2014-06-30Restored the previous new API. I'm going to change it so that events are ↵Pietro Gagliardi
callbacks rather than using a window handler, but other than that... yeah.
2014-06-30Reverted everything back to the old API.Pietro Gagliardi
2014-06-29Made the "Title and Text" message box parented like it should have been. ↵Pietro Gagliardi
This will also allow me to evaluate what happens if message boxes that are parented are closed in non-reverse order.
2014-06-28Fixed the build. New API works on Windows! Also removed TODO on dialogs in ↵Pietro Gagliardi
Windows since I can't reproduce the weird behavior anymore; I guess the new code fixes it.
2014-06-28Decided to make dialogs code-modal; will figure out how to get the behavior ↵Pietro Gagliardi
I want on Mac OS X - http://stackoverflow.com/questions/24468620/how-do-i-create-a-nested-run-loop-after-nsalert-beginsheetmodalforwindow-tha - Now to see if Windows works...
2014-06-28Converted most of the rest of the test program. Now I just need to figure ↵Pietro Gagliardi
out what I'm going to do about dialog modality... ugh.
2014-06-28Converted most of the rest of the test program to the new API.Pietro Gagliardi
2014-06-26Added Checkbox.SetChecked() and implemented it on GTK+.Pietro Gagliardi
2014-06-26Added margins and padding to Grid and a test program to make sure they're ↵Pietro Gagliardi
the same...
2014-06-26Implemented window margins for Grids and Stacks.Pietro Gagliardi
2014-06-26Added a padding/margins test to the test program.Pietro Gagliardi
2014-06-26Made the Listbox in the Label alignment test resize vertically so as to make ↵Pietro Gagliardi
the test more meaningful.
2014-06-25Improved the label alignment test.Pietro Gagliardi
2014-06-25Improved the label alignment test.Pietro Gagliardi
2014-06-25Added new Label alignment test.Pietro Gagliardi
2014-06-11Added Window.Center() test to the test program.Pietro Gagliardi
2014-06-09Added Area.RepaintAll() (requested by aybabtme on the Gopher Academy Slack) ↵Pietro Gagliardi
and implemented it on Mac OS X.
2014-06-08Implemented the new MsgBox()/MsgBoxError() behavior on Windows.Pietro Gagliardi
2014-06-04Added the concept of transience to MsgBox() and MsgBoxError(). Individual ↵Pietro Gagliardi
implementations will come next.
2014-06-03Big change to Window: split Open()'s functionality into Create() and Open(); ↵Pietro Gagliardi
they no longer return errors.
2014-06-02Added a test of MsgBox() event modality to the standard Area test.Pietro Gagliardi
2014-06-01Decided to drop the whole handled thing with Area events and just continue ↵Pietro Gagliardi
the event chain if needed. Same for MousEvent; will have to document that. This is just the test program for now.
2014-04-13Fixed weird Area time label truncation on Windows; more TODOs and future ↵Pietro Gagliardi
plans related to that.
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-10Added bounds checking to NewArea() and Area.SetSize() such that an Area must ↵Pietro Gagliardi
have a valid size.
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-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-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-02Added a println() to the main test window to signal that window closing has ↵Pietro Gagliardi
happened. This is used for ensuring that closing programs from a task switcher works as expected (that is, that the appropriate w.Closing event is triggered if an individual window is asked to be closed, and something else if an application as a whole is...).
2014-03-29Updated the GTK+ implementation and test programs to reflect the new ↵Pietro Gagliardi
KeyEvent setup.
2014-03-27Added a flag to AreaHandler.Key()/Mouse() to indicate that a repaint is ↵Pietro Gagliardi
needed after that event has been handled. (Having Repaint() as a method deadlocked for the same reason resizing deadlocked before.)
2014-03-27Added the beginning of a keyboard input test to be written. Also more TODOs.Pietro Gagliardi
2014-03-25Added Area mouse events on Windows. Also more TODOs.Pietro Gagliardi
2014-03-23Fixed the shrinking not working: the Cairo clip rect apparently can fall ↵Pietro Gagliardi
outside the actual size of the widget. (I did notice this before.)
2014-03-23Added Area resizing. Everything mostly works, but not making things smaller...Pietro Gagliardi
2014-03-23Added the GTK+ implementation of Area keyboard events. Seems to work fine ↵Pietro Gagliardi
for now...
2014-03-17Er oh the crash was because I was still using the lock-friendly code. Will ↵Pietro Gagliardi
still apply the change to memory allocation because memory reuse.
2014-03-17Put the Label that changed each second in the main test.Pietro Gagliardi
2014-03-17Removed the mutexes from Labels and Areas because I'm at my wits end about ↵Pietro Gagliardi
settling the deadlock between window resizing and setting a Label's text.
2014-03-16Updated the test program to the new AreaHandler interface. The deadlock ↵Pietro Gagliardi
still happens... just not so easily... so it's elsewhere...
2014-03-16Added a time display to the Area test for testing deadlocks that will happen ↵Pietro Gagliardi
when Area becomes more feature-filled... it appears one has now appeared when resizing the window...
2014-03-15Added a test of the mouse event handling.Pietro Gagliardi
2014-03-15Added a slightly more meaningful test: draw an Image in an area.Pietro Gagliardi
2014-03-14Hacked around the cairo issue for now; hooked everything together and fixed ↵Pietro Gagliardi
a few things. Added the Area test to the test program. Now to just hook up the draw event.
2014-03-12Removed ui.Event(); all event channels are initialized with their objects now.Pietro Gagliardi