Trait IDXGIOutput_Impl
pub trait IDXGIOutput_Impl: IDXGIObject_Impl {
// Required methods
fn GetDesc(&self) -> Result<DXGI_OUTPUT_DESC>;
fn GetDisplayModeList(
&self,
enumformat: DXGI_FORMAT,
flags: DXGI_ENUM_MODES,
pnummodes: *mut u32,
pdesc: *mut DXGI_MODE_DESC,
) -> Result<()>;
fn FindClosestMatchingMode(
&self,
pmodetomatch: *const DXGI_MODE_DESC,
pclosestmatch: *mut DXGI_MODE_DESC,
pconcerneddevice: Ref<'_, IUnknown>,
) -> Result<()>;
fn WaitForVBlank(&self) -> Result<()>;
fn TakeOwnership(
&self,
pdevice: Ref<'_, IUnknown>,
exclusive: BOOL,
) -> Result<()>;
fn ReleaseOwnership(&self);
fn GetGammaControlCapabilities(
&self,
pgammacaps: *mut DXGI_GAMMA_CONTROL_CAPABILITIES,
) -> Result<()>;
fn SetGammaControl(&self, parray: *const DXGI_GAMMA_CONTROL) -> Result<()>;
fn GetGammaControl(&self, parray: *mut DXGI_GAMMA_CONTROL) -> Result<()>;
fn SetDisplaySurface(
&self,
pscanoutsurface: Ref<'_, IDXGISurface>,
) -> Result<()>;
fn GetDisplaySurfaceData(
&self,
pdestination: Ref<'_, IDXGISurface>,
) -> Result<()>;
fn GetFrameStatistics(
&self,
pstats: *mut DXGI_FRAME_STATISTICS,
) -> Result<()>;
}
Required Methods§
fn GetDesc(&self) -> Result<DXGI_OUTPUT_DESC>
fn GetDisplayModeList( &self, enumformat: DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: *mut DXGI_MODE_DESC, ) -> Result<()>
fn FindClosestMatchingMode( &self, pmodetomatch: *const DXGI_MODE_DESC, pclosestmatch: *mut DXGI_MODE_DESC, pconcerneddevice: Ref<'_, IUnknown>, ) -> Result<()>
fn WaitForVBlank(&self) -> Result<()>
fn TakeOwnership( &self, pdevice: Ref<'_, IUnknown>, exclusive: BOOL, ) -> Result<()>
fn ReleaseOwnership(&self)
fn GetGammaControlCapabilities( &self, pgammacaps: *mut DXGI_GAMMA_CONTROL_CAPABILITIES, ) -> Result<()>
fn SetGammaControl(&self, parray: *const DXGI_GAMMA_CONTROL) -> Result<()>
fn GetGammaControl(&self, parray: *mut DXGI_GAMMA_CONTROL) -> Result<()>
fn SetDisplaySurface( &self, pscanoutsurface: Ref<'_, IDXGISurface>, ) -> Result<()>
fn GetDisplaySurfaceData( &self, pdestination: Ref<'_, IDXGISurface>, ) -> Result<()>
fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.