pub struct Canvas { /* private fields */ }
Implementations§
Source§impl Canvas
impl Canvas
Sourcepub fn instance() -> &'static Canvas
pub fn instance() -> &'static Canvas
Gets the Canvas instance for the application. At the moment only one Canvas per application is supported.
Sourcepub fn canvas_properties_ptr(&self) -> *const u32
pub fn canvas_properties_ptr(&self) -> *const u32
Get pointer to the canvas properties rect WARNING: JS Exported Function - not intended for normal use
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn set_width(&self, val: u32)
pub fn set_height(&self, val: u32)
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