Commit Graph

859 Commits

Author SHA1 Message Date
Pietro Gagliardi 652797bd3e More TODOs. 2014-03-29 18:55:50 -04:00
Pietro Gagliardi a94d154e1b Implemented Area.SetSize() on Windows. 2014-03-29 18:51:22 -04:00
Pietro Gagliardi 17ae3546d2 Added repaint after Area event on Windows. 2014-03-29 18:28:37 -04:00
Pietro Gagliardi 8f4780f5d7 Added part of keyboard input on Windows. Need to repaint the window on event return and handle area sizes now... 2014-03-29 17:52:40 -04:00
Pietro Gagliardi 9423126354 Added positions of all other keys to the keyboard test. Now ready for the Windows port! 2014-03-29 15:56:57 -04:00
Pietro Gagliardi da7363a574 Added the numeric keypad and function keys to the keyboard test. 2014-03-29 14:05:43 -04:00
Pietro Gagliardi 85182aec67 More TODOs. 2014-03-29 13:11:19 -04:00
Pietro Gagliardi 5190c7c763 Finished re-adding the numeric keypad keys and fixing up the GTK+ Area implementation to handle the new KeyEvent. Everything seems to work on this end... 2014-03-29 13:09:27 -04:00
Pietro Gagliardi 75acdfd9ad Re-added the numeric keypad keys to ExtKey and removed predefkeys in area_unix.go since all are now being handled. 2014-03-29 13:01:42 -04:00
Pietro Gagliardi 84450cfa64 Added the proper provision for numeric keypad entry. 2014-03-29 12:57:54 -04:00
Pietro Gagliardi a038934ffb Added numeric keypad question to Area planning document; also reformatted it a bit. 2014-03-29 12:35:28 -04:00
Pietro Gagliardi 07a877fa6e Updated the GTK+ implementation and test programs to reflect the new KeyEvent setup. 2014-03-29 12:33:36 -04:00
Pietro Gagliardi 4dd7eebc31 Added the scancode->KeyEvent.Key mapping table. 2014-03-29 12:33:20 -04:00
Pietro Gagliardi 76d24be6b0 Removed the numpad constants pending re-evaluation of how to handle those. 2014-03-29 12:33:00 -04:00
Pietro Gagliardi 0d75303dc3 Changed the definition of KeyEvent to be positional. The implementation has not been written, and thus the package will not build yet. 2014-03-28 21:10:42 -04:00
Pietro Gagliardi 359462854b Fixed Scan Codes Demystified article name in the Area planning document. 2014-03-28 18:10:49 -04:00
Pietro Gagliardi 675d9de015 YES RESOLVED THE KEYBOARD INPUT PROBLEM WOO YEAH YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY 2014-03-28 18:01:41 -04:00
Pietro Gagliardi 769a9ca7cb Added some of the ExtKeys to the keyboard layout test. 2014-03-27 23:57:52 -04:00
Pietro Gagliardi ab6e7121e4 Added a flag to AreaHandler.Key()/Mouse() to indicate that a repaint is needed after that event has been handled. (Having Repaint() as a method deadlocked for the same reason resizing deadlocked before.) 2014-03-27 20:31:23 -04:00
Pietro Gagliardi 9dc4f8694c Added code to the keyboard test to draw the modifier keys. 2014-03-27 19:43:02 -04:00
Pietro Gagliardi 4a1d259f5c Added the beginning of a keyboard input test to be written. Also more TODOs. 2014-03-27 18:31:23 -04:00
Pietro Gagliardi 12bc0dc440 Put FreeBSD dependency installation notes in the README. 2014-03-27 17:24:00 -04:00
Pietro Gagliardi 9f226cf599 Fixed freebsd/386 VM problems; tested and works. 2014-03-27 17:21:58 -04:00
Pietro Gagliardi 7637193aff The latest go tip fixes cgo to not be confused by typedefs of incomplete types like cairo_t; remove the hack to make GTK+ builds work in the meantime. As a side effect, package ui now requires go tip to build; reflected this in the README. 2014-03-27 17:20:46 -04:00
Pietro Gagliardi 45cd12cccf Printed the hardware_keycode on GTK+ Area key events... something came up so I think I might be able to do what I originally wanted to do with keyboards... also more TODOs. 2014-03-26 23:13:31 -04:00
Pietro Gagliardi f5084c07d4 Fixed import formatting on area_unix.go. I'm rereading the GLFW source; it makes some interesting assumptions that might allow me to get a better solution to this whole keystroke ordeal after all... if I'm provided with irrefutable evidence. 2014-03-26 11:01:37 -04:00
Pietro Gagliardi 9533b3d7d4 Added Area mouse events on Windows. Also more TODOs. 2014-03-25 15:06:43 -04:00
Pietro Gagliardi 2b48f7cabf Wrote the code to actually scroll Areas on Windows. 2014-03-25 09:40:14 -04:00
Pietro Gagliardi 13370c22d3 Added the actual scrolling to Windows Areas. Now to just adjust the cliprect properly... 2014-03-25 08:23:31 -04:00
Pietro Gagliardi 136f2262fd More TODOs (and some done TODO elimination). 2014-03-25 07:21:21 -04:00
Pietro Gagliardi 3c0bcb6d68 Made the scrollbars on Windows Areas actually scroll. There are some kinks that need to be worked out before we can move on... 2014-03-25 07:11:10 -04:00
Pietro Gagliardi 0c3b64106c Added scrollbars to Areas on Windows; they seem to respond properly to resize events, but since we're not handling scroll events, the scroll position won't change yet. (We're also not drawing with scrolling just yet.) 2014-03-25 02:29:30 -04:00
Pietro Gagliardi 81de64cafc More TODOs. 2014-03-24 23:08:36 -04:00
Pietro Gagliardi 30a31b1617 Implemented Area painting on Windows. 2014-03-24 23:01:06 -04:00
Pietro Gagliardi cfcac03df7 Added GDI+ to the package's Windows version: DLL loaded, initialized, and shut down. It will be used for drawing to Areas because using GDI itself is more complex than it needs to be. 2014-03-24 17:01:33 -04:00
Pietro Gagliardi 5c8587ab00 Started the Windows implementation of Area. 2014-03-24 13:32:38 -04:00
Pietro Gagliardi 6da4a9ba9f Changed -qq to -y in the apt-get install line in .travis.yaml because I want to see the full details of the install. 2014-03-24 11:54:30 -04:00
Pietro Gagliardi 645bc6bdcb OK lets try doing cross-platform builds with Travis.ci again; also added multiarch-support again for testing 2014-03-24 11:45:45 -04:00
Pietro Gagliardi d1a41cd95a Corrected a copy-paste fail in stdwndclass_windows.go that broke compilation (this is why you test builds on all platforms, folks!) and added a TODO about resizing on Windows in the meantime. 2014-03-24 11:36:15 -04:00
Pietro Gagliardi 6e4ec82af5 More TODOs. 2014-03-23 21:32:35 -04:00
Pietro Gagliardi bbccf96981 Fixed the shrinking not working: the Cairo clip rect apparently can fall outside the actual size of the widget. (I did notice this before.) 2014-03-23 21:31:29 -04:00
Pietro Gagliardi cd49e05da8 Fixed a slight documentation error in area.go. 2014-03-23 21:04:47 -04:00
Pietro Gagliardi a41f582866 Added Area resizing. Everything mostly works, but not making things smaller... 2014-03-23 20:54:11 -04:00
Pietro Gagliardi 0cc13633cb Added the tweets mentioned in one of the comments in area.go to the Area planning document. 2014-03-23 17:44:23 -04:00
Pietro Gagliardi 7acb3c5272 Added GDK_KEY_Alt_L/R to the modifier key handling in GTK+ key events. 2014-03-23 17:26:11 -04:00
Pietro Gagliardi aee2b98270 Fixed modifier keys in GTK+ not being registered by KeyEvent on first press. 2014-03-23 17:24:13 -04:00
Pietro Gagliardi d1376e035d Added the GTK+ implementation of Area keyboard events. Seems to work fine for now... 2014-03-23 17:12:30 -04:00
Pietro Gagliardi 646e91b25a Had ExtKey start at 1 so KeyEvent.ExtKey can be 0. 2014-03-23 17:08:46 -04:00
Pietro Gagliardi 234f88b535 Okay I'm done; fuck keyboards. 2014-03-23 13:03:01 -04:00
Pietro Gagliardi 58420cbb1c Update to previous commit 2014-03-23 12:12:36 -04:00