mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix printer::Printer
imports
This commit is contained in:
parent
7f17a4ff74
commit
1b34934df7
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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));
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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());
|
||||
|
@ -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;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
use view::{View, ViewWrapper};
|
||||
use printer::Printer;
|
||||
use Printer;
|
||||
use vec::Vec2;
|
||||
use theme::ColorStyle;
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user