Roi Martin
a251da5a9f
Minor syntax clean-ups
2017-08-20 00:28:06 +02:00
Roi Martin
70497a1d13
Fix typo
2017-08-20 00:17:11 +02:00
Roi Martin
6564cfcacb
Rename *Gui.Execute() to *Gui.Update()
2017-08-19 00:13:30 +02:00
Roi Martin
7ba3ea9d2c
Use ColorDefault as default bg and fg color
2017-08-16 19:28:26 +02:00
Roi Martin
7e8dafc560
Remove empty line
2017-08-16 00:58:08 +02:00
telecoda
4316bb79d4
Check for collisions in reverse view order
2017-08-15 20:52:01 +02:00
Roi Martin
a984617410
Simplify SetViewOnBottom
2017-08-15 20:34:06 +02:00
Julien Breux
93acb816a8
Add set view on bottom feature
2017-08-15 20:19:15 +02:00
Roi Martin
88d2b471d4
Rename *Gui.Ascii to *Gui.ASCII
2017-02-11 02:06:03 +01:00
Roi Martin
cfc4e0298f
Add *Gui.Ascii to enable ASCII line art
2017-02-10 23:17:26 +01:00
Roi Martin
56a1633c76
Minor style changes
2016-11-13 20:45:04 +01:00
Dustin Willis Webber
ff841413b6
256 OutputMode support
2016-11-13 14:06:04 -05:00
Roi Martin
0975ddb2a8
SetManager and SetManagerFunc delete keybindings
2016-10-30 13:20:05 +01:00
Roi Martin
308833a2cf
Add *Gui.Views(). Add flow layout example
2016-10-27 23:09:13 +02:00
Roi Martin
aa4ac778d3
Move Editor into View. Update docs
2016-10-27 00:43:28 +02:00
Roi Martin
19125a0a67
Do not edit the view if a keybinding matches the event
2016-10-26 23:22:51 +02:00
Roi Martin
e38ba07224
Minor refactoring. Avoid shadow vars.
2016-10-24 08:50:51 +02:00
Roi Martin
40dbad569f
Introduce GUI managers to replace layout functions
2016-10-24 08:36:23 +02:00
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