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 |
|
Alexandre Bury
|
778c1f1d71
|
Better doc
|
2018-01-03 15:36:08 +01:00 |
|
Alexandre Bury
|
e4cd68a4eb
|
Rustfmt
|
2017-12-30 23:03:42 +01:00 |
|
Alexandre Bury
|
9b9619aa53
|
Add View: Any
|
2017-12-11 18:54:40 -08:00 |
|
Alexandre Bury
|
bbee77f1b7
|
Add ViewWrapper::into_inner
And add some derive(Debug)
|
2017-12-11 17:31:55 -08:00 |
|
Alexandre Bury
|
f90621811c
|
More rustfmt
|
2017-10-14 21:18:50 -07:00 |
|
Alexandre Bury
|
294a4102b4
|
Fix mouse support for ListView
|
2017-10-14 21:01:07 -07:00 |
|
Alexandre Bury
|
a5952d0741
|
Fix some mouse/scroll issues with SelectView and TextView
|
2017-10-13 17:53:39 -07:00 |
|
Alexandre Bury
|
67a6640142
|
Add mouse support to TextArea
|
2017-10-12 20:41:34 -07:00 |
|
Alexandre Bury
|
75d5868162
|
Fix shadowview event relativization
|
2017-10-12 16:44:03 -07:00 |
|
Alexandre Bury
|
a4ca7bbf1e
|
Rustfmt
|
2017-10-12 16:43:59 -07:00 |
|
Alexandre Bury
|
2fed1f3ff4
|
Add mouse support for regular SelectView
|
2017-10-12 14:32:48 -07:00 |
|
Alexandre Bury
|
f5492da4e4
|
More natural thumb drag
|
2017-10-12 12:35:57 -07:00 |
|
Alexandre Bury
|
e7da474769
|
Remove debug lines
|
2017-10-12 12:30:59 -07:00 |
|
Alexandre Bury
|
3a836aaa92
|
Fixes drag scroll position
|
2017-10-12 12:30:00 -07:00 |
|
Alexandre Bury
|
5931ab17c8
|
Add mouse scroll support to TextView
|
2017-10-11 18:06:58 -07:00 |
|
Alexandre Bury
|
d815afdf78
|
Fix ViewWrapper doc comment
|
2017-09-24 18:50:45 -07:00 |
|
Alexandre Bury
|
607e6f1bdc
|
Implement ViewWrapper for DerefMut<T: View>
This means View is implemented for Box<T: View>, Box<View>, ...
|
2017-09-24 12:24:23 -07:00 |
|
Alexandre Bury
|
1a4e1c104e
|
Implement View for Box<View>
|
2017-09-23 13:53:26 -07:00 |
|
Alexandre Bury
|
05bac7a192
|
More safe subtractions all around.
|
2017-08-14 16:32:39 -07:00 |
|
Alexandre Bury
|
66af7fab7c
|
IdView: skip view if borrowing fails.
Fixes #144
|
2017-07-03 01:29:30 -07:00 |
|
Alexandre Bury
|
9f5ce65e34
|
Fix doc comment
|
2017-06-12 18:03:52 -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
|
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
|
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
|
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
|
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
|
d7eaa5a086
|
Rename View::get_min_size -> required_size
|
2017-01-23 22:53:03 -08:00 |
|
Alexandre Bury
|
924c74afbe
|
Add ScrollStrategy to TextView
|
2017-01-21 11:44:40 -08:00 |
|