Commit Graph

57 Commits

Author SHA1 Message Date
Trevor Slocum 30838d75cd Reduce Box inner rect calculations 2020-10-27 09:11:05 -07:00
Trevor Slocum 62c7289449 Add deprecation notice to SetBorderPadding, GetBorderPadding and Pages 2020-10-26 11:21:25 -07:00
Trevor Slocum 36671ba7d3 Rename SetBorderPadding and GetBorderPadding as SetPadding and GetPadding 2020-10-26 10:41:47 -07:00
Trevor Slocum d7f1e2ab2a Add SetVisible and GetVisible to all widgets 2020-10-19 19:05:03 -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 357a49e9e7 Do not set focus-related style attributes by default 2020-09-29 13:24:12 -07:00
Andreas Bieber 60cca5d967 feat(box): Add `SetBorderColorFocused` 2020-09-23 18:25:18 +02:00
Andreas Bieber ecfa14af14 feat(box): Add `GetBackgroundColor` 2020-09-19 11:25:32 +02:00
Andreas Bieber 2eac84df0b feat(box): Add `GetBorder` 2020-09-19 11:25:23 +02:00
Andreas Bieber 186ebd7dd6 feat(box): Add `GetBorderPadding` 2020-09-17 20:54:13 +02:00
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
Trevor Slocum eafc5b33a2 Add Box.SetBackgroundTransparent
Resolves #15.
2020-05-24 09:36:17 -07:00
Trevor Slocum 5c2dfbf231 Add Box.ShowFocus 2020-05-09 17:52:17 -07:00
Trevor Slocum 48c31ff1a0 Remove wiki references 2020-04-26 16:59:33 -07:00
Trevor Slocum 57ef7437e3 Add ContextMenu 2020-04-18 20:00:36 -07:00
Trevor Slocum d2f2938ea0 Update presentation demo 2020-04-03 08:01:21 -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 c6599f4ee2 Clarify that Box does not have inner text 2020-02-16 10:13:07 -08:00
Trevor Slocum 339db80f66 Always fill Box background
This resolves rendering issues with TextViews which have their background
color set to ColorDefault.
2020-01-28 07:10:41 -08: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 a52eae5a0d Refactor EventMouse 2020-01-01 20:24:34 -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
rivo 1ee8d9874d
Merge pull request #292 from mikeschinkel/box_gettitle
Added a GetTitle() method to Box
2019-12-29 17:56:09 +01: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