#[repr(C)]
pub struct DisplayModeEx { pub size: u32, pub width: u32, pub height: u32, pub refresh_rate: u32, pub format: Format, pub scanline_ordering: ScanlineOrdering, }
Expand description

[docs.microsoft.com] D3DDISPLAYMODEEX

Describes the display mode.

See Also

Fields

size: u32

The size of this structure. This should always be set to size_of::<DisplayModeEx>().

width: u32

Screen width, in pixels.

height: u32

Screen height, in pixels.

refresh_rate: u32

Refresh rate, in refreshes per seconds (hz). The value of 0 indicates an adapter default.

format: Format

Surface format of the display mode / screen.

scanline_ordering: ScanlineOrdering

Indicates whether the scanline order is progressive or interlaced.

Trait Implementations

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Dereferences the value.

The resulting type after dereferencing.

Mutably dereferences the value.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.