Struct x11_dl::xf86vmode::Xf86vmode

source ·
pub struct Xf86vmode {
Show 23 fields _private: (), pub XF86VidModeAddModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeInfo, _: *mut XF86VidModeModeInfo) -> c_int, pub XF86VidModeDeleteModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeInfo) -> c_int, pub XF86VidModeGetAllModeLines: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int, _: *mut *mut *mut XF86VidModeModeInfo) -> c_int, pub XF86VidModeGetDotClocks: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut *mut c_int) -> c_int, pub XF86VidModeGetGamma: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeGamma) -> c_int, pub XF86VidModeGetGammaRamp: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int, _: *mut c_ushort, _: *mut c_ushort, _: *mut c_ushort) -> c_int, pub XF86VidModeGetGammaRampSize: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> c_int, pub XF86VidModeGetModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int, _: *mut XF86VidModeModeLine) -> c_int, pub XF86VidModeGetMonitor: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeMonitor) -> c_int, pub XF86VidModeGetPermissions: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> c_int, pub XF86VidModeGetViewPort: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int, _: *mut c_int) -> c_int, pub XF86VidModeLockModeSwitch: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int) -> c_int, pub XF86VidModeModModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeLine) -> c_int, pub XF86VidModeQueryExtension: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_int, pub XF86VidModeQueryVersion: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_int, pub XF86VidModeSetClientVersion: unsafe extern "C" fn(_: *mut Display) -> c_int, pub XF86VidModeSetGamma: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeGamma) -> c_int, pub XF86VidModeSetGammaRamp: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int, _: *mut c_ushort, _: *mut c_ushort, _: *mut c_ushort) -> c_int, pub XF86VidModeSetViewPort: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int, _: c_int) -> c_int, pub XF86VidModeSwitchMode: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int) -> c_int, pub XF86VidModeSwitchToMode: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeInfo) -> c_int, pub XF86VidModeValidateModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeInfo) -> c_int,
}

Fields§

§_private: ()§XF86VidModeAddModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeInfo, _: *mut XF86VidModeModeInfo) -> c_int§XF86VidModeDeleteModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeInfo) -> c_int§XF86VidModeGetAllModeLines: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int, _: *mut *mut *mut XF86VidModeModeInfo) -> c_int§XF86VidModeGetDotClocks: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut *mut c_int) -> c_int§XF86VidModeGetGamma: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeGamma) -> c_int§XF86VidModeGetGammaRamp: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int, _: *mut c_ushort, _: *mut c_ushort, _: *mut c_ushort) -> c_int§XF86VidModeGetGammaRampSize: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> c_int§XF86VidModeGetModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int, _: *mut XF86VidModeModeLine) -> c_int§XF86VidModeGetMonitor: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeMonitor) -> c_int§XF86VidModeGetPermissions: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> c_int§XF86VidModeGetViewPort: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int, _: *mut c_int) -> c_int§XF86VidModeLockModeSwitch: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int) -> c_int§XF86VidModeModModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeLine) -> c_int§XF86VidModeQueryExtension: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_int§XF86VidModeQueryVersion: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_int§XF86VidModeSetClientVersion: unsafe extern "C" fn(_: *mut Display) -> c_int§XF86VidModeSetGamma: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeGamma) -> c_int§XF86VidModeSetGammaRamp: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int, _: *mut c_ushort, _: *mut c_ushort, _: *mut c_ushort) -> c_int§XF86VidModeSetViewPort: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int, _: c_int) -> c_int§XF86VidModeSwitchMode: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int) -> c_int§XF86VidModeSwitchToMode: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeInfo) -> c_int§XF86VidModeValidateModeLine: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut XF86VidModeModeInfo) -> c_int

Implementations§

Trait Implementations§

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

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.