pub struct ROP(/* private fields */);
kernel
and gdi
only.Expand description
Raster operation code for HDC::BitBlt
,
HDC::PatBlt
and
IMAGELISTDRAWPARAMS
(u32
).
Originally has no prefix.
Implementations§
Source§impl ROP
impl ROP
Sourcepub const unsafe fn as_mut(&mut self) -> &mut u32
pub const unsafe fn as_mut(&mut self) -> &mut u32
Returns a mutable reference to the underlying raw value.
§Safety
Be sure the integer being set is meaningful for the actual type.
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.