Commit Graph

76 Commits

Author SHA1 Message Date
Trevor Slocum be5c1fcafd Draw application after updating root primitive via Application.SetRoot
Resolves #77.
2021-08-08 17:30:29 -07:00
Trevor Slocum 4616c03bbe Fix Application.QueueEvent
Resolves #76.
2021-08-08 17:16:10 -07:00
Trevor Slocum 492ab21896 Add Application.HandlePanic
Resolves #74.
2021-08-03 13:20:44 -07:00
Trevor Slocum 652afb9875 Update Application.QueueUpdateDraw to accept one or more primitives to draw instead of the whole screen 2021-06-06 20:44:56 -07:00
Trevor Slocum ca75748dff Update Application.Draw to accept one or more primitives to draw instead of the whole screen 2021-06-06 20:35:05 -07:00
Trevor Slocum 1653d59d6b Restructure event loop to only poll screen between updates
Relates to #58.
2021-04-24 23:08:49 -07:00
Trevor Slocum 9dbc4a3a03 Suspend screen rather than finalizing it and then creating a new screen
Relates to #58.
2021-04-23 09:47:33 -07:00
Trevor Slocum de3c277462 Remove reference to resolved tcell bug 2020-12-15 10:25:55 -08:00
Trevor Slocum 79a35fe4de Handle events before executing queued updates 2020-11-07 09:01:41 -08:00
Trevor Slocum 614c61839b Clarify that WordWrap accepts unescaped text only
Resolves #27.
2020-11-03 09:34:21 -08:00
Trevor Slocum a55c812490 Add Application.Init 2020-10-22 18:13:06 -07:00
Trevor Slocum df2d4e418e Support bracketed paste mode via tcell 2020-10-16 09:25:40 -07:00
Trevor Slocum 4aae94db85 Add Application.GetScreen and Application.GetScreenSize
Resolves #41.
2020-10-12 10:07:50 -07:00
Trevor Slocum 94351006a1 Remove Application.ForceDraw 2020-10-07 21:27:30 -07:00
Trevor Slocum ed5e6d94dd Remove return values from methods which return their primitive (breaks chaining) 2020-10-07 16:35:21 -07:00
Trevor Slocum 6b34a95e75 Print text using []byte instead of string, calculate string width using runewidth instead of uniseg 2020-10-06 13:16:37 -07:00
Trevor Slocum 624a3fae3c Use updated tcell mouse buttons 2020-08-31 08:44:33 -07:00
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
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