Commit Graph

12 Commits

Author SHA1 Message Date
Roi Martin 40dbad569f Introduce GUI managers to replace layout functions 2016-10-24 08:36:23 +02:00
Roi Martin 4b628e45b2 Add Gui.Execute to safely update the GUI from goroutines. 2016-01-26 00:06:54 +01:00
Roi Martin faa12e105a Full mouse support. Add mouse example. Make golint happy.
- Full mouse support based on hazbo's initial work.
- Add example to show mouse support.
- Fix comments, naming conventions, etc. to make golint happy.
2016-01-23 16:07:42 +01:00
Harry Lawrence c36dfefa9b Enabled very basic mouse support
I see this as work in progress, for now. In terms of the public API, all the
end user has to do is something like g.EnableMouse = true. I think this is
reasonable and may not have to really change. Although I think the way it's
used with KeyBindings should maybe be changed. We need to expose the X and Y of
the click event - I'm not sure if this is possible currently, although Gui has
an unexported event field of type termbox.Event that I believe contains this
information.

Mouse support is something I need for a project I'm using Gocui, I noticed
there was an issue open in relation to this so I figured I'd send back what
I've started already.

Thanks for making gocui - it's awesome.
2015-12-11 11:51:43 +00:00
Roi Martin 0193dee642 Refactoring of Gui.onKey() 2015-02-13 21:02:56 +01:00
Roi Martin 98a2fe7a6a Add missing LICENSE header. Fix typo in LICENSE headers 2015-01-31 20:39:43 +01:00
Roi Martin cebc72c201 Add Modifier ModNone. Simplify examples 2015-01-24 14:23:46 +01:00
Roi Martin (@nibble_ds) 5dc9b75bc3 Add API documentation 2014-01-19 17:03:52 +01:00
Roi Martin (@nibble_ds) 8a88a69100 Add LICENSE/AUTHORS headers and files 2014-01-14 20:11:12 +01:00
Roi Martin (@nibble_ds) cee092a9f8 Clean up API 2014-01-11 20:29:16 +01:00
Roi Martin (@nibble_ds) eea442c6fb Minor fix 2014-01-09 21:58:31 +01:00
Roi Martin (@nibble_ds) 0c57f28caa Implement keybindings. Rename AddView to SetView. 2014-01-06 01:18:00 +01:00