Commit Graph

58 Commits

Author SHA1 Message Date
Trevor Slocum e97629839e Add Application.SetBeforeFocusFunc and Application.SetAfterFocusFunc 2020-04-24 15:05:21 -07:00
Trevor Slocum ae4c7b398c Do not handle double clicks by default 2020-04-14 09:46:24 -07:00
Trevor Slocum 1cbf8e9f74 Update presentation demo cover text 2020-04-01 08:42:30 -07:00
rivo 1f765c8695 Merge pull request #422 from rivo/mouse
Add mouse support
2020-03-30 10:22:55 -07:00
Trevor Slocum e29d4b73b9 Make cview thread-safe 2020-03-25 14:32:57 +00:00
Trevor Slocum d045073571 Improve docs regarding widgets 2020-02-25 15:19:17 -08:00
Trevor Slocum b90f05a226 Update README 2020-02-24 18:11:37 -08:00
Trevor Slocum 82689e7fb8 Clear and redraw screen when resizing 2020-02-15 07:53:48 -08:00
Trevor Slocum 2a8ba3160c Fix resize event dimensions on Windows 2020-02-13 15:39:06 -08:00
Trevor Slocum e976a7ce62 Fix mouse support when resuming after Application.Suspend
Resolves #2.
2020-02-02 06:16:27 -08:00
Trevor Slocum 51704b9844 Add documentation for GetChildren methods 2020-01-16 22:34:51 -08:00
Trevor Slocum dbba9159b3 Add Application.RingBell 2020-01-16 18:25:24 -08:00
Trevor Slocum bb52b8e428 Supply screen width and height to resize callback 2020-01-16 07:50:19 -08:00
Trevor Slocum 6d9b735867 Fix dropdown mouse capture behavior 2020-01-04 21:43:26 -08:00
Chris Miller 1207c71f9f Observe mouse events inward ("capture") 2020-01-02 16:48:46 -08:00
Trevor Slocum a9f6e039c7 Fix type error 2020-01-01 20:54:40 -08:00
Chris Miller a52eae5a0d Refactor EventMouse 2020-01-01 20:24:34 -08:00
Chris Miller ad59b43801 Get mouse actions rather than just mouse state 2020-01-01 20:18:40 -08:00
Chris Miller 84d2372c82 Return self 2020-01-01 20:18:40 -08:00
Chris Miller 74b2573bf9 Added mouse handling 2020-01-01 20:18:40 -08:00
Trevor Slocum 004751ce25 Throttle resize event callbacks 2020-01-01 08:37:50 -08:00
Trevor Slocum 2e5eb3f5a4 Add window size change handler 2019-12-30 19:54:52 -08:00
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver 0e689965bb Fixed wrong handling of 8-bit ANSI colors. Fixes #317 2019-07-11 11:30:32 +01:00
Oliver 36893a6697 Minor improvements. 2018-12-26 21:24:39 +01:00
Oliver e432b27b03 unicode.Lm characters were wrongly used as pure combining characters. Fixes #210 2018-12-25 18:55:57 +01:00
Oliver 502ddb9205 Added a clarification. 2018-12-03 17:28:51 +01:00
Oliver d7c8911ef0 Added Application.ForceDraw(). 2018-12-03 10:50:38 +01:00
Oliver 19fbe6241a Making suspended mode work again on Windows. Fixes #179 2018-11-26 12:04:06 +01:00
Oliver 1bfe98092c On Windows, tcell.Screen.Fini() sends a resize event before sending nil. Fixed resulting deadlock. Fixes #179 2018-11-19 10:35:28 +01:00
Oliver ebf651d1c0 Bugfix: nil return value in input capture should not stop the event loop. Fixes #179 2018-11-10 11:10:01 +01:00
Oliver 1dd674a1b9 Simplified the queuing of Draw() calls, also introduced QueueUpdateDraw(). #172 2018-11-05 10:53:57 +01:00
Oliver c22d5570be Bugfixes/improvements to PR #172. 2018-10-28 13:42:49 +01:00
Marc CB 313fed77b2 make primitive updates thread-safe using channels 2018-10-09 00:02:02 -04:00
Oliver fed6446838 Added the possibility to provide your own tcell.Screen object to Application. Resolves #159 2018-09-05 13:26:22 +02:00
Oliver cc64ead1ed Made Application.Draw() thread-safe (for real this time). Fixes #136 2018-07-27 16:30:50 +02:00
Oliver 83483397e8 Cosmetic improvements. 2018-06-28 14:49:42 +02:00
Konstantin Vorobyev 01a39a486d Review feedback 2018-06-20 19:32:19 +02:00
Konstantin Vorobyev 2ac0e9e086 Block main event loop with mutex during Suspend() call 2018-06-20 17:04:03 +02:00
Oliver 11727c933b Added suspended mode to Application. (Swallows one key event, tcell issue pending.) Resolves #70 2018-03-13 08:16:09 +01:00
Oliver 45acc0d895 Added getters for some callback functions. Resolves #65 2018-03-10 23:30:49 +01:00
Oliver c96894c0cf Bugfix which caused a crash in Table class. Fixes #67 2018-03-10 12:59:42 +01:00
Oliver c2f07f9548 Some housekeeping. 2018-03-05 16:37:10 +01:00
Oliver 1b155a1def Application now provides direct access to the screen object via before/after-draw callback functions. Resolves #59 2018-02-20 17:15:42 +01:00
Oliver 4db30f9ed4 "FieldLength" is now "FieldWidth" everywhere for clarity and consistency. Sorry for this breaking change. It is better in the long run. 2018-01-17 21:17:59 +01:00
Oliver 626453b2a6 All primitives now offer a way to intercept all key events sent to them. Also made the global key event intercept handler more general/consistent. Resolves #22 2018-01-14 21:29:34 +01:00
Oliver 4153189e1b A resize event should have the screen cleared before redrawing. Fixes #19 2018-01-13 12:43:12 +01:00
Oliver fdab2627c3 Calling Application.Draw() for global key handlers which steal the event. 2018-01-12 17:39:58 +01:00
Oliver 17c785e1f8 Application does not lock on PollEvent() call anymore. Should resolve gridlocks when calling SetRoot() in goroutines. Resolves #6 2018-01-11 11:54:22 +01:00
Oliver 8c9be84ef8 Various improvements. 2018-01-01 21:50:20 +01:00