Struct windows::Win32::Graphics::Dxgi::IDXGIOutput2
pub struct IDXGIOutput2(/* private fields */);
Implementations§
§impl IDXGIOutput2
impl IDXGIOutput2
pub unsafe fn SupportsOverlays(&self) -> BOOL
Methods from Deref<Target = IDXGIOutput1>§
pub unsafe fn GetDisplayModeList1( &self, enumformat: DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: Option<*mut DXGI_MODE_DESC1>, ) -> Result<()>
pub unsafe fn FindClosestMatchingMode1<P0>(
&self,
pmodetomatch: *const DXGI_MODE_DESC1,
pclosestmatch: *mut DXGI_MODE_DESC1,
pconcerneddevice: P0,
) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn GetDisplaySurfaceData1<P0>(&self, pdestination: P0) -> Result<()>where
P0: Param<IDXGIResource>,
pub unsafe fn DuplicateOutput<P0>(
&self,
pdevice: P0,
) -> Result<IDXGIOutputDuplication>where
P0: Param<IUnknown>,
Methods from Deref<Target = IDXGIOutput>§
pub unsafe fn GetDesc(&self) -> Result<DXGI_OUTPUT_DESC>
pub unsafe fn GetDisplayModeList( &self, enumformat: DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: Option<*mut DXGI_MODE_DESC>, ) -> Result<()>
pub unsafe fn FindClosestMatchingMode<P0>(
&self,
pmodetomatch: *const DXGI_MODE_DESC,
pclosestmatch: *mut DXGI_MODE_DESC,
pconcerneddevice: P0,
) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn WaitForVBlank(&self) -> Result<()>
pub unsafe fn TakeOwnership<P0, P1>(
&self,
pdevice: P0,
exclusive: P1,
) -> Result<()>where
P0: Param<IUnknown>,
P1: Param<BOOL>,
pub unsafe fn ReleaseOwnership(&self)
pub unsafe fn GetGammaControlCapabilities( &self, pgammacaps: *mut DXGI_GAMMA_CONTROL_CAPABILITIES, ) -> Result<()>
pub unsafe fn SetGammaControl( &self, parray: *const DXGI_GAMMA_CONTROL, ) -> Result<()>
pub unsafe fn GetGammaControl( &self, parray: *mut DXGI_GAMMA_CONTROL, ) -> Result<()>
pub unsafe fn SetDisplaySurface<P0>(&self, pscanoutsurface: P0) -> Result<()>where
P0: Param<IDXGISurface>,
pub unsafe fn GetDisplaySurfaceData<P0>(&self, pdestination: P0) -> Result<()>where
P0: Param<IDXGISurface>,
pub unsafe fn GetFrameStatistics( &self, pstats: *mut DXGI_FRAME_STATISTICS, ) -> Result<()>
Methods from Deref<Target = IDXGIObject>§
pub unsafe fn SetPrivateData( &self, name: *const GUID, datasize: u32, pdata: *const c_void, ) -> Result<()>
pub unsafe fn SetPrivateDataInterface<P0>(
&self,
name: *const GUID,
punknown: P0,
) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn GetPrivateData( &self, name: *const GUID, pdatasize: *mut u32, pdata: *mut c_void, ) -> Result<()>
pub unsafe fn GetParent<T>(&self) -> Result<T>where
T: Interface,
Trait Implementations§
§impl CanInto<IDXGIObject> for IDXGIOutput2
impl CanInto<IDXGIObject> for IDXGIOutput2
§impl CanInto<IDXGIOutput> for IDXGIOutput2
impl CanInto<IDXGIOutput> for IDXGIOutput2
§impl CanInto<IDXGIOutput1> for IDXGIOutput2
impl CanInto<IDXGIOutput1> for IDXGIOutput2
§impl CanInto<IDXGIOutput2> for IDXGIOutput3
impl CanInto<IDXGIOutput2> for IDXGIOutput3
§impl CanInto<IDXGIOutput2> for IDXGIOutput4
impl CanInto<IDXGIOutput2> for IDXGIOutput4
§impl CanInto<IDXGIOutput2> for IDXGIOutput5
impl CanInto<IDXGIOutput2> for IDXGIOutput5
§impl CanInto<IDXGIOutput2> for IDXGIOutput6
impl CanInto<IDXGIOutput2> for IDXGIOutput6
§impl CanInto<IUnknown> for IDXGIOutput2
impl CanInto<IUnknown> for IDXGIOutput2
§impl Clone for IDXGIOutput2
impl Clone for IDXGIOutput2
§fn clone(&self) -> IDXGIOutput2
fn clone(&self) -> IDXGIOutput2
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 IDXGIOutput2
impl Debug for IDXGIOutput2
§impl Deref for IDXGIOutput2
impl Deref for IDXGIOutput2
§impl From<&IDXGIOutput2> for &IDXGIObject
impl From<&IDXGIOutput2> for &IDXGIObject
§fn from(value: &IDXGIOutput2) -> Self
fn from(value: &IDXGIOutput2) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput2> for &IDXGIOutput
impl From<&IDXGIOutput2> for &IDXGIOutput
§fn from(value: &IDXGIOutput2) -> Self
fn from(value: &IDXGIOutput2) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput2> for &IDXGIOutput1
impl From<&IDXGIOutput2> for &IDXGIOutput1
§fn from(value: &IDXGIOutput2) -> Self
fn from(value: &IDXGIOutput2) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput2> for &IUnknown
impl From<&IDXGIOutput2> for &IUnknown
§fn from(value: &IDXGIOutput2) -> Self
fn from(value: &IDXGIOutput2) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput3> for &IDXGIOutput2
impl From<&IDXGIOutput3> for &IDXGIOutput2
§fn from(value: &IDXGIOutput3) -> Self
fn from(value: &IDXGIOutput3) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput4> for &IDXGIOutput2
impl From<&IDXGIOutput4> for &IDXGIOutput2
§fn from(value: &IDXGIOutput4) -> Self
fn from(value: &IDXGIOutput4) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput5> for &IDXGIOutput2
impl From<&IDXGIOutput5> for &IDXGIOutput2
§fn from(value: &IDXGIOutput5) -> Self
fn from(value: &IDXGIOutput5) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput6> for &IDXGIOutput2
impl From<&IDXGIOutput6> for &IDXGIOutput2
§fn from(value: &IDXGIOutput6) -> Self
fn from(value: &IDXGIOutput6) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput2> for IDXGIObject
impl From<IDXGIOutput2> for IDXGIObject
§fn from(value: IDXGIOutput2) -> Self
fn from(value: IDXGIOutput2) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput2> for IDXGIOutput
impl From<IDXGIOutput2> for IDXGIOutput
§fn from(value: IDXGIOutput2) -> Self
fn from(value: IDXGIOutput2) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput2> for IDXGIOutput1
impl From<IDXGIOutput2> for IDXGIOutput1
§fn from(value: IDXGIOutput2) -> Self
fn from(value: IDXGIOutput2) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput2> for IUnknown
impl From<IDXGIOutput2> for IUnknown
§fn from(value: IDXGIOutput2) -> Self
fn from(value: IDXGIOutput2) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput3> for IDXGIOutput2
impl From<IDXGIOutput3> for IDXGIOutput2
§fn from(value: IDXGIOutput3) -> Self
fn from(value: IDXGIOutput3) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput4> for IDXGIOutput2
impl From<IDXGIOutput4> for IDXGIOutput2
§fn from(value: IDXGIOutput4) -> Self
fn from(value: IDXGIOutput4) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput5> for IDXGIOutput2
impl From<IDXGIOutput5> for IDXGIOutput2
§fn from(value: IDXGIOutput5) -> Self
fn from(value: IDXGIOutput5) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput6> for IDXGIOutput2
impl From<IDXGIOutput6> for IDXGIOutput2
§fn from(value: IDXGIOutput6) -> Self
fn from(value: IDXGIOutput6) -> Self
Converts to this type from the input type.
§impl Interface for IDXGIOutput2
impl Interface for IDXGIOutput2
§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 IDXGIOutput2
impl PartialEq for IDXGIOutput2
§fn eq(&self, other: &IDXGIOutput2) -> bool
fn eq(&self, other: &IDXGIOutput2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDXGIOutput2
impl Send for IDXGIOutput2
impl StructuralPartialEq for IDXGIOutput2
impl Sync for IDXGIOutput2
Auto Trait Implementations§
impl Freeze for IDXGIOutput2
impl RefUnwindSafe for IDXGIOutput2
impl Unpin for IDXGIOutput2
impl UnwindSafe for IDXGIOutput2
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
)