pub struct Frame<'a> { /* private fields */ }Implementations§
Source§impl<'a> Frame<'a>
impl<'a> Frame<'a>
pub fn area(&self) -> Rect
pub fn buffer(&mut self) -> &mut Buffer
pub fn frame_count(&self) -> u64
pub fn set_cursor_position(&mut self, x: u16, y: u16)
pub fn cursor_position(&self) -> Option<(u16, u16)>
pub fn render_widget<W>(&mut self, widget: W, area: Rect)where
W: Widget,
pub fn render_widget_timed<N, W>(&mut self, name: N, widget: W, area: Rect)
pub fn time_named<N, R>(&mut self, name: N, f: impl FnOnce(&mut Self) -> R) -> R
pub fn time_pane<R>( &mut self, name: impl Into<Cow<'static, str>>, area: Rect, f: impl FnOnce(&mut Self) -> R, ) -> R
pub fn diagnostics(&self) -> &[FrameDiagnostic]
pub fn register_hit_region(&mut self, region: HitRegion) -> &HitRegion
pub fn register_metadata_region( &mut self, area: Rect, metadata: WidgetMetadata, ) -> &HitRegion
pub fn register_selectable_span( &mut self, span: SelectableSpan, ) -> &SelectableSpan
pub fn register_scroll_region( &mut self, id: impl Into<WidgetId>, viewport: Rect, scroll_offset: usize, rows: Vec<ScrollRowHit>, )
pub fn interaction_layer(&self) -> &InteractionLayer
pub fn interaction_layer_mut(&mut self) -> &mut InteractionLayer
pub fn mark_dirty(&mut self, area: Rect)
pub fn dirty_regions(&self) -> &[Rect]
Auto Trait Implementations§
impl<'a> !UnwindSafe for Frame<'a>
impl<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
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