summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-02-12Added a reminder/TODO related to why I needed to do all that (add resizing).Pietro Gagliardi
2014-02-12Fixed compiler errors. New code structure success!Pietro Gagliardi
2014-02-12Adjusted sysData.make() to make the new window class and fixed main(). Now ↵Pietro Gagliardi
to fix compiler errors...
2014-02-12Whoops, forgot to turn Button.sysData.clicked into Button.sysData.event.Pietro Gagliardi
2014-02-12Modified Button for the new changes. Now I just need to actually create the ↵Pietro Gagliardi
window class and edit main()...
2014-02-12Adjusted Control and Window for the new system.Pietro Gagliardi
2014-02-12Whoops, class registration now has to go through the UI task.Pietro Gagliardi
2014-02-12The past few commits mean we no longer need to do reverse sysData lookup, so ↵Pietro Gagliardi
get rid of that.
2014-02-12Windows sysData has been adjusted to deal with child controls. Rather than ↵Pietro Gagliardi
storing the parent window, it is passed as an argument to sysData.make(), which does the child ID allocation. Child IDs are now window-local, getting rid of that restriction.
2014-02-12Formatting change for cSysData itself.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 Window.SetTitle(). Also oops, forgot to mark the window as created.Pietro Gagliardi
2014-02-12More TODOs... this time about crashes... oh boy...Pietro Gagliardi
2014-02-12Whoops, forgot to add button.go itself :|Pietro Gagliardi
2014-02-12Even more TODOs.Pietro Gagliardi
2014-02-12More TODOs.Pietro Gagliardi
2014-02-12Added button events.Pietro Gagliardi
2014-02-12Added buttons.Pietro Gagliardi
2014-02-12More TODOs.Pietro Gagliardi
2014-02-12Added a TODO list.Pietro Gagliardi
2014-02-12Added initial window size and the Window.SetTitle() function.Pietro Gagliardi
2014-02-12Separated initial text from sysData and fixed errors in the previous commits.Pietro Gagliardi
2014-02-12Added control ID generation.Pietro Gagliardi
2014-02-12Set up restrictions tracking. Added a restriction that a window and its ↵Pietro Gagliardi
controls are fixed to the window once it has been open. Started accounting for parent windows in controls.
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-11Fixed the PeekMessage() call as per ↵Pietro Gagliardi
http://blogs.msdn.com/b/oldnewthing/archive/2006/02/10/529525.aspx
2014-02-11Fixed the wndproc not responding: turns out I have to have message dispatch ↵Pietro Gagliardi
in the UI thread...
2014-02-11Derp me, more incorrect error checking! But now a window shows, and the ↵Pietro Gagliardi
process hangs, so progress!
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-11Changed the caching such that the window procedure is held until we added ↵Pietro Gagliardi
the HWND to the cache. Now we have a mysterious class not regsitered issue...
2014-02-11More of the previous error and not printing panics... derp me. Still not ↵Pietro Gagliardi
fixed yet though...
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-11More error corrections; not done yet...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-11Added the window creation code. Now let's hope this works...Pietro Gagliardi
2014-02-11Moved some more data structures to common_windows.go and made more things ↵Pietro Gagliardi
private.
2014-02-11Locked the Windows message loop goroutine to the OS thread.Pietro Gagliardi
2014-02-11Added the Windows message loop.Pietro Gagliardi
2014-02-11Filled in the standard window procedure.Pietro Gagliardi
2014-02-11(see previous commit; part 2)Pietro Gagliardi
2014-02-11Migrated over the window class and window procedure stuff, set up the ↵Pietro Gagliardi
standard window class, and wrote the skeleton window procedure.
2014-02-11Set up initialization on Windows (2/2).Pietro Gagliardi
2014-02-11Set up initialization on Windows (1/2) and fixed a leftover error in ↵Pietro Gagliardi
sysdata_windows.go.
2014-02-11Moved things that I haven't migated yet out of the way for now.Pietro Gagliardi
2014-02-11Started implementing the public API: added the Window and Control types and ↵Pietro Gagliardi
the skeleton of the Windows implementation.
2014-02-11Simplifying file structure by combining controls files (2/2).Pietro Gagliardi
2014-02-11Simplifying file structure by combining controls files (1/2).Pietro Gagliardi