| #[cfg(feature = "ApplicationModel_DataTransfer_DragDrop_Core")] |
| pub mod Core; |
| #[doc = "*Required features: `\"ApplicationModel_DataTransfer_DragDrop\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| 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 ::core::marker::Copy for DragDropModifiers {} |
| impl ::core::clone::Clone for DragDropModifiers { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for DragDropModifiers { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for DragDropModifiers { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for DragDropModifiers { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DragDropModifiers").field(&self.0).finish() |
| } |
| } |
| 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()) |
| } |
| } |
| impl ::windows::core::RuntimeType for DragDropModifiers { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.DataTransfer.DragDrop.DragDropModifiers;u4)"); |
| } |
| #[cfg(feature = "implement")] |
| ::core::include!("impl.rs"); |