Enum mallumo_gls::raw::LogicOperation
[−]
[src]
pub enum LogicOperation { NoOperation, Clear, Set, CopyIncoming, CopyIncomingInverted, Invert, And, NotAnd, Or, Nor, Xor, Equivalent, AndReverse, AndInverted, OrReverse, OrInverted, }
Bitwise operation between incoming pixel S and framebuffer pixel D
Variants
NoOperation
Does nothing
Clear
Clears the pixel to value 0
Set
Sets the pixel value to 0
CopyIncoming
Copies the incoming pixel value S into the framebuffer
CopyIncomingInverted
Copies the value ~S
Invert
Result: ~D
And
Result: S & D
NotAnd
Result: ~(S & D)
Or
Result: S | D
Nor
Result: ~(S | D)
Xor
Result: S ^ D
Equivalent
Result :~(S ^ D)
AndReverse
Result: S | ~D
AndInverted
Result: ~S & D
OrReverse
Result: S | ~D
OrInverted
Result: ~S | D
Trait Implementations
impl Debug for LogicOperation
[src]
impl Copy for LogicOperation
[src]
impl Clone for LogicOperation
[src]
fn clone(&self) -> LogicOperation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for LogicOperation
[src]
fn eq(&self, __arg_0: &LogicOperation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for LogicOperation
[src]
impl Default for LogicOperation
[src]
fn default() -> LogicOperation
[src]
Returns the "default value" for a type. Read more