Struct winsafe::DEVMODE

source ·
#[repr(C)]
pub struct DEVMODE {
Show 16 fields pub dmDriverVersion: u16, pub dmDriverExtra: u16, pub dmFields: DM, pub dmColor: DMCOLOR, pub dmDuplex: DMDUP, pub dmYResolution: u16, pub dmTTOption: DMTT, pub dmLogPixels: u16, pub dmBitsPerPel: u32, pub dmPelsWidth: u32, pub dmPelsHeight: u32, pub dmDisplayFrequency: u32, pub dmICMMethod: DMICMMETHOD, pub dmICMIntent: DMICM, pub dmMediaType: DMMEDIA, pub dmDitherType: DMDITHER, /* private fields */
}
Available on crate feature user only.
Expand description

DEVMODE struct.

Fields§

§dmDriverVersion: u16§dmDriverExtra: u16§dmFields: DM§dmColor: DMCOLOR§dmDuplex: DMDUP§dmYResolution: u16§dmTTOption: DMTT§dmLogPixels: u16§dmBitsPerPel: u32§dmPelsWidth: u32§dmPelsHeight: u32§dmDisplayFrequency: u32§dmICMMethod: DMICMMETHOD§dmICMIntent: DMICM§dmMediaType: DMMEDIA§dmDitherType: DMDITHER

Implementations§

source§

impl DEVMODE

source

pub fn dmDeviceName(&self) -> String

Returns the string field.

source

pub fn set_dmDeviceName(&mut self, text: &str)

Sets the string field.

source

pub const fn dmCollate(&self) -> bool

Returns the bool field.

source

pub fn set_dmCollate(&mut self, val: bool)

Sets the bool field.

source

pub fn dmFormName(&self) -> String

Returns the string field.

source

pub fn set_dmFormName(&mut self, text: &str)

Sets the string field.

source

pub fn set_dmDisplayFlags_dmNup(&mut self, val: DispfNup)

Sets the dmDisplayFlags or the dmNup field.

source

pub const fn dmOrientation(&self) -> DMORIENT

Returns the dmOrientation printer field, which is part of an union.

source

pub fn set_dmOrientation(&mut self, val: DMORIENT)

Sets the dmOrientation printer field, which is part of an union.

source

pub const fn dmPaperSize(&self) -> DMPAPER

Returns the dmPaperSize printer field, which is part of an union.

source

pub fn set_dmPaperSize(&mut self, val: DMPAPER)

Sets the dmPaperSize printer field, which is part of an union.

source

pub const fn dmPaperLength(&self) -> i16

Returns the dmPaperLength printer field, which is part of an union.

source

pub fn set_dmPaperLength(&mut self, val: i16)

Sets the dmPaperLength printer field, which is part of an union.

source

pub const fn dmPaperWidth(&self) -> i16

Returns the dmPaperWidth printer field, which is part of an union.

source

pub fn set_dmPaperWidth(&mut self, val: i16)

Sets the dmPaperWidth printer field, which is part of an union.

source

pub const fn dmScale(&self) -> i16

Returns the dmScale printer field, which is part of an union.

source

pub fn set_dmScale(&mut self, val: i16)

Sets the dmScale printer field, which is part of an union.

source

pub const fn dmCopies(&self) -> i16

Returns the dmCopies printer field, which is part of an union.

source

pub fn set_dmCopies(&mut self, val: i16)

Sets the dmCopies printer field, which is part of an union.

source

pub const fn dmDefaultSource(&self) -> DMBIN

Returns the dmDefaultSource printer field, which is part of an union.

source

pub fn set_dmDefaultSource(&mut self, val: DMBIN)

Sets the dmDefaultSource printer field, which is part of an union.

source

pub const fn dmPrintQuality(&self) -> DMRES

Returns the dmPrintQuality printer field, which is part of an union.

source

pub fn set_dmPrintQuality(&mut self, val: DMRES)

Sets the dmPrintQuality printer field, which is part of an union.

source

pub const fn dmPosition(&self) -> POINT

Returns the dmPosition display field, which is part of an union.

source

pub fn set_dmPosition(&mut self, val: POINT)

Sets the dmPosition display field, which is part of an union.

source

pub const fn dmDisplayOrientation(&self) -> DMDO

Returns the dmDisplayOrientation display field, which is part of an union.

source

pub fn set_dmDisplayOrientation(&mut self, val: DMDO)

Sets the dmDisplayOrientation display field, which is part of an union.

source

pub const fn dmDisplayFixedOutput(&self) -> DMDFO

Returns the dmDisplayFixedOutput display field, which is part of an union.

source

pub fn set_dmDisplayFixedOutput(&mut self, val: DMDFO)

Sets the dmDisplayFixedOutput display field, which is part of an union.

Trait Implementations§

source§

impl Default for DEVMODE

source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.