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
|
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 |
|
Tymoteusz Jankowski
|
6faa1ff5a7
|
Add get_current_focus to Dialog & make public enum Focus
|
2018-02-18 23:23:04 +01:00 |
|
Alexandre Bury
|
5dfdeab6ae
|
Fix clippy warnings
|
2018-01-22 14:47:56 -08: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
|
8aa901afb4
|
Merge pull request #190 from xliiv/dialog-content-get
Add get_content on Dialog
|
2018-01-22 13:18:08 -08:00 |
|
Tymoteusz Jankowski
|
c119f957eb
|
Add Dialog.get_content
|
2018-01-22 21:01:23 +01: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
|
3058816f1a
|
Add Dialog::buttons to iterate on buttons
|
2018-01-12 09:33:54 +01:00 |
|
Alexandre Bury
|
e4cd68a4eb
|
Rustfmt
|
2017-12-30 23:03:42 +01:00 |
|
Alexandre Bury
|
bd9b6a695b
|
Return view on pop_layer
Callbacks now often allow (and ignore) a return type.
|
2017-12-16 14:41:15 +01:00 |
|
Marcel Hellwig
|
9ce8896bba
|
updated dialog doc to reflect the default position
|
2017-12-12 09:19:05 +01:00 |
|
Marcel Hellwig
|
f8e7427f75
|
simplified offset calculation in dialogboxtitle
|
2017-12-12 09:07:13 +01:00 |
|
Marcel Hellwig
|
592ecf4c09
|
added option to position the header in a dialog
|
2017-12-12 08:38:14 +01:00 |
|
Alexandre Bury
|
93982517ae
|
Fix clippy warnings
|
2017-10-13 11:24:17 -07:00 |
|
Alexandre Bury
|
a6fb0e71cd
|
Include padding and borders in Dialog event relativization
|
2017-10-11 15:13:10 -07:00 |
|
Alexandre Bury
|
2932b9de50
|
Remove eprintln debug lines
|
2017-10-11 15:08:19 -07:00 |
|
Alexandre Bury
|
f3528088cd
|
Add mouse support to Dialog and Button
|
2017-10-11 15:07:25 -07:00 |
|
Alexandre Bury
|
05bac7a192
|
More safe subtractions all around.
|
2017-08-14 16:32:39 -07:00 |
|
Alexandre Bury
|
c300e0628d
|
Rename find -> call_on
And update tutorials
|
2017-03-26 20:50:50 -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
|
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
|
8fded82434
|
Fix clippy warnings
|
2016-10-02 16:03:31 -07:00 |
|
Alexandre Bury
|
3b3f403f7a
|
Apply rustfmt
|
2016-10-02 15:22:29 -07:00 |
|
Alexandre Bury
|
8fa704bcfa
|
Rename Dialog::new -> Dialog::around
And `Dialog::empty` -> `Dialog::new`
|
2016-10-02 15:15:30 -07:00 |
|
Alexandre Bury
|
93980a7d0c
|
Rename View::find -> View::find_any
And add the `Finder` trait on Views to provide a true `find`.
|
2016-09-21 11:33:44 -07:00 |
|
Alexandre Bury
|
ce6992a8c5
|
Add SliderView
|
2016-08-13 01:03:40 -07:00 |
|
Alexandre Bury
|
921e4a451e
|
Add outset border functions to Printer
|
2016-08-05 10:49:16 -07:00 |
|
Alexandre Bury
|
f7a3d821d1
|
Actually use Theme::{shadow,borders} when drawing
Also add the 8 light base colors
|
2016-08-04 17:27:04 -07:00 |
|
Alexandre Bury
|
9db3c87851
|
Add Cursive::set_theme method
Allow setting a theme without having to load a toml file.
|
2016-08-04 00:11:16 -07:00 |
|
Alexandre Bury
|
40f9a91a7a
|
Replace some &str -> S: Into<String>
Add back the "Ok" button to `examples/edit.rs`
|
2016-07-30 12:58:25 -07:00 |
|
Alexandre Bury
|
24e4e41a85
|
Move DummyView to views module
|
2016-07-29 23:36:40 -07:00 |
|
Alexandre Bury
|
f87d0e7c5b
|
Move views to new views module
|
2016-07-28 16:36:01 -07:00 |
|