Commit Graph

31 Commits

Author SHA1 Message Date
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
Trevor Slocum cdeff20296 Use sync.RWMutex in all widgets
Resolves #30.
2020-08-02 10:06:34 -07:00
Trevor Slocum f477be8ba4 Fill nil Flex space with default background color
Resolves #22.
2020-06-14 14:14:15 -07:00
Trevor Slocum 0fa19fee28 Fix panic when clicking nil primitive in Flex
Resolves #20.
2020-06-09 15:02:17 -07:00
Trevor Slocum 961c23145c Fix default background transparency of Flex and Grid 2020-05-24 21:40:34 -07:00
Trevor Slocum 48c31ff1a0 Remove wiki references 2020-04-26 16:59:33 -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 5f880bc2c7 Migrate to GitLab 2020-01-22 15:28:19 -08:00
Trevor Slocum 51704b9844 Add documentation for GetChildren methods 2020-01-16 22:34:51 -08:00
Chris Miller 74b2573bf9 Added mouse handling 2020-01-01 20:18:40 -08:00
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver de7ae86b5b Avoid div-by-0 in case Flex item sizes are all 0. Resolves #332, resolves #334 2019-10-17 11:33:25 +02:00
Oliver 1ee0c559cc Switched flexItem slice to pointers. 2018-06-09 22:16:38 +02:00
Oliver 398a6c2f77 Added a function to resize a Flex item. Resolves #125 2018-06-07 14:19:25 +02:00
Oliver c0b219f400 Bugfix: Flex will call Box.Draw() again. Fixes #104 2018-05-15 16:37:51 +02:00
Oliver d7d44cb0d2 Flex and Grid don't clear their backgrounds anymore. Resolves #104 2018-05-02 17:02:52 +02:00
Frank Braun bf464200bc Documentation fix for flex.AddItem()
The proportion must be at least 1 if fixedSize == 0.
2018-04-19 15:49:26 +00:00
Oliver 3bac79f308 Added RemoveItem() to Grid and Flex. Resolves #63 2018-03-02 17:07:46 +01:00
Oliver f6602e7eb1 Updated Flex documentation. 2018-02-15 18:35:27 +01:00
Oliver acf9158c77 Flex layout can have nil elements. 2018-02-06 12:30:52 +01:00
Oliver 5fd6365352 Flex must call Box's Draw() function first. Fixes #26 2018-01-14 13:50:58 +01:00
Oliver e4f97a6436 Added links to Wiki to documentation. Also replaced screenshot with GIF screencast. 2018-01-07 16:39:06 +01:00
Oliver 1cc5331a5c Fixed focus delegation. 2017-12-27 22:55:50 +01:00
Oliver f6f32eec04 Flex must know where to delegate focus. 2017-12-27 22:27:42 +01:00
Oliver 91d78f146b Added proportions to Flex layout. 2017-12-26 21:49:11 +01:00
Oliver 8eb4c5ef48 Added TextView. All subclasses of Box now also have inside padding. 2017-12-21 18:08:53 +01:00
Oliver dad7891c89 Added Checkbox, Modal, and Pages. 2017-12-20 20:54:49 +01:00
Oliver 2bd80aa513 Added DropDown. Also needed to refactor a bit to reduce dependencies. 2017-12-18 20:04:52 +01:00
Oliver d5bf1a4ef0 Added list, improved existing primitives, and fixed a bunch of bugs. 2017-12-16 22:48:26 +01:00
Oliver f9f139caaf First commit. Some basic functionality. Publishing to GitHub now. 2017-12-15 15:29:21 +01:00