summaryrefslogtreecommitdiff
path: root/stdwndclass_windows.go
AgeCommit message (Collapse)Author
2014-03-24Corrected a copy-paste fail in stdwndclass_windows.go that broke compilation ↵Pietro Gagliardi
(this is why you test builds on all platforms, folks!) and added a TODO about resizing on Windows in the meantime.
2014-03-17Changed the new resizing code so that it uses the same allocated slice per ↵Pietro Gagliardi
window instead of making a new one to store all the resize requests each time.
2014-03-17Changed window resizes so that the actual Control.setRect() functions ↵Pietro Gagliardi
appended to an array of requests that the resize() function set all at once instead of having each done individually. This will be necessary for what I think will be a solution to the deadlocks. It doesn't work right now; I'm assuming it's allocating too much memory. I know how to fix this, but I'm committing what I have so far to be safe.
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-03Fixed Mac OS X control placement flipping. This is done by passing the ↵Pietro Gagliardi
height of the window around setRect() calls to avoid polling the content view frame each time.
2014-02-21Fixed the unregistered window class error on 64-bit Windows: turns out it ↵Pietro Gagliardi
was a difference in Go's int vs. what Windows expected (thanks Microsoft for not using your special types here). Fixed all instances of this, even in unmigrated/. Still does not work in wine...
2014-02-19Moved to a proper package; main() is now a test and go test -c is used to ↵Pietro Gagliardi
build. Once I iron out a bug with Windows event handling, I'll add a README.
2014-02-18Made event dispatch asynchronous to avoid deadlocks; right now events that ↵Pietro Gagliardi
cannot be dispatched get dropped.
2014-02-17Fixed the GTK+ crashes (I think) by making resizes synchronous. Since all ↵Pietro Gagliardi
control resizes happen on the UI thread anyway, we don't need to dispatch back; just call the resizing functions directly. Windows gets this fix too for consistency (and also because it gets rid of the only asynchronous oddity in the system).
2014-02-13Fixed the resizing deadlock.Pietro Gagliardi
2014-02-13Added sizing of windows and the main window control. It presently deadlocks; ↵Pietro Gagliardi
I'll need to redo my mutexes...
2014-02-12Fixed compiler errors. New code structure success!Pietro Gagliardi
2014-02-12Whoops, class registration now has to go through the UI task.Pietro Gagliardi
2014-02-12Each control may only need one event, so combine them all into a single ↵Pietro Gagliardi
channel whose use depends on the sysData itself. Also we won't need to save the parentWindow anymore, as the change to the make() function will take care of that for us.
2014-02-12Restructuring the codebase to make things neater. First off: each window now ↵Pietro Gagliardi
has its own class; the sysData knows about children. This updates the window class to become a generator and rewrites the WndProc as well.
2014-02-12Added button events.Pietro Gagliardi
2014-02-11Changed the sysData cache so that if we didn't fill it in yet, getSysData() ↵Pietro Gagliardi
returns nil instead of panicking, and the standard window procedure jumps directly to the default handler. Not what I originally wanted to do, but whatever, it finally works!
2014-02-11Got rid of the reverse HWND->sysData lookup for now, to see if there's a ↵Pietro Gagliardi
mistake elsewhere. Now we're up to a panic... with Success...
2014-02-11It appears the result of syscall.StringToUTF16Ptr() is only temporary, so ↵Pietro Gagliardi
removed all that. Now the program just hangs...
2014-02-11Whoops, copy-paste fail somehow changed init error checks. Now it starts... ↵Pietro Gagliardi
and hangs before creating a window...
2014-02-11All build errors resolved. Now to test...Pietro Gagliardi
2014-02-11Added the init and testing main functions and started fixing errors. Let's ↵Pietro Gagliardi
fix the rest and hope it works...
2014-02-11Filled in the standard window procedure.Pietro Gagliardi
2014-02-11(see previous commit; part 2)Pietro Gagliardi