Struct windows::Win32::Graphics::Dxgi::IDXGIOutput
pub struct IDXGIOutput(/* private fields */);
Implementations§
§impl IDXGIOutput
impl 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 IDXGIOutput
impl CanInto<IDXGIObject> for IDXGIOutput
§impl CanInto<IDXGIOutput> for IDXGIOutput1
impl CanInto<IDXGIOutput> for IDXGIOutput1
§impl CanInto<IDXGIOutput> for IDXGIOutput2
impl CanInto<IDXGIOutput> for IDXGIOutput2
§impl CanInto<IDXGIOutput> for IDXGIOutput3
impl CanInto<IDXGIOutput> for IDXGIOutput3
§impl CanInto<IDXGIOutput> for IDXGIOutput4
impl CanInto<IDXGIOutput> for IDXGIOutput4
§impl CanInto<IDXGIOutput> for IDXGIOutput5
impl CanInto<IDXGIOutput> for IDXGIOutput5
§impl CanInto<IDXGIOutput> for IDXGIOutput6
impl CanInto<IDXGIOutput> for IDXGIOutput6
§impl CanInto<IUnknown> for IDXGIOutput
impl CanInto<IUnknown> for IDXGIOutput
§impl Clone for IDXGIOutput
impl Clone for IDXGIOutput
§fn clone(&self) -> IDXGIOutput
fn clone(&self) -> IDXGIOutput
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 IDXGIOutput
impl Debug for IDXGIOutput
§impl Deref for IDXGIOutput
impl Deref for IDXGIOutput
§impl From<&IDXGIOutput> for &IDXGIObject
impl From<&IDXGIOutput> for &IDXGIObject
§fn from(value: &IDXGIOutput) -> Self
fn from(value: &IDXGIOutput) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput> for &IUnknown
impl From<&IDXGIOutput> for &IUnknown
§fn from(value: &IDXGIOutput) -> Self
fn from(value: &IDXGIOutput) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput1> for &IDXGIOutput
impl From<&IDXGIOutput1> for &IDXGIOutput
§fn from(value: &IDXGIOutput1) -> Self
fn from(value: &IDXGIOutput1) -> 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<&IDXGIOutput3> for &IDXGIOutput
impl From<&IDXGIOutput3> for &IDXGIOutput
§fn from(value: &IDXGIOutput3) -> Self
fn from(value: &IDXGIOutput3) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput4> for &IDXGIOutput
impl From<&IDXGIOutput4> for &IDXGIOutput
§fn from(value: &IDXGIOutput4) -> Self
fn from(value: &IDXGIOutput4) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput5> for &IDXGIOutput
impl From<&IDXGIOutput5> for &IDXGIOutput
§fn from(value: &IDXGIOutput5) -> Self
fn from(value: &IDXGIOutput5) -> Self
Converts to this type from the input type.
§impl From<&IDXGIOutput6> for &IDXGIOutput
impl From<&IDXGIOutput6> for &IDXGIOutput
§fn from(value: &IDXGIOutput6) -> Self
fn from(value: &IDXGIOutput6) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput> for IDXGIObject
impl From<IDXGIOutput> for IDXGIObject
§fn from(value: IDXGIOutput) -> Self
fn from(value: IDXGIOutput) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput> for IUnknown
impl From<IDXGIOutput> for IUnknown
§fn from(value: IDXGIOutput) -> Self
fn from(value: IDXGIOutput) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput1> for IDXGIOutput
impl From<IDXGIOutput1> for IDXGIOutput
§fn from(value: IDXGIOutput1) -> Self
fn from(value: IDXGIOutput1) -> 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<IDXGIOutput3> for IDXGIOutput
impl From<IDXGIOutput3> for IDXGIOutput
§fn from(value: IDXGIOutput3) -> Self
fn from(value: IDXGIOutput3) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput4> for IDXGIOutput
impl From<IDXGIOutput4> for IDXGIOutput
§fn from(value: IDXGIOutput4) -> Self
fn from(value: IDXGIOutput4) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput5> for IDXGIOutput
impl From<IDXGIOutput5> for IDXGIOutput
§fn from(value: IDXGIOutput5) -> Self
fn from(value: IDXGIOutput5) -> Self
Converts to this type from the input type.
§impl From<IDXGIOutput6> for IDXGIOutput
impl From<IDXGIOutput6> for IDXGIOutput
§fn from(value: IDXGIOutput6) -> Self
fn from(value: IDXGIOutput6) -> Self
Converts to this type from the input type.
§impl Interface for IDXGIOutput
impl Interface for IDXGIOutput
§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 IDXGIOutput
impl PartialEq for IDXGIOutput
§fn eq(&self, other: &IDXGIOutput) -> bool
fn eq(&self, other: &IDXGIOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDXGIOutput
impl Send for IDXGIOutput
impl StructuralPartialEq for IDXGIOutput
impl Sync for IDXGIOutput
Auto Trait Implementations§
impl Freeze for IDXGIOutput
impl RefUnwindSafe for IDXGIOutput
impl Unpin for IDXGIOutput
impl UnwindSafe for IDXGIOutput
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
)