Commit Graph

1401 Commits

Author SHA1 Message Date
Alexandre Bury
01bb32d640 Fixes 2020-08-04 14:51:16 -07:00
Alexandre Bury
bf25cb90ae Add methods to initialize backends from stdio 2020-08-04 13:58:15 -07:00
Alexandre Bury
b4dfaf4d9f Update Changelog 2020-08-02 17:30:03 -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
Matthias Beyer
d96904a07d
Fix typo (#474)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-07-23 08:50:26 -07:00
Alexandre Bury
b7bf861554 Reword cursive_core::backend module doc 2020-07-20 08:54:38 -07:00
Alexandre Bury
d31d0d0d76 Derive more stuff 2020-07-13 12:54:03 -07:00
Alexandre Bury
96919c6561 Mention ncspot in Readme 2020-07-13 09:38:05 -07:00
Alexandre Bury
20d9d321c1 Mention samtay/so in Readme 2020-07-13 09:33:01 -07:00
Alex Parrill
afe3123dac
Derive Clone+Copy for Align, HAlign, VAlign (#469)
Fixes #468
2020-07-12 21:17:52 -07:00
Alexandre Bury
56008db796 Enable multi-rows views in ListView 2020-07-07 00:11:52 -07:00
maxim
63b438188f [Doc] Improves the documentation about using custom themes
As starting to use the cursive library I've found it challenging to
figure out how to actually use the themes. Only after checking the
source code, and another library actually using this feature, I've
managed to apply it to my project.

This change makes it easier for new commers to use toml themes by
extending the documentationn
2020-07-06 15:15:35 -07:00
Alexandre Bury
4d322eb42d Rename master branch -> main 2020-07-06 15:03:29 -07:00
Alexandre Bury
1f87a44de6 Update changelog 2020-07-06 12:09:49 -07:00
Alexandre Bury
db9a3c32b1 Fix scroll::core size handling 2020-07-06 10:23:49 -07:00
Alexandre Bury
2e308d8d26 Fix bad scrolling detection 2020-07-05 15:29:30 -07:00
Alexandre Bury
e8960fe89d Bump cursive-core to 0.1.1 2020-07-04 10:29:45 -07:00
Alexandre Bury
adec5ae066 Loosen dependencies 2020-07-04 10:27:02 -07:00
Alexandre Bury
945fe1aa45 Update dependencies 2020-07-04 10:18:30 -07:00
Alexandre Bury
f047ee5f5c Remove inferred lifetime parameters to Printer 2020-07-03 20:38:08 -07:00
Alexandre Bury
58480d14f9 Update Changelog 2020-07-03 20:31:43 -07:00
Alexandre Bury
7ca0b145bd Make Cursive::dump take &mut self 2020-07-03 09:17:50 -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
16b4908443 Mention Direction::None in View::take_focus 2020-06-27 10:49:59 -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
bb98be1132 Update changelog 2020-06-16 22:36:09 -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
e3a266aa0e Add once1! macro 2020-06-14 22:51:57 -07:00
Alexandre Bury
9060b38e75 Update changelog 2020-06-14 21:14:27 -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
72ded36093 More fully qualified paths 2020-06-09 11:12:01 -07:00
Alexandre Bury
aeb9b2af7b Use fully-qualified paths for wrap_impl! macro 2020-06-09 09:17:07 -07:00
Alexandre Bury
a68e237c81 Fix size confusion in LinearLayout::Child 2020-06-08 19:57:55 -07:00
Alexandre Bury
5b3f4e95a4 Remove pancurses from windows build 2020-06-02 16:01:37 -07:00
Alexandre Bury
b50d76a696 Add doc/test.txt file to test unicode rendering 2020-06-02 12:28:28 -07:00
Alexandre Bury
b91c5d8179 Remove scroll feature for docs.rs 2020-05-28 11:54:21 -07:00
Alexandre Bury
13237e38ee Update CI config 2020-05-26 13:22:56 -07:00