cursive/cursive-core
kmeisthax 06d64be0a0
Add getters & other utility methods to Dialog (#541)
* Allow taking the content of a dialog without destroying it by replacing it with another view.

* Add getters for all three ways of mutating padding (`Margins` struct, LRTB tuple, and individual fields)

* Allow setting focus

* Add a getter for the title of the dialog

* Add getter for title position

* Add immutable button iterator for `Dialog`

* Rename `buttons_mut` to fit with `iter_buttons_mut`.

* Add getter for horizontal alignment property

* Remove `replace_content` and replace it with just having `set_content` return the previous view.

* Actually clamp dialog focus rather than forcibly unclamping it

* Use the existing convention for button iterators rather than the `iter`/`iter_mut` convention

* Remove extraneous padding getters

* Remove import of `std::mem::replace`
2021-02-05 09:44:53 -08:00
..
src Add getters & other utility methods to Dialog (#541) 2021-02-05 09:44:53 -08:00
Cargo.toml Replace wasmer_enumset with enumset 1.0.3 2021-02-03 15:17:43 -08:00
Readme.md Update Readme 2020-05-26 11:39:05 -07:00

Cursive-core

This crate is where most of cursive is defined, except for the backends.

Third-party libraries are encouraged to depend on this instead of cursive, as it should have fewer semver breaking updates.