pub struct Frame { /* private fields */ }Expand description
渲染系统相关功能 帧
Implementations§
Source§impl Frame
impl Frame
渲染按钮
Sourcepub fn render_input(
&mut self,
text: &str,
cursor_pos: usize,
area: Rect,
style: Style,
cursor_style: Style,
focused: bool,
)
pub fn render_input( &mut self, text: &str, cursor_pos: usize, area: Rect, style: Style, cursor_style: Style, focused: bool, )
渲染输入框
Sourcepub fn render_list(
&mut self,
items: &[ListItem],
selected: usize,
area: Rect,
style: Style,
)
pub fn render_list( &mut self, items: &[ListItem], selected: usize, area: Rect, style: Style, )
渲染列表
Sourcepub fn render_table(
&mut self,
header: Option<&Row>,
rows: &[Row],
selected: usize,
area: Rect,
style: Style,
)
pub fn render_table( &mut self, header: Option<&Row>, rows: &[Row], selected: usize, area: Rect, style: Style, )
渲染表格
Sourcepub fn render_panel(
&mut self,
title: Option<&str>,
area: Rect,
style: Style,
border_style: Style,
)
pub fn render_panel( &mut self, title: Option<&str>, area: Rect, style: Style, border_style: Style, )
渲染面板
Sourcepub fn render_progress_bar(
&mut self,
current: u64,
total: u64,
width: u16,
area: Rect,
style: Style,
filled_style: Style,
)
pub fn render_progress_bar( &mut self, current: u64, total: u64, width: u16, area: Rect, style: Style, filled_style: Style, )
渲染进度条
Sourcepub fn render_loading_animation(
&mut self,
message: &str,
frame: &str,
area: Rect,
style: Style,
)
pub fn render_loading_animation( &mut self, message: &str, frame: &str, area: Rect, style: Style, )
渲染加载动画
渲染选择菜单
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more