Commit Graph

78 Commits

Author SHA1 Message Date
Pietro Gagliardi 2c275b76ae And finally migrated Area back. 2018-08-26 17:22:05 -04:00
Pietro Gagliardi 62ac252773 Moved all the Go files out of the way again, this time so we can migrate them to more proper cgo usage. 2018-08-26 09:55:07 -04:00
Pietro Gagliardi 60f0882df9 Migrated uiArea back. 2018-08-12 16:28:19 -04:00
Pietro Gagliardi 308e253e0f Moved the existing .go files out of the way and replaced ui.h with the alpha4 ui.h. 2018-08-11 16:18:01 -04:00
Pietro Gagliardi 439f3f476c Added Area.ScrollTo(). 2016-01-24 21:50:59 -05:00
Pietro Gagliardi cb632002e5 Wrote clarification on the sizes of points parameters to Areas. 2015-12-21 23:50:36 -05:00
Pietro Gagliardi a1ce59f60d Wrote up Area for real this time. 2015-12-19 19:33:06 -05:00
Pietro Gagliardi e67ed84ad9 Did some build fixes. 2015-12-16 14:03:47 -05:00
Pietro Gagliardi f8e3f12ab0 LET'S GET THIS FINAL REWRITE EVER STARTED 2015-12-11 20:37:59 -05:00
Pietro Gagliardi 982004d050 go fmt. Precursor to bug report filing. 2014-10-02 10:05:53 -04:00
Pietro Gagliardi 77bf566ebb ...in with the new. 2014-08-30 23:02:02 -04:00
Pietro Gagliardi 155899c65e Out with the old... 2014-08-30 23:01:08 -04:00
Pietro Gagliardi 8a81650b3d Moved it all back; the preemptive multitaksing during an event handler kills us on all platforms. Going to have to restrict ALL GUI accss to happening from one t hread, so going to need to drop uitask entirely and have just a start() callback for startup code and a post() function for posting requests to windows (like channel sends but into a perpetual buffer). 2014-07-02 22:53:03 -04:00
Pietro Gagliardi 5d339e656b Moved everything out of the way pending rewrite. 2014-07-02 17:13:40 -04:00
Pietro Gagliardi ffa1bbe0b9 Restored the previous new API. I'm going to change it so that events are callbacks rather than using a window handler, but other than that... yeah. 2014-06-30 22:48:12 -04:00
Pietro Gagliardi 33155f7496 Reverted everything back to the old API. 2014-06-30 09:57:44 -04:00
Pietro Gagliardi ea6200a432 Began the migration to the new API. Removed locks from the public control APIs; they won't be needed anymore. 2014-06-28 01:05:06 -04:00
Pietro Gagliardi 1eeadc000a Made the new sizing system work on Windows. 2014-06-25 23:21:57 -04:00
Pietro Gagliardi 057f0eaf53 Migrated existing controls to the new sizing system. 2014-06-25 22:17:26 -04:00
Pietro Gagliardi 39f0c352fb Added the necessary work to make new regular Labels work on the other platforms. 2014-06-25 11:58:13 -04:00
Pietro Gagliardi 5fa1bd22e2 More go fmt. That completes the main package go fmt. Won't bother with test or tools. 2014-06-10 16:05:41 -04:00
Pietro Gagliardi a0e8048b06 Had Area.SetSize() explicitly labelled as repainting the whole Area; made sure it does that on GTK+ (it already did on Windows and Mac). I think we're ready to declare the API as it stands now stable! 2014-06-09 22:47:45 -04:00
Pietro Gagliardi 764010bd81 Areas have worked on all platforms forever now; remove the GTK+ only note from its documentation. 2014-06-09 22:38:22 -04:00
Pietro Gagliardi 37ab5f41a7 Cleaned up the scrollbars documentation in the Overview. 2014-06-09 22:37:43 -04:00
Pietro Gagliardi fa4094adeb Added Area.RepaintAll() (requested by aybabtme on the Gopher Academy Slack) and implemented it on Mac OS X. 2014-06-09 22:11:08 -04:00
Pietro Gagliardi 7adc18caf1 Removed TODO on getting the available button count: this isn't meaningful. (desrt in irc.gimp.net/#gtk+ confirmed that GDK has no such function and both him and mikeash in irc.freenode.net/#macdev pointed out issues with such a function.) 2014-06-08 22:38:42 -04:00
Pietro Gagliardi 77fdd9d1c3 Documented window switch clicks in Area and implemented them on Windows and Mac OS X. 2014-06-07 04:19:37 -04:00
Pietro Gagliardi 83e4f05592 Fixed typo in area.go documentation. 2014-06-07 00:17:50 -04:00
Pietro Gagliardi f539747546 Set Area's preferred size in the documentation and on Windows and Mac OS X. 2014-06-06 23:03:29 -04:00
Pietro Gagliardi b6ca650692 Added Help key handling (as Insert) on Mac OS X. 2014-06-06 19:35:26 -04:00
Pietro Gagliardi 61ed2ea822 Marked a sentence in the Area docs as not being active. 2014-06-06 10:09:18 -04:00
Pietro Gagliardi d7c37671f3 Removed the TODO on memstride: we were already using it?????? It is working correctly... No idea why that TODO was there; I know I added it when I was too tired to think though. 2014-06-03 22:32:24 -04:00
Pietro Gagliardi bf6c29b39c Made multiple modifier keys undefined; removed the TODO there. If I need to change the behavior I can do it later. 2014-06-03 22:26:25 -04:00
Pietro Gagliardi 3745acf57b Decided not to rename MouseEvent.Pos. 2014-06-03 22:23:48 -04:00
Pietro Gagliardi a9ecc296ef Documented the changed event handling of Area. 2014-06-02 11:27:37 -04:00
Pietro Gagliardi 1b23de9c78 Changed the Modifiers behavior in KeyEvent to more properly handle modifier keys. This is just the public interface for now; next comes all the backends. 2014-05-29 11:42:17 -04:00
Pietro Gagliardi 511f774649 Finished the Area clicking stuff: formalized the behavior in documentation in area.go, pointed out that Mac OS X already behaves as expected, updated some comments, and removed the relevant TODO. 2014-05-23 23:48:17 -04:00
Pietro Gagliardi 13397f91ee Changed the meaning of the Modifiers keys to be positional, added Super, and pinned down Meta vs. Alt. All but the Meta/Alt one were done after discussion in #go-nuts about how to handle differences in user expectation properly. This is the portable interface only; each platform implementation comes next. 2014-05-16 18:16:25 -04:00
Pietro Gagliardi fefab429fc Documented dragging issues caused by how Mac OS X handles mouse events; also determined that multiple buttons held at once only generates one mouseDragged: signal. 2014-05-10 14:27:29 -04:00
Pietro Gagliardi 3508239bf7 Completed extending of mouse buttons to the system's limit; defined (as undefined) the mouse drag behavior for buttons >= 3; implemented all that on the GTK+ side, and decided to have MouseEvents.Held[] be sorted (documentation only for now; need to check the code to make sure it follows). Good Lord... 2014-05-07 17:51:04 -04:00
Pietro Gagliardi 6716ce3998 Added a quick disclaimer about Area mouse button numbers and documentation. 2014-04-29 16:27:16 -04:00
Pietro Gagliardi 2528fa9cfd Added extra mouse buttons to Areas on Windows. 2014-04-29 16:26:29 -04:00
Pietro Gagliardi a98072a23b Decided not to cap mouse buttons at 3; reflected this in the public interface and in the TODO file. Platform implementations come next. 2014-04-29 16:03:37 -04:00
Pietro Gagliardi 44b061aa31 More TODOs (because I can't think right now). 2014-04-20 23:29:38 -04:00
Pietro Gagliardi da2d4da15a Added click-to-focus to GTK+ Areas and documented that click-to-focus happens; also TODOs related to that. 2014-04-14 23:11:28 -04:00
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 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 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