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 Debug for WindowShapeMode
impl Debug for WindowShapeMode
source§impl Hash for WindowShapeMode
impl Hash for WindowShapeMode
source§impl PartialEq for WindowShapeMode
impl PartialEq for WindowShapeMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)