github gyscos/cursive cursive_core-v0.1.1

latest releases: cursive-core-v0.4.6, cursive-core-v0.4.5, cursive-core-v0.4.4...
4 years ago

cursive-core 0.1.1

API updates

  • Add Dialog::into_content.
  • Add Callback::from_fn_once and once1! macro to wrap a FnOnce in a FnMut.
  • Add FixedLayoutView with manual placement of child views.
  • Add OnLayoutView to override View::Layout
  • Add Cursive::{dump, restore} to save and load the global state.
  • Add NamedView::{name, set_name} to retrieve or replace the given name.
  • Add LinearLayout::find_child_with_name.
  • Add ScrollView::on_scroll callback.
  • Add once1! macro to turn a FnOnce into FnMut.
  • Implement Default for some wrapper views where the child is Default.

Bugfixes

  • More hygienic wrap_impl! macro using fully-qualified paths.
  • Fixed LinearLayout giving children incorrect sizes.
  • More accurate "important area" for ShadowView and PaddedView.
  • Fix potential panic when calling TextArea::set_cursor before its first layout phase.
  • Disabled views no longer accept input if they are still in focus.

Don't miss a new cursive release

NewReleases is sending notifications on new releases.