pub struct Canvas { /* private fields */ }
Expand description
Canvas 类包含“绘制”调用。要绘制某些内容,您需要 4 个基本组件:用于保存像素的 Bitmap、用于托管绘制调用(写入位图)的 Canvas、绘图基元(例如 Rect、Path、文本、Bitmap)和 Paint(用于描述绘图的颜色和样式)。
开发者指南 有关如何使用 Canvas 的更多信息,请阅读 Canvas 和 Drawables 开发者指南。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Canvas
impl RefUnwindSafe for Canvas
impl Send for Canvas
impl Sync for Canvas
impl Unpin for Canvas
impl UnwindSafe for Canvas
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