Trait winsafe::prelude::dxgi_IDXGISwapChain
source · pub trait dxgi_IDXGISwapChain: dxgi_IDXGIDeviceSubObject {
// Provided methods
fn GetContainingOutput(&self) -> HrResult<IDXGIOutput> { ... }
fn GetDesc(&self) -> HrResult<DXGI_SWAP_CHAIN_DESC> { ... }
fn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS> { ... }
fn GetFullscreenState(&self) -> HrResult<(bool, Option<IDXGIOutput>)> { ... }
fn Present(&self, sync_interval: u32, flags: DXGI_PRESENT) -> HrResult<()> { ... }
fn ResizeTarget(
&self,
new_target_parameters: &DXGI_MODE_DESC
) -> HrResult<()> { ... }
fn SetFullscreenState(
&self,
fullscreen: bool,
target: Option<&impl dxgi_IDXGIOutput>
) -> HrResult<()> { ... }
}
Available on crate features
kernel
and dxgi
only.Expand description
This trait is enabled with the dxgi
feature, and provides methods for
IDXGISwapChain
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn GetContainingOutput(&self) -> HrResult<IDXGIOutput>
fn GetContainingOutput(&self) -> HrResult<IDXGIOutput>
sourcefn GetDesc(&self) -> HrResult<DXGI_SWAP_CHAIN_DESC>
fn GetDesc(&self) -> HrResult<DXGI_SWAP_CHAIN_DESC>
IDXGISwapChain::GetDesc
method.
sourcefn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS>
fn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS>
sourcefn GetFullscreenState(&self) -> HrResult<(bool, Option<IDXGIOutput>)>
fn GetFullscreenState(&self) -> HrResult<(bool, Option<IDXGIOutput>)>
sourcefn Present(&self, sync_interval: u32, flags: DXGI_PRESENT) -> HrResult<()>
fn Present(&self, sync_interval: u32, flags: DXGI_PRESENT) -> HrResult<()>
IDXGISwapChain::Present
method.
sourcefn ResizeTarget(&self, new_target_parameters: &DXGI_MODE_DESC) -> HrResult<()>
fn ResizeTarget(&self, new_target_parameters: &DXGI_MODE_DESC) -> HrResult<()>
IDXGISwapChain::ResizeTarget
method.
sourcefn SetFullscreenState(
&self,
fullscreen: bool,
target: Option<&impl dxgi_IDXGIOutput>
) -> HrResult<()>
fn SetFullscreenState( &self, fullscreen: bool, target: Option<&impl dxgi_IDXGIOutput> ) -> HrResult<()>
Object Safety§
This trait is not object safe.