Commit Graph

702 Commits

Author SHA1 Message Date
Pietro Gagliardi 3cb3d5f97e Clarified the previous commit. 2014-04-14 12:51:20 -04:00
Pietro Gagliardi a29abd11c0 Ensured that pressing Modifiers+Key/ExtKey does not produce an event with just the Key/ExtKey. 2014-04-14 12:47:49 -04:00
Pietro Gagliardi d27d25cbc0 Wrote non-working code to get Windows to have Window sizes not count window decoration. Technically it does work, but it doesn't seem to fix Area scrollbars... which reminds me, the default configuration for the keyboard test exhibits the "last pixel" but mentioned in one of the TODOs in area_windows.go on both scrollbars, so let's fix that first anyway. I'll move the TODO for window decoration to the future plans after I get a definite answer about GTK+'s behavior. 2014-04-13 23:04:53 -04:00
Pietro Gagliardi 3bb9f41305 Fixed Mac OS X so that window sizes do not include the titlebar and frame. 2014-04-13 20:16:05 -04:00
Pietro Gagliardi fb50badf00 Fixed Area test time label weirdness by making Labels truncate their text instead of word-wrapping on all platforms. This doesn't explain GTK+/Wayland, alas. 2014-04-13 18:05:07 -04:00
Pietro Gagliardi e4c27a4a72 Fixed weird Area time label truncation on Windows; more TODOs and future plans related to that. 2014-04-13 16:46:22 -04:00
Pietro Gagliardi 7a436e8bd3 Removed winbuttonsize/; we're not going to use that for a while (the sizing we have now is fine; not optimal, but it works, for the most part). (We can always pull it back later.) 2014-04-13 13:13:27 -04:00
Pietro Gagliardi 01cb9ce7d3 Renamed unmigrated/ to experiments/ as I have now migrated everything and that folder now contains experimental code. 2014-04-13 13:12:45 -04:00
Pietro Gagliardi 719cab8742 Migrated cursors_windows.go and icons_windows.go. 2014-04-13 13:11:17 -04:00
Pietro Gagliardi eead01b176 Removed unmigrated/main_windows.go; that test program has long since been unneeded. 2014-04-13 13:01:53 -04:00
Pietro Gagliardi 6c265dd54d Rolled back the Windows horizontally scrolling Listbox changes because I can't seem to get it to work on Mac OS X (and keeping that code there is inefficient); removed the guarantee of horizontal scrollbars in Listbox and made that a future plan. Both the Windows and the non-working Mac OS X code is in unmigrated/hscrolllistbox.go (and the unmigrated/ folder will be renamed shortly). 2014-04-13 13:00:07 -04:00
Pietro Gagliardi 417bdb8949 Consolidated NSScrollView code on Mac OS X to be all in one place. 2014-04-13 12:52:10 -04:00
Pietro Gagliardi 136ddf5a5b More shuffling of TODOs and future plans. 2014-04-13 10:27:34 -04:00
Pietro Gagliardi bd1926db17 Added horizontal scrollbars to Listboxes on Windows. Also fixed typos and bugs in Windows sysData.selectedTexts(). 2014-04-13 02:57:35 -04:00
Pietro Gagliardi dcc21eb087 Pinned down horizontal scrollbar behavior on Listboxes; also reworded the Area scrollbar behavior sentence a bit to match. Now to actually implement the changes... 2014-04-13 02:00:18 -04:00
Pietro Gagliardi 3fc2ed8a2a More TODO/future plan shuffling. 2014-04-13 00:45:55 -04:00
Pietro Gagliardi c5b4859311 More TODOs and future plans. Also finally removed the TODO about incorrect Area redraw on Windows. 2014-04-13 00:34:08 -04:00
Pietro Gagliardi c04b9112a5 More TODOs and future plans. 2014-04-12 22:33:51 -04:00
Pietro Gagliardi d4c79539af Fixed Listboxes on Mac OS X having an initial selection. 2014-04-12 22:05:34 -04:00
Pietro Gagliardi 274fa0c292 Fixed Comboboxes on Mac OS X having an initial selection. This also lays the groundwork for adding Combobox/Listbox.Select() as a public function... 2014-04-12 21:49:41 -04:00
Pietro Gagliardi b9e5ef8e4b Verified that the Listbox item text is vertically positioned properly on Mac OS X. 2014-04-12 21:27:15 -04:00
Pietro Gagliardi ac633a8694 Removed the GDI+ dependency on Windows since we no longer use it. 2014-04-12 15:42:13 -04:00
Pietro Gagliardi 41ce9c9ed0 Updated README to reflect the new Area image.RGBA changes. 2014-04-12 15:37:17 -04:00
Pietro Gagliardi 0a1dcfa67f Made Areas on Windows flicker-free. 2014-04-12 15:36:05 -04:00
Pietro Gagliardi 97b2542573 Fixed ARGB rendering on Windows. Now to make it flicker-free... 2014-04-12 15:26:27 -04:00
Pietro Gagliardi aef419a83e Documented the thread safety of AreaHandler and Area.SetSize(). 2014-04-12 14:07:31 -04:00
Pietro Gagliardi ae4950bbd8 Switched to ARGB drawing in Areas on GTK+. 2014-04-12 13:48:59 -04:00
Pietro Gagliardi e3fdc76c5b Rewrote Area code on Windows to use alpha-premultiplied RGB and only use GDI functions to do it... and it doesn't quite work right yet. 2014-04-11 21:30:19 -04:00
Pietro Gagliardi 57088b9787 Added a general-purpose function to produce a native-endian ARGB 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-11 18:00:51 -04:00
Pietro Gagliardi 5581d41f88 Switched to alpha-premultiplied image data for Areas on Mac OS X. This is the easiest change; it involves removing one bit flag from the NSBitmapImageRep constructor (the other changes are indentation changes). 2014-04-11 16:17:06 -04:00
Pietro Gagliardi 6f0d114a8b Changed from using image.NRGBA to image.RGBA (premultiplied alpha) in 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-11 16:13:18 -04:00
Pietro Gagliardi 179ddba93a Added CS_HREDRAW and CS_VREDRAW to our Area on Windows, just to be safe. 2014-04-11 11:32:27 -04:00
Pietro Gagliardi 586ac941a4 Attempted to fix the Windows transparency issues; we're not quite there... flicker... 2014-04-11 11:29:07 -04:00
Pietro Gagliardi e713b59bec Removed TODO about Windows -1 conversions, as the Go spec specifically says 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-10 20:52:12 -04:00
Pietro Gagliardi d6abf79932 Added bounds checking to NewArea() and Area.SetSize() such that an Area must have a valid size. 2014-04-10 20:42:01 -04:00
Pietro Gagliardi 1c11ef2d9c More TODOs. 2014-04-10 19:38:48 -04:00
Pietro Gagliardi a01ffafba0 Fixed Area mouse events being sent when something happens outside the Area itself. 2014-04-10 18:52:43 -04:00
Pietro Gagliardi bd907dadd8 More future plans and TODOs. 2014-04-10 16:44:45 -04:00
Pietro Gagliardi 1516c0d938 Decided not to make Labels selectable; nothing does it and it's a platform detail. 2014-04-10 16:23:51 -04:00
Pietro Gagliardi 09e92b0eb3 Documented scrollbars on Listbox and Area to the best of my ability, shuffling the appropriate TODOs around. 2014-04-10 16:18:53 -04:00
Pietro Gagliardi 7b8580b12d More TODOs. 2014-04-10 13:35:27 -04:00
Pietro Gagliardi 865a0ec662 "Fixed" the zero-size Combobox drop-down on Windows by having Windows fix it 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-10 12:53:23 -04:00
Pietro Gagliardi 013e8707da Removed unnecessary space if the secondaryText argument to MsgBox***() is an 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-10 12:35:37 -04:00
Pietro Gagliardi 9e185d815e Documented that event channels can be assigned to each other to collapse events. 2014-04-10 11:59:40 -04:00
Pietro Gagliardi 0a54daa7b1 More TODOs and future plans. 2014-04-09 22:37:36 -04:00
Pietro Gagliardi 8259e6d1f8 Added a test for the extremities of the Area's actual drawing area to make sure all pixels are shown on all platforms. That seems to be the case right now... Also more TODOs. 2014-04-09 20:44:07 -04:00
Pietro Gagliardi a2edde63c2 More future plans. 2014-04-09 20:09:20 -04:00
Pietro Gagliardi 78bb4cdace Fixed Area drawing assuming the first pixel of the *image.NRGBA is at i.Pix[0]. 2014-04-09 18:26:20 -04:00
Pietro Gagliardi bfb259da27 Tried to resolve the use a single window class for each type of custom window TODO; found it was nothing but problems, so moved to future plans. 2014-04-09 13:22:16 -04:00
Pietro Gagliardi e395adb214 Fixed GTK+ windows having the wrong background. 2014-04-09 12:04:04 -04:00