pub struct Painter { /* private fields */ }Implementations
sourceimpl Painter
impl Painter
pub fn new(scope: Window, style: ContentStyle) -> Self
pub fn with_scope(&self, scope: Window) -> Painter
pub fn with_style(&self, style: &ContentStyle) -> Painter
pub fn scope(&self) -> Window
pub fn style(&self) -> &ContentStyle
pub fn copy<'a>(
&self,
symbols: impl Iterator<Item = (Point, &'a StyledContent<String>)>,
screen: &mut Screen
)
pub fn paint<M>(&self, text: &Text<'_, M>, screen: &mut Screen) -> Window
pub fn fill(&self, screen: &mut Screen)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Painter
impl Send for Painter
impl Sync for Painter
impl Unpin for Painter
impl UnwindSafe for Painter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more