Commit Graph

32 Commits

Author SHA1 Message Date
Oliver ae9464cc35 Upgraded printing and style handling to the new definition of tcell.ColorDefault. 2021-03-12 18:48:52 +01:00
Oliver 675ed5b96b Removed Focusable interface. 2020-11-17 19:33:25 +01:00
Oliver e4d167311d Upgraded to latest tcell version. Results in a minor incompatibility in the Table class. 2020-10-18 14:15:57 +02:00
Oliver 53d50e499b Bugfix in Flex which led to a panic. 2020-08-18 14:03:38 +02:00
Oliver deb54e1422 Keyboard events are now propagated down the hierarchy, allowing users to intercept them. Closes #421 2020-08-18 12:05:43 +02:00
Oliver cce7c98823 Don't forward mouse events to nil items in Flex/Grid. Fixes #425 2020-04-04 22:19:02 +02:00
Oliver 9af6826328 Added/fixed comments, some structural changes/bugfixes for mouse support. Table, TextView, and TreeView still open. Closes #363 2020-03-27 18:41:44 +01:00
rivo 160d8fda1d
Merge pull request #363 from millerlogic/mouse-support
Mouse support
2020-03-26 19:28:51 +01:00
Chris Miller 8abbf770ec Change mouse handler func 2020-02-14 02:09:09 +00:00
Ben LeFevre 016b6bd9e3
Update Flex.Clear() documentation 2020-01-27 14:37:07 +00:00
Chris Miller 9598ca2519 New mouse design
capture bool not finalized
2020-01-24 20:40:34 +00:00
Ben LeFevre 37b143d5fa Add Flex.Clear() method to remove all items 2020-01-21 13:13:47 -05:00
Chris Miller 96875c75b9 Added mouse handling 2019-11-04 05:34:46 +00: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