pub struct Painter { /* private fields */ }Implementations§
Source§impl Painter
impl Painter
pub fn from_bitmap(bitmap: ImageBitmap) -> Painter
pub fn from_svg(svg: SvgPainter) -> Painter
pub fn intrinsic_size(&self) -> Size
pub fn as_bitmap(&self) -> Option<&ImageBitmap>
Sourcepub fn bitmap(&self) -> Option<&ImageBitmap>
pub fn bitmap(&self) -> Option<&ImageBitmap>
Returns the underlying bitmap when this painter is bitmap-backed.
Trait Implementations§
impl Eq for Painter
Source§impl From<ImageBitmap> for Painter
impl From<ImageBitmap> for Painter
Source§fn from(value: ImageBitmap) -> Painter
fn from(value: ImageBitmap) -> Painter
Converts to this type from the input type.
Source§impl From<SvgPainter> for Painter
impl From<SvgPainter> for Painter
Source§fn from(value: SvgPainter) -> Painter
fn from(value: SvgPainter) -> Painter
Converts to this type from the input type.
impl StructuralPartialEq for Painter
Auto Trait Implementations§
impl Freeze for Painter
impl RefUnwindSafe for Painter
impl Send for Painter
impl Sync for Painter
impl Unpin for Painter
impl UnsafeUnpin for Painter
impl UnwindSafe for Painter
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