Struct classicube_sys::OwnedBitmap
source · pub struct OwnedBitmap { /* private fields */ }
Implementations§
source§impl OwnedBitmap
impl OwnedBitmap
pub fn new(width: c_int, height: c_int, color: BitmapCol) -> Self
pub fn new_cleared(width: c_int, height: c_int) -> Self
pub fn new_pow_of_2( width: c_int, height: c_int, color: BitmapCol, ) -> OwnedBitmap
pub fn new_pow_of_2_cleared(width: c_int, height: c_int) -> OwnedBitmap
pub fn as_bitmap(&self) -> &Bitmap
pub fn as_bitmap_mut(&mut self) -> &mut Bitmap
sourcepub unsafe fn get_bitmap(&self) -> Bitmap
pub unsafe fn get_bitmap(&self) -> Bitmap
§Safety
The OwnedBitmap
needs to live longer than the Bitmap
return here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedBitmap
impl RefUnwindSafe for OwnedBitmap
impl !Send for OwnedBitmap
impl !Sync for OwnedBitmap
impl Unpin for OwnedBitmap
impl UnwindSafe for OwnedBitmap
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