Skip to content

cursive_core-v0.1.1

Latest
Compare
Choose a tag to compare
@gyscos gyscos released this 06 Jul 19:21
· 8 commits to master since this release

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.