pub struct ROP(/* private fields */);
kernel
and gdi
only.Expand description
Raster operation code (u32
).
HDC::BitBlt
rop
,
HDC::PatBlt
rop
and
IMAGELISTDRAWPARAMS
dwRop
.
Originally has no prefix.
Implementations§
source§impl ROP
impl ROP
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl ROP
impl ROP
sourcepub const SRCPAINT: Self = _
pub const SRCPAINT: Self = _
Combines the colors of the source and destination rectangles by using the Boolean OR operator.
sourcepub const SRCAND: Self = _
pub const SRCAND: Self = _
Combines the colors of the source and destination rectangles by using the Boolean AND operator.
sourcepub const SRCINVERT: Self = _
pub const SRCINVERT: Self = _
Combines the colors of the source and destination rectangles by using the Boolean XOR operator.
sourcepub const SRCERASE: Self = _
pub const SRCERASE: Self = _
Combines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator.
sourcepub const NOTSRCCOPY: Self = _
pub const NOTSRCCOPY: Self = _
Copies the inverted source rectangle to the destination.
sourcepub const NOTSRCERASE: Self = _
pub const NOTSRCERASE: Self = _
Combines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color.
sourcepub const MERGECOPY: Self = _
pub const MERGECOPY: Self = _
Merges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator.
sourcepub const MERGEPAINT: Self = _
pub const MERGEPAINT: Self = _
Merges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator.
sourcepub const PATCOPY: Self = _
pub const PATCOPY: Self = _
Copies the brush currently selected in hdcDest, into the destination bitmap.
sourcepub const PATPAINT: Self = _
pub const PATPAINT: Self = _
Combines the colors of the brush currently selected in hdcDest, with the colors of the inverted source rectangle by using the Boolean OR operator. The result of this operation is combined with the colors of the destination rectangle by using the Boolean OR operator.
sourcepub const PATINVERT: Self = _
pub const PATINVERT: Self = _
Combines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator.
sourcepub const BLACKNESS: Self = _
pub const BLACKNESS: Self = _
Fills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)
sourcepub const WHITENESS: Self = _
pub const WHITENESS: Self = _
Fills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)
sourcepub const NOMIRRORBITMAP: Self = _
pub const NOMIRRORBITMAP: Self = _
Prevents the bitmap from being mirrored.
sourcepub const CAPTUREBLT: Self = _
pub const CAPTUREBLT: Self = _
Includes any windows that are layered on top of your window in the resulting image. By default, the image only contains your window. Note that this generally cannot be used for printing device contexts.
Trait Implementations§
source§impl IntUnderlying for ROP
impl IntUnderlying for ROP
source§impl Ord for ROP
impl Ord for ROP
source§impl PartialOrd for ROP
impl PartialOrd for ROP
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more