pub struct Surface { /* private fields */ }Implementations§
Source§impl Surface
impl Surface
pub fn new(width: u16, height: u16) -> Self
pub fn with_theme(width: u16, height: u16, theme: Theme) -> Self
pub fn terminal_size(&self) -> (u16, u16)
pub fn set_terminal_size(&mut self, w: u16, h: u16)
pub fn layout(&self) -> &LayoutTree
pub fn set_layout(&mut self, layout: LayoutTree)
pub fn theme(&self) -> &Arc<Theme> ⓘ
Sourcepub fn theme_mut(&mut self) -> &mut Theme
pub fn theme_mut(&mut self) -> &mut Theme
Mutable theme handle; copy-on-write via Arc::make_mut.
pub fn force_redraw(&mut self)
Sourcepub fn paint_rect(&self, id: PaintId) -> Option<Rect>
pub fn paint_rect(&self, id: PaintId) -> Option<Rect>
Resolved screen rect for a PaintId leaf, or None if not present.
pub fn compositor(&self) -> &Compositor
pub fn compositor_mut(&mut self) -> &mut Compositor
Auto Trait Implementations§
impl !RefUnwindSafe for Surface
impl !UnwindSafe for Surface
impl Freeze for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
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