Struct windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation
pub struct CoreDragOperation(/* private fields */);
Implementations§
§impl CoreDragOperation
impl CoreDragOperation
pub fn new() -> Result<Self>
pub fn Data(&self) -> Result<DataPackage>
pub fn SetPointerId(&self, pointerid: u32) -> Result<()>
pub fn SetDragUIContentFromSoftwareBitmap<P0>(
&self,
softwarebitmap: P0
) -> Result<()>where
P0: IntoParam<SoftwareBitmap>,
pub fn SetDragUIContentFromSoftwareBitmapWithAnchorPoint<P0>(
&self,
softwarebitmap: P0,
anchorpoint: Point
) -> Result<()>where
P0: IntoParam<SoftwareBitmap>,
pub fn DragUIContentMode(&self) -> Result<CoreDragUIContentMode>
pub fn SetDragUIContentMode(&self, value: CoreDragUIContentMode) -> Result<()>
pub fn StartAsync(&self) -> Result<IAsyncOperation<DataPackageOperation>>
pub fn AllowedOperations(&self) -> Result<DataPackageOperation>
pub fn SetAllowedOperations(&self, value: DataPackageOperation) -> Result<()>
Trait Implementations§
§impl Clone for CoreDragOperation
impl Clone for CoreDragOperation
§fn clone(&self) -> CoreDragOperation
fn clone(&self) -> CoreDragOperation
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 more§impl Debug for CoreDragOperation
impl Debug for CoreDragOperation
§impl From<&CoreDragOperation> for &IInspectable
impl From<&CoreDragOperation> for &IInspectable
§fn from(value: &CoreDragOperation) -> Self
fn from(value: &CoreDragOperation) -> Self
Converts to this type from the input type.
§impl From<&CoreDragOperation> for &IUnknown
impl From<&CoreDragOperation> for &IUnknown
§fn from(value: &CoreDragOperation) -> Self
fn from(value: &CoreDragOperation) -> Self
Converts to this type from the input type.
§impl From<CoreDragOperation> for IInspectable
impl From<CoreDragOperation> for IInspectable
§fn from(value: CoreDragOperation) -> Self
fn from(value: CoreDragOperation) -> Self
Converts to this type from the input type.
§impl From<CoreDragOperation> for IUnknown
impl From<CoreDragOperation> for IUnknown
§fn from(value: CoreDragOperation) -> Self
fn from(value: CoreDragOperation) -> Self
Converts to this type from the input type.
§impl Interface for CoreDragOperation
impl Interface for CoreDragOperation
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for CoreDragOperation
impl PartialEq for CoreDragOperation
§fn eq(&self, other: &CoreDragOperation) -> bool
fn eq(&self, other: &CoreDragOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CoreDragOperation
impl Send for CoreDragOperation
impl StructuralPartialEq for CoreDragOperation
impl Sync for CoreDragOperation
Auto Trait Implementations§
impl RefUnwindSafe for CoreDragOperation
impl Unpin for CoreDragOperation
impl UnwindSafe for CoreDragOperation
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