Alexandre Bury
b2a0fa18ff
Disable dead code lint for unstable module
2019-03-11 11:52:58 -07:00
Alexandre Bury
91a78f402b
Hide view::scroll behind unstable_scroll feature
2019-03-11 00:03:54 -07:00
Alexandre Bury
12ad66badd
Migrate MenuPopup to new scrollbase
2019-03-08 13:57:05 -08:00
Alexandre Bury
ae0e9216ce
Add new ScrollBase
2019-03-07 22:33:43 -08:00
Alexandre Bury
bc7972d539
Reorganize scroll module files
2019-03-07 19:08:31 -08:00
Alexandre Bury
6f28569dae
Move logic from ScrollView
to ScrollCore
2019-03-04 20:08:40 -08:00
Alexandre Bury
242a3c68a7
Fix clippy warnings
2019-03-04 10:31:36 -08:00
Alexandre Bury
06b02e4665
Remove "extern crate" and rustfmt
2019-02-28 16:04:14 -08:00
Alexandre Bury
e096dc9740
Run cargo fix --edition-idioms
2019-02-28 15:55:10 -08:00
Alexandre Bury
e51be07e5d
Update to Rust 2018
...
Run `cargo fix --edition` and update Cargo.toml
2019-02-28 15:54:12 -08:00
Alexandre Bury
4852d25f51
Fix doc for Finder::call_on
2019-02-22 10:26:56 -08:00
Alexandre Bury
28ce8ca8bd
Rename Finder::find_id -> Finder::call_on_id and add proper find_id
...
The previous naming looked like a bad case of copy-pasta.
2019-02-21 11:21:06 -08:00
Alexandre Bury
9b3b16f64d
Fix important_size for SelectView and ListView
2018-10-18 13:36:17 -07:00
Alexandre Bury
a47537ec2c
Add Scrollable trait
2018-06-26 17:43:16 -07:00
Alexandre Bury
9bd1eb320d
Add size cache to ScrollView
2018-06-20 11:48:09 -07:00
Alexandre Bury
5e1956b737
Merge branch 'master' into scroll
2018-06-15 23:21:10 -07:00
Alexandre Bury
8acc08f340
Rustfmt
2018-06-10 23:29:19 -07:00
Alexandre Bury
2088d5de2a
Cargo fmt
2018-05-17 17:37:39 -07:00
Alexandre Bury
755854963f
Fix clippy warnings
2018-05-17 17:35:57 -07:00
Alexandre Bury
f0b3287d73
Merge branch 'master' into scroll
2018-04-16 22:42:42 -07:00
Alexandre Bury
39babacbf5
Add AnyCb type alias
2018-04-16 22:39:16 -07:00
Alexandre Bury
ff9f669d73
Fix tests & examples
2018-04-10 12:51:40 -07:00
Alexandre Bury
a355171844
Fix clippy warnings
2018-04-10 11:53:25 -07:00
Alexandre Bury
8641098781
Split Printer::sub_printer into sub-methods
2018-04-04 17:49:11 -07:00
Alexandre Bury
126530b9a9
Cursive::new now takes the backend as argument
2018-04-01 16:39:03 -07:00
SEGFAULT
76d340f11d
Making backend::Backend
into a std::Box
able trait ( #229 )
...
* Making Backend into a Boxable Trait
* Fixed up some typos in the previous and modified some of the docs so they still compile.
* Minor Changes requested by @gyscos
* Whoops
2018-04-01 15:35:37 -07:00
Alexandre Bury
d140e154aa
Implement ViewWrapper::important_area
2018-03-22 15:15:49 -07:00
Alexandre Bury
1ad515e5f0
rustfmt
2018-03-22 11:04:58 -07:00
Alexandre Bury
bd3ea469e9
Add View::important_area
...
In preparation for ScrollView
2018-03-16 18:07:01 -07:00
Alexandre Bury
7ca632a10d
Move Margins to view
module
2018-03-16 16:09:47 -07:00
Alexandre Bury
92c1d1a5b2
Rename Vec4 -> Margins
2018-03-16 16:06:35 -07:00
Alexandre Bury
9bc723ab4a
Do not accept any return value for callbacks
...
It got added so we could keep using `s.pop_layer()` in single-line callbacks.
It was confusing, and the return value was ignored anyway.
2018-03-16 15:50:56 -07:00
Alexandre Bury
1ad9a53cf7
Small refactoring
2018-03-14 15:11:27 -07:00
Alexandre Bury
7db1ee7335
Reverse View and AnyView
...
We now have `View: AnyView`
2018-03-14 14:59:41 -07:00
Alexandre Bury
f27f7792df
Rename BoxableView -> IntoBoxedView
...
And add an implementation for Box<View>
2018-03-14 14:16:07 -07:00
Alexandre Bury
e4bf9accc3
Add BoxableView
and AnyBox
...
And remove `impl ViewWrapper for T: Deref<View>`
This means `Box<View>` doesn't implement `View` anymore.
2018-03-14 12:32:07 -07:00
Alexandre Bury
dea226a095
Add AnyView::as_boxed_any for easier downcasting
2018-03-14 11:18:28 -07:00
Tymoteusz Jankowski
579b8fddd3
Fix getting view in inner_getters
2018-01-27 19:51:03 +01:00
Tymoteusz Jankowski
5bfe9548e8
Replace inner_getters!(T); with inner_getters!(self.view: T);
2018-01-27 10:37:08 +01:00
Tymoteusz Jankowski
b21280c106
Use inner_getters! in OnEventView
2018-01-26 23:28:20 +01:00
Tymoteusz Jankowski
9510d92736
Use inner_getters for rest of ViewWrappers (except on_event_view)
2018-01-26 12:08:28 +01:00
Tymoteusz Jankowski
84ea73617f
Add & use inner_getter! in BoxView
2018-01-26 11:39:10 +01:00
Tymoteusz Jankowski
d0956b40b0
Add get_view for ViewWrapper (needs fix)
2018-01-25 14:08:01 +01:00
Alexandre Bury
da8310b076
Rustfmt
2018-01-22 14:37:27 -08:00
Alexandre Bury
06086fdeb0
Dialog::get_content now returns &AnyView
2018-01-22 13:45:00 -08:00
Alexandre Bury
3674c118cb
Rustfmt
2018-01-22 11:55:56 -08:00
Alexandre Bury
98aff39904
Move View::as_any
to separate trait AnyView
2018-01-22 11:50:25 -08:00
Alexandre Bury
1551fbb543
Add View::as_any and View::as_any_mut
2018-01-22 09:20:45 -08:00
Alexandre Bury
5ac0fce363
Refactor ColorStyle
...
Add the notion of PaletteColor to use a color from the palette.
Breaking change: most color styles are now methods rather than enum
variants.
2018-01-17 10:22:06 -08:00
Alexandre Bury
5af367fa18
Add missing use
statements to doc example
2018-01-03 16:51:07 +01:00