mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix Printer::print_box
documentation
This commit is contained in:
parent
f7a3d821d1
commit
cadb585948
@ -113,13 +113,16 @@ impl Printer {
|
|||||||
|
|
||||||
/// Prints a rectangular box.
|
/// Prints a rectangular box.
|
||||||
///
|
///
|
||||||
|
/// If `invert` is `true`, and the theme uses `Outset` borders, then the
|
||||||
|
/// box will use an "inset" style instead.
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # use cursive::Printer;
|
/// # use cursive::Printer;
|
||||||
/// # use cursive::theme;
|
/// # use cursive::theme;
|
||||||
/// # let printer = Printer::new((6,4), theme::load_default());
|
/// # let printer = Printer::new((6,4), theme::load_default());
|
||||||
/// printer.print_box((0,0), (6,4));
|
/// printer.print_box((0,0), (6,4), false);
|
||||||
/// ```
|
/// ```
|
||||||
pub fn print_box<T: Into<Vec2>, S: Into<Vec2>>(&self, start: T, size: S,
|
pub fn print_box<T: Into<Vec2>, S: Into<Vec2>>(&self, start: T, size: S,
|
||||||
invert: bool) {
|
invert: bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user