[][src]Struct x11_dl::xrandr::Xrandr

pub struct Xrandr {
    pub XRRAddOutputMode: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: RRMode),
    pub XRRAllocGamma: unsafe extern "C" fn(_: c_int) -> *mut XRRCrtcGamma,
    pub XRRAllocModeInfo: unsafe extern "C" fn(_: *const c_char, _: c_int) -> *mut XRRModeInfo,
    pub XRRAllocateMonitor: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *mut XRRMonitorInfo,
    pub XRRChangeOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom, _: Atom, _: c_int, _: c_int, _: *const c_uchar, _: c_int),
    pub XRRChangeProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom, _: Atom, _: c_int, _: c_int, _: *const c_uchar, _: c_int),
    pub XRRConfigCurrentConfiguration: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: *mut Rotation) -> SizeID,
    pub XRRConfigCurrentRate: unsafe extern "C" fn(_: *mut XRRScreenConfiguration) -> c_short,
    pub XRRConfigRates: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: c_int, _: *mut c_int) -> *mut c_short,
    pub XRRConfigRotations: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: *mut Rotation) -> Rotation,
    pub XRRConfigSizes: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: *mut c_int) -> *mut XRRScreenSize,
    pub XRRConfigTimes: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: *mut Time) -> Time,
    pub XRRConfigureOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom, _: Bool, _: Bool, _: c_int, _: *mut c_long),
    pub XRRConfigureProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom, _: Bool, _: Bool, _: c_int, _: *mut c_long),
    pub XRRCreateMode: unsafe extern "C" fn(_: *mut Display, _: Window, _: *mut XRRModeInfo) -> RRMode,
    pub XRRDeleteMonitor: unsafe extern "C" fn(_: *mut Display, _: Window, _: Atom),
    pub XRRDeleteOutputMode: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: RRMode),
    pub XRRDeleteOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom),
    pub XRRDeleteProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom),
    pub XRRDestroyMode: unsafe extern "C" fn(_: *mut Display, _: RRMode),
    pub XRRFreeCrtcInfo: unsafe extern "C" fn(_: *mut XRRCrtcInfo),
    pub XRRFreeGamma: unsafe extern "C" fn(_: *mut XRRCrtcGamma),
    pub XRRFreeModeInfo: unsafe extern "C" fn(_: *mut XRRModeInfo),
    pub XRRFreeMonitors: unsafe extern "C" fn(_: *mut XRRMonitorInfo),
    pub XRRFreeOutputInfo: unsafe extern "C" fn(_: *mut XRROutputInfo),
    pub XRRFreePanning: unsafe extern "C" fn(_: *mut XRRPanning),
    pub XRRFreeProviderInfo: unsafe extern "C" fn(_: *mut XRRProviderInfo),
    pub XRRFreeProviderResources: unsafe extern "C" fn(_: *mut XRRProviderResources),
    pub XRRFreeScreenConfigInfo: unsafe extern "C" fn(_: *mut XRRScreenConfiguration),
    pub XRRFreeScreenResources: unsafe extern "C" fn(_: *mut XRRScreenResources),
    pub XRRGetCrtcGamma: unsafe extern "C" fn(_: *mut Display, _: RRCrtc) -> *mut XRRCrtcGamma,
    pub XRRGetCrtcGammaSize: unsafe extern "C" fn(_: *mut Display, _: RRCrtc) -> c_int,
    pub XRRGetCrtcInfo: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRCrtc) -> *mut XRRCrtcInfo,
    pub XRRGetCrtcTransform: unsafe extern "C" fn(_: *mut Display, _: RRCrtc, _: *mut *mut XRRCrtcTransformAttributes) -> Status,
    pub XRRGetMonitors: unsafe extern "C" fn(_: *mut Display, _: Window, _: Bool, _: *mut c_int) -> *mut XRRMonitorInfo,
    pub XRRGetOutputInfo: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RROutput) -> *mut XRROutputInfo,
    pub XRRGetOutputPrimary: unsafe extern "C" fn(_: *mut Display, _: Window) -> RROutput,
    pub XRRGetOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom, _: c_long, _: c_long, _: Bool, _: Bool, _: Atom, _: *mut Atom, _: *mut c_int, _: *mut c_ulong, _: *mut c_ulong, _: *mut *mut c_uchar) -> c_int,
    pub XRRGetPanning: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRCrtc) -> *mut XRRPanning,
    pub XRRGetProviderInfo: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRProvider) -> *mut XRRProviderInfo,
    pub XRRGetProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom, _: c_long, _: c_long, _: Bool, _: Bool, _: Atom, _: *mut Atom, _: *mut c_int, _: *mut c_ulong, _: *mut c_ulong, _: *mut *mut c_uchar) -> c_int,
    pub XRRGetProviderResources: unsafe extern "C" fn(_: *mut Display, _: Window) -> *mut XRRProviderResources,
    pub XRRGetScreenInfo: unsafe extern "C" fn(_: *mut Display, _: Window) -> *mut XRRScreenConfiguration,
    pub XRRGetScreenResources: unsafe extern "C" fn(_: *mut Display, _: Window) -> *mut XRRScreenResources,
    pub XRRGetScreenResourcesCurrent: unsafe extern "C" fn(_: *mut Display, _: Window) -> *mut XRRScreenResources,
    pub XRRGetScreenSizeRange: unsafe extern "C" fn(_: *mut Display, _: Window, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut c_int) -> Status,
    pub XRRListOutputProperties: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: *mut c_int) -> *mut Atom,
    pub XRRListProviderProperties: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: *mut c_int) -> *mut Atom,
    pub XRRQueryExtension: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> Bool,
    pub XRRQueryOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom) -> *mut XRRPropertyInfo,
    pub XRRQueryProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom) -> *mut XRRPropertyInfo,
    pub XRRQueryVersion: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> Status,
    pub XRRRates: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int, _: *mut c_int) -> *mut c_short,
    pub XRRRootToScreen: unsafe extern "C" fn(_: *mut Display, _: Window) -> c_int,
    pub XRRRotations: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut Rotation) -> Rotation,
    pub XRRSelectInput: unsafe extern "C" fn(_: *mut Display, _: Window, _: c_int),
    pub XRRSetCrtcConfig: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRCrtc, _: Time, _: c_int, _: c_int, _: RRMode, _: Rotation, _: *mut RROutput, _: c_int) -> Status,
    pub XRRSetCrtcGamma: unsafe extern "C" fn(_: *mut Display, _: RRCrtc, _: *mut XRRCrtcGamma),
    pub XRRSetCrtcTransform: unsafe extern "C" fn(_: *mut Display, _: RRCrtc, _: *mut XTransform, _: *const c_char, _: *mut XFixed, _: c_int),
    pub XRRSetMonitor: unsafe extern "C" fn(_: *mut Display, _: Window, _: *mut XRRMonitorInfo),
    pub XRRSetOutputPrimary: unsafe extern "C" fn(_: *mut Display, _: Window, _: RROutput),
    pub XRRSetPanning: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRCrtc, _: *mut XRRPanning) -> Status,
    pub XRRSetProviderOffloadSink: unsafe extern "C" fn(_: *mut Display, _: XID, _: XID) -> c_int,
    pub XRRSetProviderOutputSource: unsafe extern "C" fn(_: *mut Display, _: XID, _: XID) -> c_int,
    pub XRRSetScreenConfig: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenConfiguration, _: Drawable, _: c_int, _: Rotation, _: Time) -> Status,
    pub XRRSetScreenConfigAndRate: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenConfiguration, _: Drawable, _: c_int, _: Rotation, _: c_short, _: Time) -> Status,
    pub XRRSetScreenSize: unsafe extern "C" fn(_: *mut Display, _: Window, _: c_int, _: c_int, _: c_int, _: c_int),
    pub XRRSizes: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> *mut XRRScreenSize,
    pub XRRTimes: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut Time) -> Time,
    pub XRRUpdateConfiguration: unsafe extern "C" fn(_: *mut XEvent) -> c_int,
    // some fields omitted
}

Fields

XRRAddOutputMode: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: RRMode)XRRAllocGamma: unsafe extern "C" fn(_: c_int) -> *mut XRRCrtcGammaXRRAllocModeInfo: unsafe extern "C" fn(_: *const c_char, _: c_int) -> *mut XRRModeInfoXRRAllocateMonitor: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *mut XRRMonitorInfoXRRChangeOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom, _: Atom, _: c_int, _: c_int, _: *const c_uchar, _: c_int)XRRChangeProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom, _: Atom, _: c_int, _: c_int, _: *const c_uchar, _: c_int)XRRConfigCurrentConfiguration: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: *mut Rotation) -> SizeIDXRRConfigCurrentRate: unsafe extern "C" fn(_: *mut XRRScreenConfiguration) -> c_shortXRRConfigRates: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: c_int, _: *mut c_int) -> *mut c_shortXRRConfigRotations: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: *mut Rotation) -> RotationXRRConfigSizes: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: *mut c_int) -> *mut XRRScreenSizeXRRConfigTimes: unsafe extern "C" fn(_: *mut XRRScreenConfiguration, _: *mut Time) -> TimeXRRConfigureOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom, _: Bool, _: Bool, _: c_int, _: *mut c_long)XRRConfigureProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom, _: Bool, _: Bool, _: c_int, _: *mut c_long)XRRCreateMode: unsafe extern "C" fn(_: *mut Display, _: Window, _: *mut XRRModeInfo) -> RRModeXRRDeleteMonitor: unsafe extern "C" fn(_: *mut Display, _: Window, _: Atom)XRRDeleteOutputMode: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: RRMode)XRRDeleteOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom)XRRDeleteProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom)XRRDestroyMode: unsafe extern "C" fn(_: *mut Display, _: RRMode)XRRFreeCrtcInfo: unsafe extern "C" fn(_: *mut XRRCrtcInfo)XRRFreeGamma: unsafe extern "C" fn(_: *mut XRRCrtcGamma)XRRFreeModeInfo: unsafe extern "C" fn(_: *mut XRRModeInfo)XRRFreeMonitors: unsafe extern "C" fn(_: *mut XRRMonitorInfo)XRRFreeOutputInfo: unsafe extern "C" fn(_: *mut XRROutputInfo)XRRFreePanning: unsafe extern "C" fn(_: *mut XRRPanning)XRRFreeProviderInfo: unsafe extern "C" fn(_: *mut XRRProviderInfo)XRRFreeProviderResources: unsafe extern "C" fn(_: *mut XRRProviderResources)XRRFreeScreenConfigInfo: unsafe extern "C" fn(_: *mut XRRScreenConfiguration)XRRFreeScreenResources: unsafe extern "C" fn(_: *mut XRRScreenResources)XRRGetCrtcGamma: unsafe extern "C" fn(_: *mut Display, _: RRCrtc) -> *mut XRRCrtcGammaXRRGetCrtcGammaSize: unsafe extern "C" fn(_: *mut Display, _: RRCrtc) -> c_intXRRGetCrtcInfo: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRCrtc) -> *mut XRRCrtcInfoXRRGetCrtcTransform: unsafe extern "C" fn(_: *mut Display, _: RRCrtc, _: *mut *mut XRRCrtcTransformAttributes) -> StatusXRRGetMonitors: unsafe extern "C" fn(_: *mut Display, _: Window, _: Bool, _: *mut c_int) -> *mut XRRMonitorInfoXRRGetOutputInfo: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RROutput) -> *mut XRROutputInfoXRRGetOutputPrimary: unsafe extern "C" fn(_: *mut Display, _: Window) -> RROutputXRRGetOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom, _: c_long, _: c_long, _: Bool, _: Bool, _: Atom, _: *mut Atom, _: *mut c_int, _: *mut c_ulong, _: *mut c_ulong, _: *mut *mut c_uchar) -> c_intXRRGetPanning: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRCrtc) -> *mut XRRPanningXRRGetProviderInfo: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRProvider) -> *mut XRRProviderInfoXRRGetProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom, _: c_long, _: c_long, _: Bool, _: Bool, _: Atom, _: *mut Atom, _: *mut c_int, _: *mut c_ulong, _: *mut c_ulong, _: *mut *mut c_uchar) -> c_intXRRGetProviderResources: unsafe extern "C" fn(_: *mut Display, _: Window) -> *mut XRRProviderResourcesXRRGetScreenInfo: unsafe extern "C" fn(_: *mut Display, _: Window) -> *mut XRRScreenConfigurationXRRGetScreenResources: unsafe extern "C" fn(_: *mut Display, _: Window) -> *mut XRRScreenResourcesXRRGetScreenResourcesCurrent: unsafe extern "C" fn(_: *mut Display, _: Window) -> *mut XRRScreenResourcesXRRGetScreenSizeRange: unsafe extern "C" fn(_: *mut Display, _: Window, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut c_int) -> StatusXRRListOutputProperties: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: *mut c_int) -> *mut AtomXRRListProviderProperties: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: *mut c_int) -> *mut AtomXRRQueryExtension: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> BoolXRRQueryOutputProperty: unsafe extern "C" fn(_: *mut Display, _: RROutput, _: Atom) -> *mut XRRPropertyInfoXRRQueryProviderProperty: unsafe extern "C" fn(_: *mut Display, _: RRProvider, _: Atom) -> *mut XRRPropertyInfoXRRQueryVersion: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> StatusXRRRates: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int, _: *mut c_int) -> *mut c_shortXRRRootToScreen: unsafe extern "C" fn(_: *mut Display, _: Window) -> c_intXRRRotations: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut Rotation) -> RotationXRRSelectInput: unsafe extern "C" fn(_: *mut Display, _: Window, _: c_int)XRRSetCrtcConfig: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRCrtc, _: Time, _: c_int, _: c_int, _: RRMode, _: Rotation, _: *mut RROutput, _: c_int) -> StatusXRRSetCrtcGamma: unsafe extern "C" fn(_: *mut Display, _: RRCrtc, _: *mut XRRCrtcGamma)XRRSetCrtcTransform: unsafe extern "C" fn(_: *mut Display, _: RRCrtc, _: *mut XTransform, _: *const c_char, _: *mut XFixed, _: c_int)XRRSetMonitor: unsafe extern "C" fn(_: *mut Display, _: Window, _: *mut XRRMonitorInfo)XRRSetOutputPrimary: unsafe extern "C" fn(_: *mut Display, _: Window, _: RROutput)XRRSetPanning: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenResources, _: RRCrtc, _: *mut XRRPanning) -> StatusXRRSetProviderOffloadSink: unsafe extern "C" fn(_: *mut Display, _: XID, _: XID) -> c_intXRRSetProviderOutputSource: unsafe extern "C" fn(_: *mut Display, _: XID, _: XID) -> c_intXRRSetScreenConfig: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenConfiguration, _: Drawable, _: c_int, _: Rotation, _: Time) -> StatusXRRSetScreenConfigAndRate: unsafe extern "C" fn(_: *mut Display, _: *mut XRRScreenConfiguration, _: Drawable, _: c_int, _: Rotation, _: c_short, _: Time) -> StatusXRRSetScreenSize: unsafe extern "C" fn(_: *mut Display, _: Window, _: c_int, _: c_int, _: c_int, _: c_int)XRRSizes: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> *mut XRRScreenSizeXRRTimes: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut Time) -> TimeXRRUpdateConfiguration: unsafe extern "C" fn(_: *mut XEvent) -> c_int

Methods

impl Xrandr[src]

pub fn open() -> Result<Xrandr, OpenError>[src]

Trait Implementations

impl Sync for Xrandr[src]

impl Send for Xrandr[src]

Auto Trait Implementations

impl Unpin for Xrandr

impl UnwindSafe for Xrandr

impl RefUnwindSafe for Xrandr

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]