Cursive v0.1.1 Release Notes

Release Date: 2020-07-06 // almost 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.
    • 0️⃣ 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.