mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
docs(terminal): fix imports (#1263)
This commit is contained in:
parent
e707ff11d1
commit
8857037bff
3 changed files with 3 additions and 3 deletions
|
@ -100,9 +100,9 @@ pub enum PixelSize {
|
||||||
/// layout::{self, Alignment, Constraint, Direction, Layout, Margin, Rect},
|
/// layout::{self, Alignment, Constraint, Direction, Layout, Margin, Rect},
|
||||||
/// style::{self, Color, Modifier, Style, Styled, Stylize},
|
/// style::{self, Color, Modifier, Style, Styled, Stylize},
|
||||||
/// symbols::{self, Marker},
|
/// symbols::{self, Marker},
|
||||||
/// terminal::{CompletedFrame, Frame, Terminal, TerminalOptions, Viewport},
|
|
||||||
/// text::{self, Line, Masked, Span, Text},
|
/// text::{self, Line, Masked, Span, Text},
|
||||||
/// widgets::{block::BlockExt, StatefulWidget, Widget},
|
/// widgets::{block::BlockExt, StatefulWidget, Widget},
|
||||||
|
/// CompletedFrame, Frame, Terminal, TerminalOptions, Viewport,
|
||||||
/// };
|
/// };
|
||||||
/// use tui_big_text::{BigTextBuilder, PixelSize};
|
/// use tui_big_text::{BigTextBuilder, PixelSize};
|
||||||
///
|
///
|
||||||
|
|
|
@ -30,7 +30,7 @@ pub use crate::{
|
||||||
layout::{self, Alignment, Constraint, Direction, Layout, Margin, Position, Rect, Size},
|
layout::{self, Alignment, Constraint, Direction, Layout, Margin, Position, Rect, Size},
|
||||||
style::{self, Color, Modifier, Style, Stylize},
|
style::{self, Color, Modifier, Style, Stylize},
|
||||||
symbols::{self},
|
symbols::{self},
|
||||||
terminal::{Frame, Terminal},
|
|
||||||
text::{self, Line, Masked, Span, Text},
|
text::{self, Line, Masked, Span, Text},
|
||||||
widgets::{block::BlockExt, StatefulWidget, Widget},
|
widgets::{block::BlockExt, StatefulWidget, Widget},
|
||||||
|
Frame, Terminal,
|
||||||
};
|
};
|
||||||
|
|
|
@ -126,7 +126,7 @@ where
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # use std::io::stdout;
|
/// # use std::io::stdout;
|
||||||
/// # use ratatui::{prelude::*, backend::TestBackend, terminal::{Viewport, TerminalOptions}};
|
/// # use ratatui::{prelude::*, backend::TestBackend, Viewport, TerminalOptions};
|
||||||
/// let backend = CrosstermBackend::new(stdout());
|
/// let backend = CrosstermBackend::new(stdout());
|
||||||
/// let viewport = Viewport::Fixed(Rect::new(0, 0, 10, 10));
|
/// let viewport = Viewport::Fixed(Rect::new(0, 0, 10, 10));
|
||||||
/// let terminal = Terminal::with_options(backend, TerminalOptions { viewport })?;
|
/// let terminal = Terminal::with_options(backend, TerminalOptions { viewport })?;
|
||||||
|
|
Loading…
Reference in a new issue