pub struct RecordingPainter {
pub calls: Vec<PaintCall>,
}Fields§
§calls: Vec<PaintCall>Every call made, in order.
Trait Implementations§
Source§impl Debug for RecordingPainter
impl Debug for RecordingPainter
Source§impl Default for RecordingPainter
impl Default for RecordingPainter
Source§impl Painter for RecordingPainter
impl Painter for RecordingPainter
Source§fn cache_policy(&self) -> CachePolicy
fn cache_policy(&self) -> CachePolicy
Returns the policy of a recording painter.
§Returns
CachePolicy::DirectDraw, since nothing is cached.
Source§fn line_height(&mut self, style: &TextStyle) -> u32
fn line_height(&mut self, style: &TextStyle) -> u32
Source§fn dither(&mut self, bounds: Rect, first: Color, second: Color)
fn dither(&mut self, bounds: Rect, first: Color, second: Color)
Records a dither.
§Arguments
bounds- The rectangle.first- The corner pixel color.second- The other color.
Source§fn dither_overlay(&mut self, bounds: Rect, color: Color)
fn dither_overlay(&mut self, bounds: Rect, color: Color)
Auto Trait Implementations§
impl Freeze for RecordingPainter
impl RefUnwindSafe for RecordingPainter
impl Send for RecordingPainter
impl Sync for RecordingPainter
impl Unpin for RecordingPainter
impl UnsafeUnpin for RecordingPainter
impl UnwindSafe for RecordingPainter
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