Enum sdl2_sys::WindowShapeMode
source · #[repr(u32)]pub enum WindowShapeMode {
ShapeModeDefault = 0,
ShapeModeBinarizeAlpha = 1,
ShapeModeReverseBinarizeAlpha = 2,
ShapeModeColorKey = 3,
}
Expand description
\brief An enum denoting the specific type of contents present in an SDL_WindowShapeParams union.
Variants§
ShapeModeDefault = 0
\brief The default mode, a binarized alpha cutoff of 1.
ShapeModeBinarizeAlpha = 1
\brief A binarized alpha cutoff with a given integer value.
ShapeModeReverseBinarizeAlpha = 2
\brief A binarized alpha cutoff with a given integer value, but with the opposite comparison.
ShapeModeColorKey = 3
\brief A color key is applied.
Trait Implementations§
source§impl Clone for WindowShapeMode
impl Clone for WindowShapeMode
source§fn clone(&self) -> WindowShapeMode
fn clone(&self) -> WindowShapeMode
Returns a copy 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 Hash for WindowShapeMode
impl Hash for WindowShapeMode
source§impl PartialEq for WindowShapeMode
impl PartialEq for WindowShapeMode
source§fn eq(&self, other: &WindowShapeMode) -> bool
fn eq(&self, other: &WindowShapeMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WindowShapeMode
impl Eq for WindowShapeMode
impl StructuralPartialEq for WindowShapeMode
Auto Trait Implementations§
impl Freeze for WindowShapeMode
impl RefUnwindSafe for WindowShapeMode
impl Send for WindowShapeMode
impl Sync for WindowShapeMode
impl Unpin for WindowShapeMode
impl UnwindSafe for WindowShapeMode
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