Karoline Pauls
8cdfc883b9
Feature: Autoresize
...
It basically never makes sense to render without syncing the size.
Without resizing, if shrinking, we get artefacts. If growing, we may get
panics (before this change the Rustbox sample (the only one which didn't
handle resizing on its own) panicked because the widget would get an
updated size, while the terminal would not).
6 years ago
Florian Dehau
fdf3015ad0
feat(terminal): log error if failed to show cursor on drop
6 years ago
Florian Dehau
7b4d35d224
feat: restore the cursor state on terminal drop
6 years ago
Florian Dehau
13e194cd26
refactor: update widgets
...
* all widgets use the consumable builder pattern
* `draw` on terminal expect a closure that take a frame as only arg
6 years ago
Florian Dehau
d6016788ef
refactor: clippy + rustfmt
6 years ago
Florian Dehau
7181970a32
feat: split layout from rendering
...
* remove layout logic from Terminal
* replace Group with Layout
* add Frame intermediate object
6 years ago
Florian Dehau
36a5eb2110
Format code
6 years ago
Florian Dehau
ef2054a45b
[lib] Derive Debug on Terminal
6 years ago
Florian Dehau
af16518650
[src] Run rustfmt
7 years ago
Florian Dehau
1f285fbac0
[src] Run cargo fmt
7 years ago
Florian Dehau
71545a0aa8
Run cargo fmt
7 years ago
Florian Dehau
b1737ce667
Update Widget Trait
...
The draw function now take a &mut reference to the widget, allowing the
widget to modify itself when drawn. This change the semantic of the draw
call since the widget should now be considered "consumed" after it.
7 years ago
Florian Dehau
b2bb24b9d2
Fix rustfmt and clippy errors
7 years ago
Florian Dehau
116ee4439a
Improve Paragraph widget
...
* Add the possibility to disable the markup rendering
* Fix parser error
8 years ago
Florian Dehau
feefa5d54f
Convert backends to conditionnal features for compilation
8 years ago
Florian Dehau
4f8a57d500
Fix clippy warnings
8 years ago
Florian Dehau
b30fede80c
Add the possibility to provide a RustBox instance at backend initialization
8 years ago
Florian Dehau
b19c014889
Fix layout cache on nightly
8 years ago
Florian Dehau
224eb2d8e0
Add support for text styling
8 years ago
Florian Dehau
9bc61551e2
Refactor Terminal to be able to support multiple backends
...
* Add Rustbox as an other possible backend
8 years ago
Florian Dehau
93cc237007
Documentation
8 years ago
Florian Dehau
a5b632aeb0
Cleanup API
8 years ago
Florian Dehau
107d7297af
Fix some layout problems
8 years ago
Florian Dehau
f0979dfeee
Improve canvas functionalities and fix clippy warnings
8 years ago
Florian Dehau
85bd76e17d
Small improvements
8 years ago
Florian Dehau
c91436baee
Change rendering method and adapt widget trait accordingly
8 years ago
Florian Dehau
15c3471f0b
Fix clippy warnings
8 years ago
Florian Dehau
d7131ead11
Cache layout and performance fixes
8 years ago
Florian Dehau
07ff2b08eb
Improve Chart Widget, safer buffer and unicode width
8 years ago
Florian Dehau
fde0ba95dd
Remove cache system and add unicode segmentation
8 years ago
Florian Dehau
bd404f0238
Cleanup code and add chart widget
8 years ago
Florian Dehau
d11dedd864
Add sparkline widget and fix warnings
8 years ago
Florian Dehau
5b5d37ee69
Add gauge, fix rendering and cleanup code
8 years ago
Florian Dehau
93f3263e2b
Fix redraw for disappearing widgets
8 years ago
Florian Dehau
13f6a5a98b
Add list widget and improve rendering
8 years ago
Florian Dehau
459201bc65
First commit
8 years ago