Trait winsafe::prelude::dxgi_IDXGIOutput
source · pub trait dxgi_IDXGIOutput: dxgi_IDXGIObject {
// Provided methods
fn FindClosestMatchingMode(
&self,
mode_to_match: &DXGI_MODE_DESC,
device_interface: Option<&impl ole_IUnknown>
) -> HrResult<DXGI_MODE_DESC> { ... }
fn GetDesc(&self) -> HrResult<DXGI_OUTPUT_DESC> { ... }
fn GetDisplayModeList(
&self,
format: DXGI_FORMAT,
flags: DXGI_ENUM_MODES
) -> HrResult<Vec<DXGI_MODE_DESC>> { ... }
fn GetDisplaySurfaceData(
&self,
destination: &impl dxgi_IDXGISurface
) -> HrResult<()> { ... }
fn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS> { ... }
fn GetGammaControl(&self) -> HrResult<DXGI_GAMMA_CONTROL> { ... }
fn GetGammaControlCapabilities(
&self
) -> HrResult<DXGI_GAMMA_CONTROL_CAPABILITIES> { ... }
fn ReleaseOwnership(&self) { ... }
fn SetDisplaySurface(
&self,
scanout_surface: &impl dxgi_IDXGISurface
) -> HrResult<()> { ... }
fn SetGammaControl(&self, array: &DXGI_GAMMA_CONTROL) -> HrResult<()> { ... }
fn TakeOwnership(
&self,
device: &impl ole_IUnknown,
exclusive: bool
) -> HrResult<()> { ... }
fn WaitForVBlank(&self) -> HrResult<()> { ... }
}
Available on crate features
kernel
and dxgi
only.Expand description
This trait is enabled with the dxgi
feature, and provides methods for
IDXGIOutput
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn FindClosestMatchingMode(
&self,
mode_to_match: &DXGI_MODE_DESC,
device_interface: Option<&impl ole_IUnknown>
) -> HrResult<DXGI_MODE_DESC>
fn FindClosestMatchingMode( &self, mode_to_match: &DXGI_MODE_DESC, device_interface: Option<&impl ole_IUnknown> ) -> HrResult<DXGI_MODE_DESC>
sourcefn GetDesc(&self) -> HrResult<DXGI_OUTPUT_DESC>
fn GetDesc(&self) -> HrResult<DXGI_OUTPUT_DESC>
IDXGIOutput::GetDesc
method.
sourcefn GetDisplayModeList(
&self,
format: DXGI_FORMAT,
flags: DXGI_ENUM_MODES
) -> HrResult<Vec<DXGI_MODE_DESC>>
fn GetDisplayModeList( &self, format: DXGI_FORMAT, flags: DXGI_ENUM_MODES ) -> HrResult<Vec<DXGI_MODE_DESC>>
IDXGIOutput::GetDisplayModeList
method.
sourcefn GetDisplaySurfaceData(
&self,
destination: &impl dxgi_IDXGISurface
) -> HrResult<()>
fn GetDisplaySurfaceData( &self, destination: &impl dxgi_IDXGISurface ) -> HrResult<()>
sourcefn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS>
fn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS>
IDXGIOutput::GetFrameStatistics
method.
sourcefn GetGammaControl(&self) -> HrResult<DXGI_GAMMA_CONTROL>
fn GetGammaControl(&self) -> HrResult<DXGI_GAMMA_CONTROL>
IDXGIOutput::GetGammaControl
method.
sourcefn GetGammaControlCapabilities(
&self
) -> HrResult<DXGI_GAMMA_CONTROL_CAPABILITIES>
fn GetGammaControlCapabilities( &self ) -> HrResult<DXGI_GAMMA_CONTROL_CAPABILITIES>
sourcefn ReleaseOwnership(&self)
fn ReleaseOwnership(&self)
IDXGIOutput::ReleaseOwnership
method.
sourcefn SetDisplaySurface(
&self,
scanout_surface: &impl dxgi_IDXGISurface
) -> HrResult<()>
fn SetDisplaySurface( &self, scanout_surface: &impl dxgi_IDXGISurface ) -> HrResult<()>
IDXGIOutput::SetDisplaySurface
method.
sourcefn SetGammaControl(&self, array: &DXGI_GAMMA_CONTROL) -> HrResult<()>
fn SetGammaControl(&self, array: &DXGI_GAMMA_CONTROL) -> HrResult<()>
IDXGIOutput::SetGammaControl
method.
sourcefn TakeOwnership(
&self,
device: &impl ole_IUnknown,
exclusive: bool
) -> HrResult<()>
fn TakeOwnership( &self, device: &impl ole_IUnknown, exclusive: bool ) -> HrResult<()>
IDXGIOutput::TakeOwnership
method.
sourcefn WaitForVBlank(&self) -> HrResult<()>
fn WaitForVBlank(&self) -> HrResult<()>
IDXGIOutput::WaitForVBlank
method.
Object Safety§
This trait is not object safe.