Struct classicube_sys::OwnedContext2D
source · pub struct OwnedContext2D { /* private fields */ }
Implementations§
source§impl OwnedContext2D
impl OwnedContext2D
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, ) -> OwnedContext2D
pub fn new_pow_of_2_cleared(width: c_int, height: c_int) -> OwnedContext2D
pub fn as_context_2d(&self) -> &Context2D
pub fn as_context_2d_mut(&mut self) -> &mut Context2D
pub fn as_bitmap(&self) -> &Bitmap
pub fn as_bitmap_mut(&mut self) -> &mut Bitmap
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedContext2D
impl RefUnwindSafe for OwnedContext2D
impl !Send for OwnedContext2D
impl !Sync for OwnedContext2D
impl Unpin for OwnedContext2D
impl UnwindSafe for OwnedContext2D
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