Struct ori_graphics::ImageHandle
source · pub struct ImageHandle { /* private fields */ }
Implementations§
source§impl ImageHandle
impl ImageHandle
pub fn new<T: Any + Send + Sync>(handle: T, width: u32, height: u32) -> Self
pub fn downgrade(&self) -> WeakImageHandle
pub fn downcast_ref<T: Any>(&self) -> Option<&T>
pub fn downcast_arc<T: Any + Send + Sync>(self) -> Option<Arc<T>>
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn size(&self) -> Vec2
Trait Implementations§
source§impl Clone for ImageHandle
impl Clone for ImageHandle
source§fn clone(&self) -> ImageHandle
fn clone(&self) -> ImageHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ImageHandle
impl Send for ImageHandle
impl Sync for ImageHandle
impl Unpin for ImageHandle
impl !UnwindSafe for ImageHandle
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