[−][src]Struct dxgi::factory::Factory1
The Factory1 interface allows iterating adapters with the Adapter1 type instead of just Adapter.
Methods
impl Factory1
[src]
pub fn is_current(&self) -> bool
[src]
Informs an application of the possible need to re-enumerate adapters.
ⓘImportant traits for AdapterIter1<'a>pub fn adapters(&self) -> AdapterIter1
[src]
Iterates over all of the adapters (video cards). The first adapter returned will be the adapter associated with the output on which the primary desktop is displayed.
pub fn enum_adapter(&self, n: u32) -> Option<Adapter1>
[src]
Attempt to get the Nth adapter
Methods from Deref<Target = Factory>
ⓘImportant traits for AdapterIter<'a>pub fn adapters(&self) -> AdapterIter
[src]
Iterates over all of the adapters (video cards). The first adapter returned will be the adapter associated with the output on which the primary desktop is displayed.
pub fn window_association(&self) -> Result<HWND, Error>
[src]
Gets the HWND
associated with this DXGI Factory.
pub unsafe fn make_window_association(
&self,
hwnd: HWND,
flags: WindowAssociationFlags
) -> Result<(), Error>
[src]
&self,
hwnd: HWND,
flags: WindowAssociationFlags
) -> Result<(), Error>
Associates a window handle with this DXGI Factory so that DXGI may respond to window events to change modes.
Pass NONE
for the flags to use the default behaviors, which is
likely the normal behavior a user expects from a game. If your app is
not a game you may want to look into the various flags and their
implications for your program.
pub fn enum_adapter(&self, n: u32) -> Option<Adapter>
[src]
Attempt to get the Nth adapter
Trait Implementations
impl FactoryType for Factory1
[src]
fn try_cast<F: FactoryType>(&self) -> Option<F>
[src]
Try to cast this factory to a different factory type
impl PartialEq<Factory1> for Factory1
[src]
impl Sync for Factory1
[src]
impl Clone for Factory1
[src]
fn clone(&self) -> Factory1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Send for Factory1
[src]
impl DerefMut for Factory1
[src]
impl Deref for Factory1
[src]
impl Debug for Factory1
[src]
impl ComWrapper for Factory1
[src]
type Interface = IDXGIFactory1
The raw interface type from winapi
unsafe fn get_raw(&self) -> *mut IDXGIFactory1
[src]
unsafe fn from_raw(ptr: *mut IDXGIFactory1) -> Self
[src]
unsafe fn into_raw(self) -> *mut IDXGIFactory1
[src]
unsafe fn from_ptr(ptr: ComPtr<IDXGIFactory1>) -> Self
[src]
unsafe fn into_ptr(self) -> ComPtr<IDXGIFactory1>
[src]
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,