Crate cursive_extras
source · [−]Expand description
Cursive Extras
Extra views for the Cursive TUI library as well some helper functions and macros
To use
Add cursive-extras = "0.1.0"
to Cargo.toml in your desired project
Macros
Convenience macro that creates a horizontal layout of views
Convenience macro that updates the specified StatusView
reference with an error message and returns
from the current callback if an error happens, returns the Ok
value otherwise
Convenience macro that makes SelectView
s easier to create
Convenience macro that generates a settings view using sub-views wrapped in a Dialog
view
Convenience macro that creates a vertical layout of views
Structs
Horizontal divider view
View that can be used to report an application’s status. It is meant to be placed at the bottom of the main Cursive layer
Vertical divider view
Functions
Convenience function that generates a better looking Cursive theme
Convenience function that creates a dialog that runs a callback if the user selects “Yes”
Convenience function that shows a user a dialog box with a message that includes a back button
Convenience function that creates a named EditView
that has a better
looking style and can optionally act as a password entry box