Commit Graph

1174 Commits

Author SHA1 Message Date
Alexandre Bury
f7b6397588 Update tutorial_3
Remove extra Rc clones, add missing link.
2017-03-26 20:53:34 -07:00
Alexandre Bury
c300e0628d Rename find -> call_on
And update tutorials
2017-03-26 20:50:50 -07:00
Alexandre Bury
c3c69e7892 Merge IdView and RefCellView
And remove `with_id_mut`
2017-03-25 21:56:31 -07:00
Alexandre Bury
146ebd8931 Rename find_id -> call_on_id, find_id_mut -> find_id 2017-03-25 18:22:14 -07:00
Alexandre Bury
200435fefe Merge branch 'refview' 2017-03-25 16:09:38 -07:00
Alexandre Bury
cdb3df7fc8 Merge branch 'master' into refview 2017-03-25 15:01:57 -07:00
Alexandre Bury
017bb21710 Add View::focus_view 2017-03-25 14:50:52 -07:00
Alexandre Bury
2cd2787119 Event::Unknown now carries the unknown bytes rather than a i32
And termion has been updated to use termion::Event::Unsupported
2017-03-25 11:01:25 -07:00
Alexandre Bury
79212d4be6 Readme: add div around example images
Otherwise it's not treated as HTML
2017-03-25 00:34:53 -07:00
Alexandre Bury
906cd557a8 Readme: update images title 2017-03-25 00:23:15 -07:00
Alexandre Bury
77433e80ee fix: add Panel::wrap_layout
Fixes #119
2017-03-15 16:35:20 -07:00
Alexandre Bury
0bbc10706e EditVIew: Add mutable and non-mutable callback methods
mutable callbacks disable recursive calls
2017-03-08 16:29:24 -08:00
Alexandre Bury
9850e93125 Add ncurses-backend and blt-backend features
Not very useful for now since those backends don't need any extra crate,
but at least it improves coherence since there is termion-backend
already.
2017-03-07 13:42:32 -08:00
Alexandre Bury
633e274216 Update rust-skeptic to 0.7 2017-03-06 22:49:56 -08:00
Alexandre Bury
22258d3d84 Update chan-signal to 0.2 2017-03-06 22:49:56 -08:00
Alexandre Bury
cbe237624f Update toml to 0.3 2017-03-06 22:49:56 -08:00
Alexandre Bury
4f82e87d0d Merge pull request #115 from hacksaar/master
use Iterator::sum() for summing instead of fold
2017-03-06 14:58:17 -08:00
Alexandre Bury
87676295a0 fix: Check for insufficient space in Panel::required_size 2017-03-06 14:53:10 -08:00
Constantin Berhard
36d5aa016a use Iterator::sum() for summing instead of fold 2017-03-06 22:46:16 +01:00
Alexandre Bury
5f5fb4e502 Add comments 2017-03-06 10:38:18 -08:00
Alexandre Bury
30cac851e7 Fix utils::prefix
And add a few tests
2017-03-06 10:34:58 -08:00
Alexandre Bury
b18ca17b73 Merge pull request #114 from hacksaar/master
fix utils::prefix bug: #113
2017-03-06 10:27:47 -08:00
Constantin Berhard
dc7754d38f fix #113 2017-03-06 15:32:03 +01:00
Alexandre Bury
e0b279d9df Fix clippy warnings 2017-03-05 15:18:15 -08:00
Alexandre Bury
6f129ac83d Only include chan dependancy with termion backend.
We may want to use channels for all backend some day, but not today.
2017-03-05 14:45:21 -08:00
Alexandre Bury
7d9cb03ffb More checks against small viewports
Prevents panics when the terminal is resized.
2017-03-05 11:35:20 -08:00
Alexandre Bury
8dc420c3ed Merge pull request #110 from ihalila/pancurses_0.8
Correct colors on pancurses+Windows and use strongly typed attributes
2017-03-05 10:20:39 -08:00
Ilkka Halila
ea053640fe Use new Attributes and ColorPairs
Pancurses now has an Attribute and ColorPair type, making for a more strongly typed way of handling them when compared to using chtypes.
Also window now has an .attrget() function so pan::Concrete does not need to track the current color any longer.
2017-03-05 13:53:50 +02:00
Ilkka Halila
f6f26bf7af Increment pancurses dependency to version 0.8 2017-03-05 13:49:20 +02:00
Alexandre Bury
ce3400ec0c Add gitter badge 2017-02-27 14:29:14 -08:00
Alexandre Bury
30f13fc260 Edit refcell_view example to use find_id 2017-02-26 16:01:23 -08:00
Alexandre Bury
23b0f9c168 docs: add refcell_view example 2017-02-26 15:53:12 -08:00
Alexandre Bury
cb3adc5baf feat: find_id can now find views declared with with_id_mut 2017-02-26 15:52:42 -08:00
Alexandre Bury
34c7462877 fix: protect scroll operations when non-scrollable
Fixes #109
2017-02-26 14:53:50 -08:00
Alexandre Bury
e91021a633 Bump version to 0.4.1 2017-02-08 16:17:18 -08:00
Alexandre Bury
b50d2f077f Make RefCellView re-entrant safe
Don't crash if the view is already borrowed.
2017-02-08 15:33:43 -08:00
Alexandre Bury
1b8d109e94 Add with_id_mut and find_id_mut convenient methods. 2017-02-08 15:20:41 -08:00
Alexandre Bury
1de7dcd819 Remove useless entries from Cargo.toml 2017-02-08 12:15:43 -08:00
Alexandre Bury
b0193b0ebc Add RefCellView
Wraps a view and provide interior mutability
2017-02-08 12:13:14 -08:00
Alexandre Bury
b63762d441 View::find_any now takes a closure instead of returning reference
Also updated Finder::find and find_id.
2017-02-07 15:49:06 -08:00
Alexandre Bury
57c1c1ad61 Merge pull request #107 from dermetfan/prefix
return length and width from utils::prefix(_length)
2017-02-01 11:56:04 -08:00
Robin Stumm
99fa86bec9 return length and width from utils::prefix() (renamed from utils::prefix_length()) as per df835d1 2017-02-01 20:47:33 +01:00
Alexandre Bury
412f3304f3 Merge pull request #104 from hyst329/master
Fixes issue #103
2017-02-01 10:13:06 -08:00
hyst329
35c0cb1050 Added *-backend features 2017-02-01 20:59:17 +03:00
Alexandre Bury
df835d1a10 utils::prefix_length: move current_width out of the scan loop
To prepare returning both length and width.
2017-01-31 16:31:34 -08:00
Alexandre Bury
e0e96ab875 Merge pull request #105 from dermetfan/nix-shell
add shell.nix file for Nix users
2017-01-31 11:15:17 -08:00
Robin Stumm
6594e393b8 add shell.nix file for Nix users 2017-01-31 19:38:38 +01:00
hyst329
4755cc8aee Fixed library name capitalising 2017-01-30 18:19:03 +03:00
hyst329
ae33abec18 Fixed build on Windows 2017-01-30 18:17:05 +03:00
Alexandre Bury
8b88bf9ba2 Add Menubar::is_empty(&self)
And fix another clippy warning
2017-01-27 14:51:46 -08:00