[][src]Struct dxgi::factory::Factory1

#[repr(transparent)]
pub struct Factory1 { /* fields omitted */ }

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]

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_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]

type Target = Factory

The resulting type after dereferencing.

impl Debug for Factory1[src]

impl ComWrapper for Factory1[src]

type Interface = IDXGIFactory1

The raw interface type from winapi

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]