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

Does nothing

Clears the pixel to value 0

Sets the pixel value to 0

Copies the incoming pixel value S into the framebuffer

Copies the value ~S

Result: ~D

Result: S & D

Result: ~(S & D)

Result: S | D

Result: ~(S | D)

Result: S ^ D

Result :~(S ^ D)

Result: S | ~D

Result: ~S & D

Result: S | ~D

Result: ~S | D

Trait Implementations

impl Debug for LogicOperation
[src]

Formats the value using the given formatter.

impl Copy for LogicOperation
[src]

impl Clone for LogicOperation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for LogicOperation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for LogicOperation
[src]

impl Default for LogicOperation
[src]

Returns the "default value" for a type. Read more