Roi Martin
ddbc9be671
Merge *Gui.Init() with *Gui.NewGui()
2016-10-24 02:24:41 +02:00
Roi Martin
550f04e523
Simplify how frames are drawn
2016-10-19 00:15:47 +02:00
Roi Martin
d5cb1ac216
Minor fixes in doc
2016-10-19 00:12:01 +02:00
Roi Martin
a7019c8547
Add *Gui.Highlight to enable/disable current view's custom color
2016-10-18 23:30:43 +02:00
Roi Martin
c0ae071931
Use *Gui.{SelFgColor,SelBgColor} to set current view's color
...
- Use *Gui.{FgColor,BgColor} to set GUI's color.
- Use *Gui.{SelFgColor,SelBgColor} to set current view's color.
- Drop *Gui.ActiveColor and *View.ActiveColor.
2016-10-18 22:49:31 +02:00
Roi Martin
463428abda
Minor refactoring. Update examples
2016-10-18 00:24:16 +02:00
Henri Koski
7779534f95
Add attribute ActiveColor to configure the color of the current view
2016-10-17 23:25:56 +02:00
Roi Martin
cea263b118
Remove unnecessary error in onKey()
2016-10-11 08:41:22 +02:00
Roi Martin
10d2bb60ea
Fix mouse mode
2016-10-11 08:34:27 +02:00
Roi Martin
76554e4f84
Execute keybind handlers before edition
...
Fix issue #54
2016-10-11 08:27:26 +02:00
Roi Martin
6314568953
Fix frames drawing.
...
Fix issue #57
2016-10-04 00:10:07 +02:00
Roi Martin
13f0442ee4
Minor style changes
2016-10-03 11:10:50 +02:00
govlas
f1f9c0fa53
Add *Gui.DeleteKeybindings
...
*Gui.DeleteKeybindings Deletes all keybindings of view
2016-10-03 11:03:11 +02:00
Roi Martin
30f7d65597
Refactoring
2016-08-30 23:29:55 +02:00
Roi Martin
2a0623774f
Add *Gui.DeleteKeybinding
2016-08-30 23:10:07 +02:00
Roi Martin
5f143ef3de
Fix typo
2016-08-30 22:15:03 +02:00
Gustavo Bittencourt
873bc2c17d
Enable ESCKey binding
...
Permit the binding of the ESCKey correctly. The default setup is the
same (inputMode := termbox.InputAlt) if user doesn't set the
InputESC value explictly.
2016-08-28 00:29:12 -03:00
Roi Martin
8c49240a03
Remove unreachable code
2016-05-17 22:42:36 +02:00
Roi Martin
248e4f4437
Do not show cursor when it's out of screen
2016-02-07 16:58:15 +01:00
Roi Martin
28abcdb8e4
Support set views on top
...
- Add method *Gui.SetViewOnTop
- Add example _examples/ontop.go to test this feature
2016-02-07 16:52:31 +01:00
Roi Martin
bb01d13a95
Add view title (based on the implementation of @conejoninja)
2016-02-06 14:50:30 +01:00
Roi Martin
4aed924ceb
Editor refactoring. Add doc. Simplify _examples.
2016-01-30 02:36:10 +01:00
Roi Martin
ea4d0466c4
Rename Gui.ShowCursor to Gui.Cursor for consistency
2016-01-26 09:55:08 +01:00
Roi Martin
260872b0f7
Set cursor on mouse events
2016-01-26 09:40:06 +01:00
Roi Martin
b5f65e10ad
Minor refactoring
2016-01-26 00:48:12 +01:00
Roi Martin
4b628e45b2
Add Gui.Execute to safely update the GUI from goroutines.
2016-01-26 00:06:54 +01:00
Roi Martin
639723c288
Rename Gui.EnableMouse to Gui.Mouse
2016-01-23 17:18:30 +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
e2590f1300
Decouple edition mode via Editor interface
2015-02-24 13:05:33 +01:00
Roi Martin
4dfc4973e0
Decouple edition mode
2015-02-24 00:26:26 +01:00
Roi Martin
4ad26839aa
Mark views as tainted when they are resized
2015-02-23 16:37:49 +01:00
Roi Martin
622e7cbdf9
Initial implementation of the full edition mode
2015-02-23 00:34:41 +01:00
Roi Martin
b1ad4a9fa7
Remove internal call to View.SetCursor() and fix comment
2015-02-16 23:39:37 +01:00
Roi Martin
0193dee642
Refactoring of Gui.onKey()
2015-02-13 21:02:56 +01:00
Roi Martin
311dedb655
Move handleEdit to edit.go
2015-02-13 18:40:45 +01:00
Roi Martin
9b25959056
Optimizations on view redrawing when View.Wrap is enabled.
...
Refresh internal view buffer only when needed. Do not uses copy's.
2015-02-03 17:09:21 +01:00
Roi Martin
f819237d78
Add more details to Gui.Flush()'s documentation
2015-02-02 01:04:33 +01:00
Roi Martin
d786a4aec1
Update Gui.Flush()'s comment.
2015-02-02 00:46:04 +01:00
Roi Martin
c9c982ea9d
Protect Gui from being flushed concurrently
2015-02-02 00:42:34 +01:00
Roi Martin
98a2fe7a6a
Add missing LICENSE header. Fix typo in LICENSE headers
2015-01-31 20:39:43 +01:00
Roi Martin
f5cd17c3cc
Rename ErrorQuit to Quit
2015-01-30 17:19:11 +01:00
Roi Martin
2db4573e76
Add function Gui.ViewPosition(). Add example.
...
The example "delete.go" will be useful to test optimization algorithms.
2015-01-25 14:07:14 +01:00
Roi Martin
264959b01e
Minor code clean-up
2014-10-18 15:47:24 +02:00
Roi Martin
0aed73291b
Merge branch 'master' of https://github.com/KayoticSully/gocui into Frame
2014-10-18 15:35:01 +02:00
Ryan Sullivan
8d584203d4
Added Support to toggle View Frames
2014-10-17 17:22:28 -04:00
Roi Martin (@nibble_ds)
cbacee3e65
Allow different colors per view
2014-05-03 15:20:46 +02:00
Roi Martin (@nibble_ds)
553b48c903
Fix typo in documentation. Minor fix in demo2
2014-01-27 22:50:02 +01:00
Roi Martin (@nibble_ds)
46b1452e71
Simplify demo2. Add Gui.CurrentView(). Fix keybindings
2014-01-27 22:41:58 +01:00
Roi Martin (@nibble_ds)
4b396e1d8b
Move edit functions to edit.go
2014-01-22 23:44:08 +01:00