mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix cursive_run doc
This commit is contained in:
parent
801fa8e54b
commit
03cd0d41da
@ -101,9 +101,9 @@ where
|
||||
/// Returns `true` if an event or callback was received,
|
||||
/// and `false` otherwise.
|
||||
///
|
||||
/// [1]: CursiveRun::run()
|
||||
/// [2]: CursiveRun::step()
|
||||
/// [3]: CursiveRun::post_events()
|
||||
/// [1]: CursiveRunner::run()
|
||||
/// [2]: CursiveRunner::step()
|
||||
/// [3]: CursiveRunner::post_events()
|
||||
pub fn process_events(&mut self) -> bool {
|
||||
// Things are boring if nothing significant happened.
|
||||
let mut boring = true;
|
||||
@ -137,9 +137,9 @@ where
|
||||
///
|
||||
/// You should call this after [`process_events`][3].
|
||||
///
|
||||
/// [1]: Cursive::run()
|
||||
/// [2]: Cursive::step()
|
||||
/// [3]: Cursive::process_events()
|
||||
/// [1]: CursiveRunner::run()
|
||||
/// [2]: CursiveRunner::step()
|
||||
/// [3]: CursiveRunner::process_events()
|
||||
pub fn post_events(&mut self, received_something: bool) {
|
||||
let boring = !received_something;
|
||||
// How many times should we try if it's still boring?
|
||||
|
@ -222,8 +222,10 @@ use std::path::Path;
|
||||
pub struct Theme {
|
||||
/// Whether views in a StackView should have shadows.
|
||||
pub shadow: bool,
|
||||
|
||||
/// How view borders should be drawn.
|
||||
pub borders: BorderStyle,
|
||||
|
||||
/// What colors should be used through the application?
|
||||
pub palette: Palette,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user