Struct winsafe::IDXGIFactory
source · pub struct IDXGIFactory(/* private fields */);
Available on crate feature
dxgi
only.Expand description
IDXGIFactory
COM interface over IDXGIFactoryVT
.
Automatically calls
Release
when the object goes out of scope.
Usually created with CreateDXGIFactory
function.
§Examples
use winsafe::{self as w, prelude::*};
let factory = w::CreateDXGIFactory()?;
Trait Implementations§
source§impl Clone for IDXGIFactory
impl Clone for IDXGIFactory
source§impl Drop for IDXGIFactory
impl Drop for IDXGIFactory
source§impl dxgi_IDXGIFactory for IDXGIFactory
impl dxgi_IDXGIFactory for IDXGIFactory
source§fn CreateSoftwareAdapter(&self, hmodule: &HINSTANCE) -> HrResult<IDXGIAdapter>
fn CreateSoftwareAdapter(&self, hmodule: &HINSTANCE) -> HrResult<IDXGIAdapter>
source§fn CreateSwapChain(
&self,
device: &impl ole_IUnknown,
desc: &DXGI_SWAP_CHAIN_DESC
) -> HrResult<IDXGISwapChain>
fn CreateSwapChain( &self, device: &impl ole_IUnknown, desc: &DXGI_SWAP_CHAIN_DESC ) -> HrResult<IDXGISwapChain>
IDXGIFactory::CreateSwapChain
method.source§fn EnumAdapters(&self) -> impl Iterator<Item = HrResult<IDXGIAdapter>> + '_
fn EnumAdapters(&self) -> impl Iterator<Item = HrResult<IDXGIAdapter>> + '_
IDXGIFactory::EnumAdapters
method. Read moresource§fn GetWindowAssociation(&self) -> HrResult<HWND>
fn GetWindowAssociation(&self) -> HrResult<HWND>
source§impl dxgi_IDXGIObject for IDXGIFactory
impl dxgi_IDXGIObject for IDXGIFactory
source§fn GetParent<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn GetParent<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
IDXGIObject::GetParent
method.source§fn SetPrivateData<T>(&self, name: &GUID, data: &T) -> HrResult<()>where
T: Sized,
fn SetPrivateData<T>(&self, name: &GUID, data: &T) -> HrResult<()>where
T: Sized,
IDXGIObject::SetPrivateData
method. Read moresource§fn SetPrivateDataInterface<T>(&self, obj: &T) -> HrResult<()>where
T: ole_IUnknown,
fn SetPrivateDataInterface<T>(&self, obj: &T) -> HrResult<()>where
T: ole_IUnknown,
source§impl ole_IUnknown for IDXGIFactory
impl ole_IUnknown for IDXGIFactory
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole
only.Creates an object from a COM virtual table pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole
only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole
only.Returns the pointer to the underlying COM virtual table. Read more
source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole
only.Creates an object from a null COM virtual table pointer. Read more
source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole
only.IUnknown::QueryInterface
method.impl Send for IDXGIFactory
Auto Trait Implementations§
impl Freeze for IDXGIFactory
impl RefUnwindSafe for IDXGIFactory
impl !Sync for IDXGIFactory
impl Unpin for IDXGIFactory
impl UnwindSafe for IDXGIFactory
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