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