#[cfg(feature = "ApplicationModel_DataTransfer_DragDrop_Core")]
pub mod Core;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub struct DragDropModifiers(pub u32);
impl DragDropModifiers {
pub const None: Self = Self(0u32);
pub const Shift: Self = Self(1u32);
pub const Control: Self = Self(2u32);
pub const Alt: Self = Self(4u32);
pub const LeftButton: Self = Self(8u32);
pub const MiddleButton: Self = Self(16u32);
pub const RightButton: Self = Self(32u32);
}
impl windows_core::TypeKind for DragDropModifiers {
type TypeKind = windows_core::CopyType;
}
impl windows_core::RuntimeType for DragDropModifiers {
const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.DataTransfer.DragDrop.DragDropModifiers;u4)");
}
impl DragDropModifiers {
pub const fn contains(&self, other: Self) -> bool {
self.0 & other.0 == other.0
}
}
impl core::ops::BitOr for DragDropModifiers {
type Output = Self;
fn bitor(self, other: Self) -> Self {
Self(self.0 | other.0)
}
}
impl core::ops::BitAnd for DragDropModifiers {
type Output = Self;
fn bitand(self, other: Self) -> Self {
Self(self.0 & other.0)
}
}
impl core::ops::BitOrAssign for DragDropModifiers {
fn bitor_assign(&mut self, other: Self) {
self.0.bitor_assign(other.0)
}
}
impl core::ops::BitAndAssign for DragDropModifiers {
fn bitand_assign(&mut self, other: Self) {
self.0.bitand_assign(other.0)
}
}
impl core::ops::Not for DragDropModifiers {
type Output = Self;
fn not(self) -> Self {
Self(self.0.not())
}
}