Fix printer::Printer imports

This commit is contained in:
Alexandre Bury 2016-07-13 23:25:54 -07:00
parent 7f17a4ff74
commit 1b34934df7
17 changed files with 19 additions and 19 deletions

View File

@ -3,7 +3,7 @@ extern crate cursive;
use cursive::Cursive;
use cursive::view::{View, BoxView};
use cursive::printer::Printer;
use cursive::Printer;
use cursive::event::{EventResult, Event};
fn main() {

View File

@ -5,7 +5,7 @@ use std::thread;
use std::time::Duration;
use cursive::Cursive;
use cursive::printer::Printer;
use cursive::Printer;
use cursive::view::{View, FullView};
fn main() {

View File

@ -3,7 +3,7 @@ use menu::MenuTree;
use view::MenuPopup;
use view::KeyEventView;
use theme::ColorStyle;
use printer::Printer;
use Printer;
use view::Position;
use event::*;

View File

@ -92,7 +92,7 @@ impl Printer {
/// # Examples
///
/// ```no_run
/// # use cursive::printer::Printer;
/// # use cursive::Printer;
/// # use cursive::theme;
/// # let printer = Printer::new((6,4), theme::load_default());
/// printer.with_color(theme::ColorStyle::Highlight, |printer| {
@ -120,7 +120,7 @@ impl Printer {
/// # Examples
///
/// ```
/// # use cursive::printer::Printer;
/// # use cursive::Printer;
/// # use cursive::theme;
/// # let printer = Printer::new((6,4), theme::load_default());
/// printer.print_box((0,0), (6,4));

View File

@ -5,7 +5,7 @@ use Cursive;
use vec::Vec2;
use view::View;
use event::*;
use printer::Printer;
use Printer;
use unicode_width::UnicodeWidthStr;
/// Simple text label with a callback when ENTER is pressed.

View File

@ -8,7 +8,7 @@ use theme::ColorStyle;
use view::{Selector, TextView, View};
use view::{Button, SizedView};
use vec::{Vec2, Vec4};
use printer::Printer;
use Printer;
use unicode_width::UnicodeWidthStr;

View File

@ -5,7 +5,7 @@ use theme::{ColorStyle, Effect};
use vec::Vec2;
use view::{IdView, View};
use event::*;
use printer::Printer;
use Printer;
/// Input box where the user can enter and edit text.

View File

@ -2,7 +2,7 @@ use XY;
use view::View;
use view::SizeCache;
use vec::Vec2;
use printer::Printer;
use Printer;
use orientation::Orientation;
use event::{Event, EventResult, Key};

View File

@ -4,7 +4,7 @@ use unicode_width::UnicodeWidthStr;
use Cursive;
use menu::{MenuItem, MenuTree};
use printer::Printer;
use Printer;
use view::View;
use view::Position;
use view::KeyEventView;

View File

@ -67,7 +67,7 @@ use std::any::Any;
use XY;
use event::{Event, EventResult};
use vec::Vec2;
use printer::Printer;
use Printer;
pub use self::position::{Offset, Position};

View File

@ -2,7 +2,7 @@ use std::cmp::{max, min};
use theme::ColorStyle;
use vec::Vec2;
use printer::Printer;
use Printer;
/// Provide scrolling functionalities to a view.
#[derive(Default)]
@ -117,7 +117,7 @@ impl ScrollBase {
///
/// ```
/// # use cursive::view::ScrollBase;
/// # use cursive::printer::Printer;
/// # use cursive::Printer;
/// # use cursive::theme;
/// # let scrollbase = ScrollBase::new();
/// # let printer = Printer::new((5,1), theme::load_default());

View File

@ -7,7 +7,7 @@ use align::{Align, HAlign, VAlign};
use view::scroll::ScrollBase;
use event::{Event, EventResult, Key};
use vec::Vec2;
use printer::Printer;
use Printer;
use unicode_width::UnicodeWidthStr;

View File

@ -1,5 +1,5 @@
use view::{View, ViewWrapper};
use printer::Printer;
use Printer;
use vec::Vec2;
use theme::ColorStyle;

View File

@ -4,7 +4,7 @@ use backend::Backend;
use vec::Vec2;
use view::{Offset, Position, Selector, ShadowView, View};
use event::{Event, EventResult};
use printer::Printer;
use Printer;
use theme::ColorStyle;
/// Simple stack of views.

View File

@ -2,7 +2,7 @@ use XY;
use vec::Vec2;
use view::View;
use view::SizeCache;
use printer::Printer;
use Printer;
use align::*;
use event::*;
use super::scroll::ScrollBase;

View File

@ -1,5 +1,5 @@
use view::{IdView, View, ViewWrapper};
use printer::Printer;
use Printer;
use vec::Vec2;
/// Wrapper around a view that remembers its position.

View File

@ -2,7 +2,7 @@ use std::any::Any;
use vec::Vec2;
use view::{Selector, View};
use printer::Printer;
use Printer;
use event::{Event, EventResult};
/// Generic wrapper around a view.