#[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 */
}
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
impl DEVMODE
sourcepub fn dmDeviceName(&self) -> String
pub fn dmDeviceName(&self) -> String
Returns the string field.
sourcepub fn set_dmDeviceName(&mut self, text: &str)
pub fn set_dmDeviceName(&mut self, text: &str)
Sets the string field.
sourcepub fn set_dmCollate(&mut self, val: bool)
pub fn set_dmCollate(&mut self, val: bool)
Sets the bool field.
sourcepub fn dmFormName(&self) -> String
pub fn dmFormName(&self) -> String
Returns the string field.
sourcepub fn set_dmFormName(&mut self, text: &str)
pub fn set_dmFormName(&mut self, text: &str)
Sets the string field.
sourcepub fn set_dmDisplayFlags_dmNup(&mut self, val: DispfNup)
pub fn set_dmDisplayFlags_dmNup(&mut self, val: DispfNup)
Sets the dmDisplayFlags
or the dmNup
field.
sourcepub const fn dmOrientation(&self) -> DMORIENT
pub const fn dmOrientation(&self) -> DMORIENT
Returns the dmOrientation
printer field, which is part of an union.
sourcepub fn set_dmOrientation(&mut self, val: DMORIENT)
pub fn set_dmOrientation(&mut self, val: DMORIENT)
Sets the dmOrientation
printer field, which is part of an union.
sourcepub const fn dmPaperSize(&self) -> DMPAPER
pub const fn dmPaperSize(&self) -> DMPAPER
Returns the dmPaperSize
printer field, which is part of an union.
sourcepub fn set_dmPaperSize(&mut self, val: DMPAPER)
pub fn set_dmPaperSize(&mut self, val: DMPAPER)
Sets the dmPaperSize
printer field, which is part of an union.
sourcepub const fn dmPaperLength(&self) -> i16
pub const fn dmPaperLength(&self) -> i16
Returns the dmPaperLength
printer field, which is part of an union.
sourcepub fn set_dmPaperLength(&mut self, val: i16)
pub fn set_dmPaperLength(&mut self, val: i16)
Sets the dmPaperLength
printer field, which is part of an union.
sourcepub const fn dmPaperWidth(&self) -> i16
pub const fn dmPaperWidth(&self) -> i16
Returns the dmPaperWidth
printer field, which is part of an union.
sourcepub fn set_dmPaperWidth(&mut self, val: i16)
pub fn set_dmPaperWidth(&mut self, val: i16)
Sets the dmPaperWidth
printer field, which is part of an union.
sourcepub const fn dmScale(&self) -> i16
pub const fn dmScale(&self) -> i16
Returns the dmScale
printer field, which is part of an union.
sourcepub fn set_dmScale(&mut self, val: i16)
pub fn set_dmScale(&mut self, val: i16)
Sets the dmScale
printer field, which is part of an union.
sourcepub const fn dmCopies(&self) -> i16
pub const fn dmCopies(&self) -> i16
Returns the dmCopies
printer field, which is part of an union.
sourcepub fn set_dmCopies(&mut self, val: i16)
pub fn set_dmCopies(&mut self, val: i16)
Sets the dmCopies
printer field, which is part of an union.
sourcepub const fn dmDefaultSource(&self) -> DMBIN
pub const fn dmDefaultSource(&self) -> DMBIN
Returns the dmDefaultSource
printer field, which is part of an union.
sourcepub fn set_dmDefaultSource(&mut self, val: DMBIN)
pub fn set_dmDefaultSource(&mut self, val: DMBIN)
Sets the dmDefaultSource
printer field, which is part of an union.
sourcepub const fn dmPrintQuality(&self) -> DMRES
pub const fn dmPrintQuality(&self) -> DMRES
Returns the dmPrintQuality
printer field, which is part of an union.
sourcepub fn set_dmPrintQuality(&mut self, val: DMRES)
pub fn set_dmPrintQuality(&mut self, val: DMRES)
Sets the dmPrintQuality
printer field, which is part of an union.
sourcepub const fn dmPosition(&self) -> POINT
pub const fn dmPosition(&self) -> POINT
Returns the dmPosition
display field, which is part of an union.
sourcepub fn set_dmPosition(&mut self, val: POINT)
pub fn set_dmPosition(&mut self, val: POINT)
Sets the dmPosition
display field, which is part of an union.
sourcepub const fn dmDisplayOrientation(&self) -> DMDO
pub const fn dmDisplayOrientation(&self) -> DMDO
Returns the dmDisplayOrientation
display field, which is part of an
union.
sourcepub fn set_dmDisplayOrientation(&mut self, val: DMDO)
pub fn set_dmDisplayOrientation(&mut self, val: DMDO)
Sets the dmDisplayOrientation
display field, which is part of an union.
sourcepub const fn dmDisplayFixedOutput(&self) -> DMDFO
pub const fn dmDisplayFixedOutput(&self) -> DMDFO
Returns the dmDisplayFixedOutput
display field, which is part of an
union.
sourcepub fn set_dmDisplayFixedOutput(&mut self, val: DMDFO)
pub fn set_dmDisplayFixedOutput(&mut self, val: DMDFO)
Sets the dmDisplayFixedOutput
display field, which is part of an union.