Alexandre Bury
2cd6d7a80c
Make backends pausable
2020-08-04 23:24:11 -07:00
Alexandre Bury
b4b8f951fb
Add non-chained methods to ProgressBar
2020-08-02 17:16:13 -07:00
James Tai
bc49eebeb8
Fix text alignment when wrapped ( #471 )
...
* Fix text alignment when wrapped
This changes the `LinesIterator` to return a `width` that corresponds
with the actual total length of the chunks, rather than returning the
total available width, when a line is wrapped. This effectively reverts
20cb033b8d
(I am not sure why that commit
changed it).
* Add `is_wrapped` flag to `Row`
* Fix TextArea width with wrapped rows
Co-authored-by: Alexandre Bury <alexandre.bury@gmail.com>
2020-07-25 16:51:33 -07:00
Alexandre Bury
d31d0d0d76
Derive more stuff
2020-07-13 12:54:03 -07:00
Alexandre Bury
56008db796
Enable multi-rows views in ListView
2020-07-07 00:11:52 -07:00
Alexandre Bury
4d322eb42d
Rename master branch -> main
2020-07-06 15:03:29 -07:00
Alexandre Bury
db9a3c32b1
Fix scroll::core size handling
2020-07-06 10:23:49 -07:00
Alexandre Bury
f047ee5f5c
Remove inferred lifetime parameters to Printer
2020-07-03 20:38:08 -07:00
Alexandre Bury
58ef6c298b
Add NamedView::{name, set_name} and {LinearLayout,FixedLayout}::find_child_from_name
2020-07-02 23:59:55 -07:00
Alexandre Bury
421c08c922
Add missing method to FixedLayout
2020-07-02 23:59:55 -07:00
Alexandre Bury
f5687f5eab
Fix FixedLayout::required_size
2020-07-02 23:59:55 -07:00
Alexandre Bury
9e5491bda2
Remove debug log and fix initial focus (again)
2020-07-02 23:59:55 -07:00
Alexandre Bury
f2b1fac679
Fix bad initial focus
2020-07-02 23:59:55 -07:00
Alexandre Bury
81e64da72a
Add OnLayoutView
2020-07-02 23:59:55 -07:00
Alexandre Bury
bd6386fd74
Add FixedLayout
2020-07-02 23:59:55 -07:00
Alexandre Bury
28cd51c265
Add Cursive::dump
2020-07-02 23:58:54 -07:00
Alexandre Bury
9bc1cd04c3
Add ScrollView::on_scroll
2020-06-30 23:22:44 -07:00
Alexandre Bury
b6444524ad
Fix link to edit
example on github
2020-06-20 15:31:12 -07:00
Alexandre Bury
e08f2e755b
Fix typo
2020-06-18 10:05:32 -07:00
Alexandre Bury
55c4aa2716
Reject events for disabled views
2020-06-18 09:40:45 -07:00
Alexandre Bury
eca68256ae
Use With trait instead of mutable variable
2020-06-16 22:34:54 -07:00
Alexandre Bury
c10b5e9a1e
Correctly initializes TextArea
...
Was in a bad state until the first `layout` phase.
2020-06-16 22:29:45 -07:00
Alexandre Bury
8df6b05e1c
Add Dialog::into_content
2020-06-13 23:00:13 -07:00
Alexandre Bury
7d833d5386
Fix important_area for ShadowView and PaddedView
2020-06-11 10:22:03 -07:00
Alexandre Bury
a68e237c81
Fix size confusion in LinearLayout::Child
2020-06-08 19:57:55 -07:00
Alexandre Bury
0a14106127
Fix doc links accross re-use
2020-05-26 11:01:28 -07:00
Alexandre Bury
ec10145bf2
Add SelectView::(try_)iter_mut
2020-05-09 18:55:51 -07:00
Jonathan Spira
ea3169961d
Updated Dialog
convencience methods: test
and info
to take Into<StyledString>
( #449 )
...
* Updated dialog typed to allow for StyledString
2020-04-26 15:00:57 -07:00
Jonathan Spira
2750ac370b
Added impl_enabled to more widgets ( #448 )
...
* Expanded on API for Checkbox and for Enabled.
Added a `with_x` variant to both, for easier chaining.
* Added enabled/disable macro support to everything with an enabled/disabled method.
This also gives them `with_enabled`, but more importantly, keeps things tidy
2020-04-25 12:57:31 -07:00
Jonathan Spira
f42fc382e6
Expanded on API for Checkbox and for Enabled. ( #447 )
...
Added a `with_x` variant to both, for easier chaining.
2020-04-25 11:13:04 -07:00
Alexandre Bury
b7764541e5
Move examples to its own member
2020-04-23 17:17:30 -07:00
Alexandre Bury
4154f99b44
Split non-backend code into cursive-core
2020-04-23 13:46:00 -07:00