Preferences

Struct Preferences 

Source
#[repr(C)]
pub struct Preferences {
Show 55 fields pub FontHeight: BYTE, pub PrinterPort: UBYTE, pub BaudRate: UWORD, pub KeyRptSpeed: TimeVal_Type, pub KeyRptDelay: TimeVal_Type, pub DoubleClick: TimeVal_Type, pub PointerMatrix: [UWORD; 36], pub XOffset: BYTE, pub YOffset: BYTE, pub color17: UWORD, pub color18: UWORD, pub color19: UWORD, pub PointerTicks: UWORD, pub color0: UWORD, pub color1: UWORD, pub color2: UWORD, pub color3: UWORD, pub ViewXOffset: BYTE, pub ViewYOffset: BYTE, pub ViewInitX: WORD, pub ViewInitY: WORD, pub EnableCLI: BOOL, pub PrinterType: UWORD, pub PrinterFilename: [TEXT; 30], pub PrintPitch: UWORD, pub PrintQuality: UWORD, pub PrintSpacing: UWORD, pub PrintLeftMargin: UWORD, pub PrintRightMargin: UWORD, pub PrintImage: UWORD, pub PrintAspect: UWORD, pub PrintShade: UWORD, pub PrintThreshold: WORD, pub PaperSize: UWORD, pub PaperLength: UWORD, pub PaperType: UWORD, pub SerRWBits: UBYTE, pub SerStopBuf: UBYTE, pub SerParShk: UBYTE, pub LaceWB: UBYTE, pub Pad: [UBYTE; 12], pub PrtDevName: [TEXT; 16], pub DefaultPrtUnit: UBYTE, pub DefaultSerUnit: UBYTE, pub RowSizeChange: BYTE, pub ColumnSizeChange: BYTE, pub PrintFlags: UWORD, pub PrintMaxWidth: UWORD, pub PrintMaxHeight: UWORD, pub PrintDensity: UBYTE, pub PrintXOffset: UBYTE, pub wb_Width: UWORD, pub wb_Height: UWORD, pub wb_Depth: UBYTE, pub ext_size: UBYTE,
}

Fields§

§FontHeight: BYTE§PrinterPort: UBYTE§BaudRate: UWORD§KeyRptSpeed: TimeVal_Type§KeyRptDelay: TimeVal_Type§DoubleClick: TimeVal_Type§PointerMatrix: [UWORD; 36]§XOffset: BYTE§YOffset: BYTE§color17: UWORD§color18: UWORD§color19: UWORD§PointerTicks: UWORD§color0: UWORD§color1: UWORD§color2: UWORD§color3: UWORD§ViewXOffset: BYTE§ViewYOffset: BYTE§ViewInitX: WORD§ViewInitY: WORD§EnableCLI: BOOL§PrinterType: UWORD§PrinterFilename: [TEXT; 30]§PrintPitch: UWORD§PrintQuality: UWORD§PrintSpacing: UWORD§PrintLeftMargin: UWORD§PrintRightMargin: UWORD§PrintImage: UWORD§PrintAspect: UWORD§PrintShade: UWORD§PrintThreshold: WORD§PaperSize: UWORD§PaperLength: UWORD§PaperType: UWORD§SerRWBits: UBYTE§SerStopBuf: UBYTE§SerParShk: UBYTE§LaceWB: UBYTE§Pad: [UBYTE; 12]§PrtDevName: [TEXT; 16]§DefaultPrtUnit: UBYTE§DefaultSerUnit: UBYTE§RowSizeChange: BYTE§ColumnSizeChange: BYTE§PrintFlags: UWORD§PrintMaxWidth: UWORD§PrintMaxHeight: UWORD§PrintDensity: UBYTE§PrintXOffset: UBYTE§wb_Width: UWORD§wb_Height: UWORD§wb_Depth: UBYTE§ext_size: UBYTE

Trait Implementations§

Source§

impl Clone for Preferences

Source§

fn clone(&self) -> Preferences

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Preferences

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Preferences

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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>,

Source§

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.