Struct windows::Devices::Display::Core::DisplayTarget
pub struct DisplayTarget(/* private fields */);
Implementations§
§impl DisplayTarget
impl DisplayTarget
pub fn Adapter(&self) -> Result<DisplayAdapter>
pub fn DeviceInterfacePath(&self) -> Result<HSTRING>
pub fn AdapterRelativeId(&self) -> Result<u32>
pub fn IsConnected(&self) -> Result<bool>
pub fn IsVirtualModeEnabled(&self) -> Result<bool>
pub fn IsVirtualTopologyEnabled(&self) -> Result<bool>
pub fn UsageKind(&self) -> Result<DisplayMonitorUsageKind>
pub fn MonitorPersistence(&self) -> Result<DisplayTargetPersistence>
pub fn StableMonitorId(&self) -> Result<HSTRING>
pub fn TryGetMonitor(&self) -> Result<DisplayMonitor>
pub fn Properties(&self) -> Result<IMapView<GUID, IInspectable>>
pub fn IsStale(&self) -> Result<bool>
pub fn IsSame<P0>(&self, othertarget: P0) -> Result<bool>where
P0: Param<DisplayTarget>,
pub fn IsEqual<P0>(&self, othertarget: P0) -> Result<bool>where
P0: Param<DisplayTarget>,
Trait Implementations§
§impl CanInto<IInspectable> for DisplayTarget
impl CanInto<IInspectable> for DisplayTarget
§impl CanInto<IUnknown> for DisplayTarget
impl CanInto<IUnknown> for DisplayTarget
§impl Clone for DisplayTarget
impl Clone for DisplayTarget
§fn clone(&self) -> DisplayTarget
fn clone(&self) -> DisplayTarget
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 DisplayTarget
impl Debug for DisplayTarget
§impl From<&DisplayTarget> for &IInspectable
impl From<&DisplayTarget> for &IInspectable
§fn from(value: &DisplayTarget) -> Self
fn from(value: &DisplayTarget) -> Self
Converts to this type from the input type.
§impl From<&DisplayTarget> for &IUnknown
impl From<&DisplayTarget> for &IUnknown
§fn from(value: &DisplayTarget) -> Self
fn from(value: &DisplayTarget) -> Self
Converts to this type from the input type.
§impl From<DisplayTarget> for IInspectable
impl From<DisplayTarget> for IInspectable
§fn from(value: DisplayTarget) -> Self
fn from(value: DisplayTarget) -> Self
Converts to this type from the input type.
§impl From<DisplayTarget> for IUnknown
impl From<DisplayTarget> for IUnknown
§fn from(value: DisplayTarget) -> Self
fn from(value: DisplayTarget) -> Self
Converts to this type from the input type.
§impl Interface for DisplayTarget
impl Interface for DisplayTarget
§const IID: GUID = <IDisplayTarget as windows_core::Interface>::IID
const IID: GUID = <IDisplayTarget as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for DisplayTarget
impl PartialEq for DisplayTarget
§fn eq(&self, other: &DisplayTarget) -> bool
fn eq(&self, other: &DisplayTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DisplayTarget
impl Send for DisplayTarget
impl StructuralPartialEq for DisplayTarget
impl Sync for DisplayTarget
Auto Trait Implementations§
impl Freeze for DisplayTarget
impl RefUnwindSafe for DisplayTarget
impl Unpin for DisplayTarget
impl UnwindSafe for DisplayTarget
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
)