Trevor Slocum
78d52f46d0
Fix drawing InputField cursor outside of the field
2 years ago
Trevor Slocum
b9d448d0f4
Improve Button cursor positioning
2 years ago
Trevor Slocum
71e3cc57f7
Add relevant info to pages of the presentation demo
...
Also, only draw DropDown symbols when focused by default.
Resolves #61 .
2 years ago
Trevor Slocum
d11681497c
Change default colors (fields and buttons are now green)
2 years ago
Trevor Slocum
f8d1b2c63c
Change default colors
...
Focused buttons and fields are now blue.
2 years ago
Trevor Slocum
d7f1e2ab2a
Add SetVisible and GetVisible to all widgets
2 years ago
Trevor Slocum
597052a7e7
Add FocusManager
2 years ago
Trevor Slocum
4ac48a9748
Replace FormItem.SetAttributes with individual methods
2 years ago
Trevor Slocum
ed5e6d94dd
Remove return values from methods which return their primitive (breaks chaining)
2 years ago
Trevor Slocum
2763609e05
Store InputField text data as []byte instead of string
2 years ago
Trevor Slocum
d5edb975b6
Store ListItem text as []byte instead of string
2 years ago
Trevor Slocum
6b34a95e75
Print text using []byte instead of string, calculate string width using runewidth instead of uniseg
2 years ago
Trevor Slocum
5a3409bfd6
Release lock on InputField while executing DoneFunc and FinishedFunc
2 years ago
Trevor Slocum
db81e43e00
Remove wrapper methods
2 years ago
Trevor Slocum
e1cd3be7bb
Lock Mutex when setting InputField attributes
2 years ago
Andreas Bieber
9acd4bf821
fix(inputfield): Display suggestion correctly
2 years ago
Trevor Slocum
018a7e47fe
Allow autocomplete selection value customization
2 years ago
Trevor Slocum
357a49e9e7
Do not set focus-related style attributes by default
2 years ago
Trevor Slocum
a709a929d9
Fix FormItem.SetAttributes race condition
...
Resolves #35 .
2 years ago
Trevor Slocum
89fa23ab00
Resolve lint warnings
2 years ago
Trevor Slocum
5505bb7a58
Document changes submitted by Andreas Bieber
2 years ago
Andreas Bieber
70857602a5
feat(FormItem): Replace `SetFormAttributes` with `SetAttributes`
...
BREAKING CHANGE:
`SetFormAttributes` has been removed. To migrate your project, use `SetAttributes` which expects any combination of attribute setters.
Example:
`formItem.SetAttributes(cview.WithLabelWidth(10), cview.WithLabelColor(tcell.ColorYellow))`
or
`formItem.SetAttributes(cview.WithBackgroundColor(tcell.ColorBlack))`
2 years ago
Andreas Bieber
9142563f22
feat(inputfield): Add ability to show a note below the inputfield
2 years ago
Andreas Bieber
75b6d31409
feat(inputfield/autocompletion): Draw selected autocomplete suggestion in `inputfield` without changing it till confirmed with `ENTER`
2 years ago
Andreas Bieber
d315a5c5b3
feat(List): Expose `ListItem`
...
BREAKING CHANGE:
- The signature of `SetChangedFunc` and `SetSelectedFunc` has changed to pass the newly exposed `ListItem` instead of its properties
- The signature of `AddItem` and `InsertItem` has changed to expect a `ListItem` instead of the properties them self
2 years ago
Andreas Bieber
22895b10bc
feat(inputfield): Expose setters for autocomplete list colors
2 years ago
Andreas Bieber
32ed5f11d7
chore(inputfield): Compile regex only once
2 years ago
Andreas Bieber
e7aaa8402f
fix(inputfield): Use correct regex to detect left or right word/non-word
2 years ago
Andreas Bieber
41a24756f9
feat(FormItems): Allow specifying colors for focused state
2 years ago
Trevor Slocum
8292f9baf2
Upgrade tcell to v2
...
Resolves #32 .
2 years ago
Trevor Slocum
d32ac6e3e9
Add InputField.GetCursorPosition and InputField.SetCursorPosition
2 years ago
Trevor Slocum
48c31ff1a0
Remove wiki references
3 years ago
rivo
1f765c8695
Merge pull request #422 from rivo/mouse
...
Add mouse support
3 years ago
Trevor Slocum
e29d4b73b9
Make cview thread-safe
3 years ago
Trevor Slocum
de6819cc76
Fix applying ScrollBarNever to DropDown or InputField
3 years ago
Trevor Slocum
96f3c15040
Add scroll bar to List, DropDown, Table and TreeView
3 years ago
Trevor Slocum
5f880bc2c7
Migrate to GitLab
3 years ago
Chris Miller
a52eae5a0d
Refactor EventMouse
3 years ago
Chris Miller
ad59b43801
Get mouse actions rather than just mouse state
3 years ago
Chris Miller
5b47ba1f32
More mouse handling for primitives
3 years ago
Trevor Slocum
b61132eddf
Fork tview as cview
...
See FORK.md for details
3 years ago
Oliver
c3d1d4bcf9
Added autocomplete functionality to InputField. Resolves #299 , resolves #77
4 years ago
Oliver
8a9e26fab0
Hitting the Alt-key should not prevent input. Fixes #240
4 years ago
Oliver
8d5eba0c2f
Replaced runewidth.StringWidth() with my own implementation. Fixes #236
4 years ago
Delaney Gillilan
a38d2cdc9b
fix per @jr81
4 years ago
Oliver
ec12437564
InputField cursor position must also be adjusted when SetText() is called. Fixes #180
4 years ago
Oliver
61a4cf388a
Another fix for InputField. Fixes #176 , resolves #177
4 years ago
Oliver
60a1c63fa9
Accepting non-alt-mod keys as characters in InputField if they don't have a function. Fixes #176 (hopefully)
4 years ago
Oliver
990bc2ebcf
InputField can now be navigated freely. Resolves #103 , resolves #171 , resolves #162
4 years ago
Oliver
213c37c368
Fixed handling of combining unicode characters. Fixes #101
5 years ago