#[repr(u8)]pub enum DrawingMode {
Solid = 0,
Or = 1,
Xor = 2,
And = 3,
}Expand description
Drawing mode of drawing functions.
Determines how each drawing function overwrites pixels that already drawn.
The constant value follows the value of GBDK drawing.h
Variants§
Solid = 0
0x00, Overwrites the existing pixels
Or = 1
0x01, Performs a logical OR
Xor = 2
0x02, Performs a logical XOR
And = 3
0x03, Performs a logical AND
Trait Implementations§
Source§impl Clone for DrawingMode
impl Clone for DrawingMode
Source§fn clone(&self) -> DrawingMode
fn clone(&self) -> DrawingMode
Returns a duplicate 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 moreSource§impl From<u8> for DrawingMode
impl From<u8> for DrawingMode
Source§impl PartialEq for DrawingMode
impl PartialEq for DrawingMode
impl Copy for DrawingMode
impl StructuralPartialEq for DrawingMode
Auto Trait Implementations§
impl Freeze for DrawingMode
impl RefUnwindSafe for DrawingMode
impl Send for DrawingMode
impl Sync for DrawingMode
impl Unpin for DrawingMode
impl UnwindSafe for DrawingMode
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