Commit Graph

50 Commits

Author SHA1 Message Date
Oliver caea67a4ef Implemented string parser and migrated all widgets but TextView. 2023-08-22 23:16:59 +03:00
Oliver ccce554c38 Using tcell.Style for buttons, allowing us to control it better. Resolves #704 2022-12-17 19:20:43 +01:00
Oliver ed3ea789e9 Text area can now be added to forms. See #594 2022-11-15 15:33:49 +01:00
Oliver cecb44578c Setting focus is now based on a "mouse down" event instead of a "click" event. 2022-09-02 17:49:12 +02:00
Oliver ac1f564949 Implemented basic text area printing. 2022-07-30 15:59:31 +01:00
Oliver 96063d6082 Updated documentation about intercepting keyboard events. Resolves #699 2022-02-16 17:25:59 +01:00
Oliver 1b3174ee3d Added callback functions for focus and blur events. 2021-11-08 17:05:49 +01:00
Oliver ae9464cc35 Upgraded printing and style handling to the new definition of tcell.ColorDefault. 2021-03-12 18:48:52 +01:00
Oliver ae065beb93 Fixed Box border background colour. 2021-03-12 12:58:47 +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 285468943b Added getters for common Box attributes. Resolves #427 2020-04-14 13:29:54 +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
Oliver a177a82b6c Clarifying the role of the Box class better. Resolves #373 2020-02-19 21:46:40 +01:00
Oliver ba670d23ba The inner area of a Box does not clamp to screen borders anymore. Consequently added some drawing optimization to primitives. Resolves #405 2020-02-19 18:31:32 +01:00
Chris Miller 8abbf770ec Change mouse handler func 2020-02-14 02:09:09 +00:00
Chris Miller 9598ca2519 New mouse design
capture bool not finalized
2020-01-24 20:40:34 +00:00
rivo 1ee8d9874d
Merge pull request #292 from mikeschinkel/box_gettitle
Added a GetTitle() method to Box
2019-12-29 17:56:09 +01:00
Chris Miller cd3c60e6d1 Refactor EventMouse 2019-11-05 09:19:40 +00:00
Chris Miller 96875c75b9 Added mouse handling 2019-11-04 05:34:46 +00:00
Oliver fc28d646d0 Primitive widths/heights should not become negative. Also fixed a
TextView issue where purging led to panics. Fixes #306
2019-07-09 14:04:41 +01:00
Mike Schinkel 87c5125144 Add GetTitle() method to Box. 2019-06-04 17:14:24 -04:00
Oliver 36893a6697 Minor improvements. 2018-12-26 21:24:39 +01:00
Oliver 0a18dea458 Added a clarification on intercepting key events. Resolves #181 2018-11-26 12:36:27 +01:00
Oliver d53a7c24fd WordWrap() also uses iterator function now. 2018-10-17 17:41:00 +02:00
Oliver c325864561 Added style attributes to Box border. Resolves #152 2018-08-07 09:23:19 +02:00
Benjamin Weidig 06dd16088a replaced old borders code with new configurable borders 2018-06-09 14:58:29 +02:00
Benjamin Weidig 76fdcb42e9 fix borders and add unicode comment 2018-06-09 14:58:29 +02:00
Oliver d7d44cb0d2 Flex and Grid don't clear their backgrounds anymore. Resolves #104 2018-05-02 17:02:52 +02:00
Oliver 6e3b8a41c8 A Box's inner rect will now clamp to screen space. Resolves #79 2018-03-23 21:09:02 +01:00
Oliver 761e3d72da Added Primitive demo to go along with the GitHub Wiki entry on how to create your own primitive. 2018-03-19 21:25:30 +01:00
Oliver 45acc0d895 Added getters for some callback functions. Resolves #65 2018-03-10 23:30:49 +01:00
Oliver 8c2cd21162 Added a Draw callback to Box which exposes tcell.Screen. Resolves #57 2018-02-22 12:33:11 +01:00
Oliver c7b3072f7e Progressing with Grid. 2018-02-19 20:23:01 +01:00
Oliver 258f212e5e Added color tag functionality to all strings. Resolves #25 2018-01-17 17:13:36 +01:00
Oliver c105638ec3 Form now has a Clear() function. Resolves #32 2018-01-15 10:04:03 +01:00
Oliver 9608f5b3b5 Clarifying SetInputCapture() in documentation. 2018-01-14 21:54:05 +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 61d8ea30f8 Added support for wide unicode characters (e.g. Chinese). Resolves #9 2018-01-11 15:45:52 +01:00
Oliver 2874294d89 Added Styles variable with default colors for primitives. 2018-01-10 09:44:21 +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 c989300073 Final preparations for the first official release. 2018-01-06 22:49:12 +01:00
Oliver 8f59d491ee Added Table primitive. Still ironing out some minor issues. 2017-12-26 01:07:30 +01:00
Oliver f5788cfc52 Added regions and highlights to TextView. 2017-12-24 00:08:52 +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