xgb: github.com/BurntSushi/xgb/xf86vidmode Index | Files

package xf86vidmode

import "github.com/BurntSushi/xgb/xf86vidmode"

Package xf86vidmode is the X client API for the XFree86-VidModeExtension extension.

Index

Package Files

xf86vidmode.go

Constants

const (
    ModeFlagPositiveHsync = 1
    ModeFlagNegativeHsync = 2
    ModeFlagPositiveVsync = 4
    ModeFlagNegativeVsync = 8
    ModeFlagInterlace     = 16
    ModeFlagCompositeSync = 32
    ModeFlagPositiveCsync = 64
    ModeFlagNegativeCsync = 128
    ModeFlagHSkew         = 256
    ModeFlagBroadcast     = 512
    ModeFlagPixmux        = 1024
    ModeFlagDoubleClock   = 2048
    ModeFlagHalfClock     = 4096
)
const (
    PermissionRead  = 1
    PermissionWrite = 2
)
const BadBadClock = 0

BadBadClock is the error number for a BadBadClock.

const BadBadHTimings = 1

BadBadHTimings is the error number for a BadBadHTimings.

const BadBadVTimings = 2

BadBadVTimings is the error number for a BadBadVTimings.

const BadClientNotLocal = 5

BadClientNotLocal is the error number for a BadClientNotLocal.

const BadExtensionDisabled = 4

BadExtensionDisabled is the error number for a BadExtensionDisabled.

const BadModeUnsuitable = 3

BadModeUnsuitable is the error number for a BadModeUnsuitable.

const BadZoomLocked = 6

BadZoomLocked is the error number for a BadZoomLocked.

const (
    ClockFlagProgramable = 1
)

func BadClockErrorNew Uses

func BadClockErrorNew(buf []byte) xgb.Error

BadClockErrorNew constructs a BadClockError value that implements xgb.Error from a byte slice.

func BadHTimingsErrorNew Uses

func BadHTimingsErrorNew(buf []byte) xgb.Error

BadHTimingsErrorNew constructs a BadHTimingsError value that implements xgb.Error from a byte slice.

func BadVTimingsErrorNew Uses

func BadVTimingsErrorNew(buf []byte) xgb.Error

BadVTimingsErrorNew constructs a BadVTimingsError value that implements xgb.Error from a byte slice.

func ClientNotLocalErrorNew Uses

func ClientNotLocalErrorNew(buf []byte) xgb.Error

ClientNotLocalErrorNew constructs a ClientNotLocalError value that implements xgb.Error from a byte slice.

func ExtensionDisabledErrorNew Uses

func ExtensionDisabledErrorNew(buf []byte) xgb.Error

ExtensionDisabledErrorNew constructs a ExtensionDisabledError value that implements xgb.Error from a byte slice.

func Init Uses

func Init(c *xgb.Conn) error

Init must be called before using the XFree86-VidModeExtension extension.

func ModeInfoListBytes Uses

func ModeInfoListBytes(buf []byte, list []ModeInfo) int

ModeInfoListBytes writes a list of ModeInfo values to a byte slice.

func ModeInfoRead Uses

func ModeInfoRead(buf []byte, v *ModeInfo) int

ModeInfoRead reads a byte slice into a ModeInfo value.

func ModeInfoReadList Uses

func ModeInfoReadList(buf []byte, dest []ModeInfo) int

ModeInfoReadList reads a byte slice into a list of ModeInfo values.

func ModeUnsuitableErrorNew Uses

func ModeUnsuitableErrorNew(buf []byte) xgb.Error

ModeUnsuitableErrorNew constructs a ModeUnsuitableError value that implements xgb.Error from a byte slice.

func ZoomLockedErrorNew Uses

func ZoomLockedErrorNew(buf []byte) xgb.Error

ZoomLockedErrorNew constructs a ZoomLockedError value that implements xgb.Error from a byte slice.

type AddModeLineCookie Uses

type AddModeLineCookie struct {
    *xgb.Cookie
}

AddModeLineCookie is a cookie used only for AddModeLine requests.

func AddModeLine Uses

func AddModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie

AddModeLine sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func AddModeLineChecked Uses

func AddModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie

AddModeLineChecked sends a checked request. If an error occurs, it can be retrieved using AddModeLineCookie.Check()

func (AddModeLineCookie) Check Uses

func (cook AddModeLineCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type BadClockError Uses

type BadClockError struct {
    Sequence uint16
    NiceName string
}

func (BadClockError) BadId Uses

func (err BadClockError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadBadClock error. If no bad value exists, 0 is returned.

func (BadClockError) Error Uses

func (err BadClockError) Error() string

func (BadClockError) SequenceId Uses

func (err BadClockError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadBadClock error. This is mostly used internally.

type BadHTimingsError Uses

type BadHTimingsError struct {
    Sequence uint16
    NiceName string
}

func (BadHTimingsError) BadId Uses

func (err BadHTimingsError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadBadHTimings error. If no bad value exists, 0 is returned.

func (BadHTimingsError) Error Uses

func (err BadHTimingsError) Error() string

func (BadHTimingsError) SequenceId Uses

func (err BadHTimingsError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadBadHTimings error. This is mostly used internally.

type BadVTimingsError Uses

type BadVTimingsError struct {
    Sequence uint16
    NiceName string
}

func (BadVTimingsError) BadId Uses

func (err BadVTimingsError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadBadVTimings error. If no bad value exists, 0 is returned.

func (BadVTimingsError) Error Uses

func (err BadVTimingsError) Error() string

func (BadVTimingsError) SequenceId Uses

func (err BadVTimingsError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadBadVTimings error. This is mostly used internally.

type ClientNotLocalError Uses

type ClientNotLocalError struct {
    Sequence uint16
    NiceName string
}

func (ClientNotLocalError) BadId Uses

func (err ClientNotLocalError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadClientNotLocal error. If no bad value exists, 0 is returned.

func (ClientNotLocalError) Error Uses

func (err ClientNotLocalError) Error() string

func (ClientNotLocalError) SequenceId Uses

func (err ClientNotLocalError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadClientNotLocal error. This is mostly used internally.

type DeleteModeLineCookie Uses

type DeleteModeLineCookie struct {
    *xgb.Cookie
}

DeleteModeLineCookie is a cookie used only for DeleteModeLine requests.

func DeleteModeLine Uses

func DeleteModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) DeleteModeLineCookie

DeleteModeLine sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DeleteModeLineChecked Uses

func DeleteModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) DeleteModeLineCookie

DeleteModeLineChecked sends a checked request. If an error occurs, it can be retrieved using DeleteModeLineCookie.Check()

func (DeleteModeLineCookie) Check Uses

func (cook DeleteModeLineCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type Dotclock Uses

type Dotclock uint32

type ExtensionDisabledError Uses

type ExtensionDisabledError struct {
    Sequence uint16
    NiceName string
}

func (ExtensionDisabledError) BadId Uses

func (err ExtensionDisabledError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadExtensionDisabled error. If no bad value exists, 0 is returned.

func (ExtensionDisabledError) Error Uses

func (err ExtensionDisabledError) Error() string

func (ExtensionDisabledError) SequenceId Uses

func (err ExtensionDisabledError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadExtensionDisabled error. This is mostly used internally.

type GetAllModeLinesCookie Uses

type GetAllModeLinesCookie struct {
    *xgb.Cookie
}

GetAllModeLinesCookie is a cookie used only for GetAllModeLines requests.

func GetAllModeLines Uses

func GetAllModeLines(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie

GetAllModeLines sends a checked request. If an error occurs, it will be returned with the reply by calling GetAllModeLinesCookie.Reply()

func GetAllModeLinesUnchecked Uses

func GetAllModeLinesUnchecked(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie

GetAllModeLinesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetAllModeLinesCookie) Reply Uses

func (cook GetAllModeLinesCookie) Reply() (*GetAllModeLinesReply, error)

Reply blocks and returns the reply data for a GetAllModeLines request.

type GetAllModeLinesReply Uses

type GetAllModeLinesReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Modecount uint32
    // padding: 20 bytes
    Modeinfo []ModeInfo // size: xgb.Pad((int(Modecount) * 48))
}

GetAllModeLinesReply represents the data returned from a GetAllModeLines request.

type GetDotClocksCookie Uses

type GetDotClocksCookie struct {
    *xgb.Cookie
}

GetDotClocksCookie is a cookie used only for GetDotClocks requests.

func GetDotClocks Uses

func GetDotClocks(c *xgb.Conn, Screen uint16) GetDotClocksCookie

GetDotClocks sends a checked request. If an error occurs, it will be returned with the reply by calling GetDotClocksCookie.Reply()

func GetDotClocksUnchecked Uses

func GetDotClocksUnchecked(c *xgb.Conn, Screen uint16) GetDotClocksCookie

GetDotClocksUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetDotClocksCookie) Reply Uses

func (cook GetDotClocksCookie) Reply() (*GetDotClocksReply, error)

Reply blocks and returns the reply data for a GetDotClocks request.

type GetDotClocksReply Uses

type GetDotClocksReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Flags     uint32
    Clocks    uint32
    Maxclocks uint32
    // padding: 12 bytes
    Clock []uint32 // size: xgb.Pad((((1 - (int(Flags) & 1)) * int(Clocks)) * 4))
}

GetDotClocksReply represents the data returned from a GetDotClocks request.

type GetGammaCookie Uses

type GetGammaCookie struct {
    *xgb.Cookie
}

GetGammaCookie is a cookie used only for GetGamma requests.

func GetGamma Uses

func GetGamma(c *xgb.Conn, Screen uint16) GetGammaCookie

GetGamma sends a checked request. If an error occurs, it will be returned with the reply by calling GetGammaCookie.Reply()

func GetGammaUnchecked Uses

func GetGammaUnchecked(c *xgb.Conn, Screen uint16) GetGammaCookie

GetGammaUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetGammaCookie) Reply Uses

func (cook GetGammaCookie) Reply() (*GetGammaReply, error)

Reply blocks and returns the reply data for a GetGamma request.

type GetGammaRampCookie Uses

type GetGammaRampCookie struct {
    *xgb.Cookie
}

GetGammaRampCookie is a cookie used only for GetGammaRamp requests.

func GetGammaRamp Uses

func GetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie

GetGammaRamp sends a checked request. If an error occurs, it will be returned with the reply by calling GetGammaRampCookie.Reply()

func GetGammaRampUnchecked Uses

func GetGammaRampUnchecked(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie

GetGammaRampUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetGammaRampCookie) Reply Uses

func (cook GetGammaRampCookie) Reply() (*GetGammaRampReply, error)

Reply blocks and returns the reply data for a GetGammaRamp request.

type GetGammaRampReply Uses

type GetGammaRampReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Size uint16
    // padding: 22 bytes
    Red []uint16 // size: xgb.Pad((((int(Size) + 1) & -2) * 2))
    // alignment gap to multiple of 2
    Green []uint16 // size: xgb.Pad((((int(Size) + 1) & -2) * 2))
    // alignment gap to multiple of 2
    Blue []uint16 // size: xgb.Pad((((int(Size) + 1) & -2) * 2))
}

GetGammaRampReply represents the data returned from a GetGammaRamp request.

type GetGammaRampSizeCookie Uses

type GetGammaRampSizeCookie struct {
    *xgb.Cookie
}

GetGammaRampSizeCookie is a cookie used only for GetGammaRampSize requests.

func GetGammaRampSize Uses

func GetGammaRampSize(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie

GetGammaRampSize sends a checked request. If an error occurs, it will be returned with the reply by calling GetGammaRampSizeCookie.Reply()

func GetGammaRampSizeUnchecked Uses

func GetGammaRampSizeUnchecked(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie

GetGammaRampSizeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetGammaRampSizeCookie) Reply Uses

func (cook GetGammaRampSizeCookie) Reply() (*GetGammaRampSizeReply, error)

Reply blocks and returns the reply data for a GetGammaRampSize request.

type GetGammaRampSizeReply Uses

type GetGammaRampSizeReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Size uint16
}

GetGammaRampSizeReply represents the data returned from a GetGammaRampSize request.

type GetGammaReply Uses

type GetGammaReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Red   uint32
    Green uint32
    Blue  uint32
}

GetGammaReply represents the data returned from a GetGamma request.

type GetModeLineCookie Uses

type GetModeLineCookie struct {
    *xgb.Cookie
}

GetModeLineCookie is a cookie used only for GetModeLine requests.

func GetModeLine Uses

func GetModeLine(c *xgb.Conn, Screen uint16) GetModeLineCookie

GetModeLine sends a checked request. If an error occurs, it will be returned with the reply by calling GetModeLineCookie.Reply()

func GetModeLineUnchecked Uses

func GetModeLineUnchecked(c *xgb.Conn, Screen uint16) GetModeLineCookie

GetModeLineUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetModeLineCookie) Reply Uses

func (cook GetModeLineCookie) Reply() (*GetModeLineReply, error)

Reply blocks and returns the reply data for a GetModeLine request.

type GetModeLineReply Uses

type GetModeLineReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Dotclock   Dotclock
    Hdisplay   uint16
    Hsyncstart uint16
    Hsyncend   uint16
    Htotal     uint16
    Hskew      uint16
    Vdisplay   uint16
    Vsyncstart uint16
    Vsyncend   uint16
    Vtotal     uint16
    // padding: 2 bytes
    Flags uint32
    // padding: 12 bytes
    Privsize uint32
    Private  []byte // size: xgb.Pad((int(Privsize) * 1))
}

GetModeLineReply represents the data returned from a GetModeLine request.

type GetMonitorCookie Uses

type GetMonitorCookie struct {
    *xgb.Cookie
}

GetMonitorCookie is a cookie used only for GetMonitor requests.

func GetMonitor Uses

func GetMonitor(c *xgb.Conn, Screen uint16) GetMonitorCookie

GetMonitor sends a checked request. If an error occurs, it will be returned with the reply by calling GetMonitorCookie.Reply()

func GetMonitorUnchecked Uses

func GetMonitorUnchecked(c *xgb.Conn, Screen uint16) GetMonitorCookie

GetMonitorUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetMonitorCookie) Reply Uses

func (cook GetMonitorCookie) Reply() (*GetMonitorReply, error)

Reply blocks and returns the reply data for a GetMonitor request.

type GetMonitorReply Uses

type GetMonitorReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    VendorLength byte
    ModelLength  byte
    NumHsync     byte
    NumVsync     byte
    // padding: 20 bytes
    Hsync []Syncrange // size: xgb.Pad((int(NumHsync) * 4))
    // alignment gap to multiple of 4
    Vsync        []Syncrange // size: xgb.Pad((int(NumVsync) * 4))
    Vendor       string      // size: xgb.Pad((int(VendorLength) * 1))
    AlignmentPad []byte      // size: xgb.Pad(((((int(VendorLength) + 3) & -4) - int(VendorLength)) * 1))
    Model        string      // size: xgb.Pad((int(ModelLength) * 1))
}

GetMonitorReply represents the data returned from a GetMonitor request.

type GetPermissionsCookie Uses

type GetPermissionsCookie struct {
    *xgb.Cookie
}

GetPermissionsCookie is a cookie used only for GetPermissions requests.

func GetPermissions Uses

func GetPermissions(c *xgb.Conn, Screen uint16) GetPermissionsCookie

GetPermissions sends a checked request. If an error occurs, it will be returned with the reply by calling GetPermissionsCookie.Reply()

func GetPermissionsUnchecked Uses

func GetPermissionsUnchecked(c *xgb.Conn, Screen uint16) GetPermissionsCookie

GetPermissionsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetPermissionsCookie) Reply Uses

func (cook GetPermissionsCookie) Reply() (*GetPermissionsReply, error)

Reply blocks and returns the reply data for a GetPermissions request.

type GetPermissionsReply Uses

type GetPermissionsReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Permissions uint32
}

GetPermissionsReply represents the data returned from a GetPermissions request.

type GetViewPortCookie Uses

type GetViewPortCookie struct {
    *xgb.Cookie
}

GetViewPortCookie is a cookie used only for GetViewPort requests.

func GetViewPort Uses

func GetViewPort(c *xgb.Conn, Screen uint16) GetViewPortCookie

GetViewPort sends a checked request. If an error occurs, it will be returned with the reply by calling GetViewPortCookie.Reply()

func GetViewPortUnchecked Uses

func GetViewPortUnchecked(c *xgb.Conn, Screen uint16) GetViewPortCookie

GetViewPortUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetViewPortCookie) Reply Uses

func (cook GetViewPortCookie) Reply() (*GetViewPortReply, error)

Reply blocks and returns the reply data for a GetViewPort request.

type GetViewPortReply Uses

type GetViewPortReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    X   uint32
    Y   uint32
}

GetViewPortReply represents the data returned from a GetViewPort request.

type LockModeSwitchCookie Uses

type LockModeSwitchCookie struct {
    *xgb.Cookie
}

LockModeSwitchCookie is a cookie used only for LockModeSwitch requests.

func LockModeSwitch Uses

func LockModeSwitch(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCookie

LockModeSwitch sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func LockModeSwitchChecked Uses

func LockModeSwitchChecked(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCookie

LockModeSwitchChecked sends a checked request. If an error occurs, it can be retrieved using LockModeSwitchCookie.Check()

func (LockModeSwitchCookie) Check Uses

func (cook LockModeSwitchCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type ModModeLineCookie Uses

type ModModeLineCookie struct {
    *xgb.Cookie
}

ModModeLineCookie is a cookie used only for ModModeLine requests.

func ModModeLine Uses

func ModModeLine(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ModModeLineCookie

ModModeLine sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ModModeLineChecked Uses

func ModModeLineChecked(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ModModeLineCookie

ModModeLineChecked sends a checked request. If an error occurs, it can be retrieved using ModModeLineCookie.Check()

func (ModModeLineCookie) Check Uses

func (cook ModModeLineCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type ModeInfo Uses

type ModeInfo struct {
    Dotclock   Dotclock
    Hdisplay   uint16
    Hsyncstart uint16
    Hsyncend   uint16
    Htotal     uint16
    Hskew      uint32
    Vdisplay   uint16
    Vsyncstart uint16
    Vsyncend   uint16
    Vtotal     uint16
    // padding: 4 bytes
    Flags uint32
    // padding: 12 bytes
    Privsize uint32
}

func (ModeInfo) Bytes Uses

func (v ModeInfo) Bytes() []byte

Bytes writes a ModeInfo value to a byte slice.

type ModeUnsuitableError Uses

type ModeUnsuitableError struct {
    Sequence uint16
    NiceName string
}

func (ModeUnsuitableError) BadId Uses

func (err ModeUnsuitableError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadModeUnsuitable error. If no bad value exists, 0 is returned.

func (ModeUnsuitableError) Error Uses

func (err ModeUnsuitableError) Error() string

func (ModeUnsuitableError) SequenceId Uses

func (err ModeUnsuitableError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadModeUnsuitable error. This is mostly used internally.

type QueryVersionCookie Uses

type QueryVersionCookie struct {
    *xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion Uses

func QueryVersion(c *xgb.Conn) QueryVersionCookie

QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()

func QueryVersionUnchecked Uses

func QueryVersionUnchecked(c *xgb.Conn) QueryVersionCookie

QueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryVersionCookie) Reply Uses

func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)

Reply blocks and returns the reply data for a QueryVersion request.

type QueryVersionReply Uses

type QueryVersionReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    MajorVersion uint16
    MinorVersion uint16
}

QueryVersionReply represents the data returned from a QueryVersion request.

type SetClientVersionCookie Uses

type SetClientVersionCookie struct {
    *xgb.Cookie
}

SetClientVersionCookie is a cookie used only for SetClientVersion requests.

func SetClientVersion Uses

func SetClientVersion(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionCookie

SetClientVersion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetClientVersionChecked Uses

func SetClientVersionChecked(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionCookie

SetClientVersionChecked sends a checked request. If an error occurs, it can be retrieved using SetClientVersionCookie.Check()

func (SetClientVersionCookie) Check Uses

func (cook SetClientVersionCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetGammaCookie Uses

type SetGammaCookie struct {
    *xgb.Cookie
}

SetGammaCookie is a cookie used only for SetGamma requests.

func SetGamma Uses

func SetGamma(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) SetGammaCookie

SetGamma sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetGammaChecked Uses

func SetGammaChecked(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) SetGammaCookie

SetGammaChecked sends a checked request. If an error occurs, it can be retrieved using SetGammaCookie.Check()

func (SetGammaCookie) Check Uses

func (cook SetGammaCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetGammaRampCookie Uses

type SetGammaRampCookie struct {
    *xgb.Cookie
}

SetGammaRampCookie is a cookie used only for SetGammaRamp requests.

func SetGammaRamp Uses

func SetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetGammaRampCookie

SetGammaRamp sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetGammaRampChecked Uses

func SetGammaRampChecked(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetGammaRampCookie

SetGammaRampChecked sends a checked request. If an error occurs, it can be retrieved using SetGammaRampCookie.Check()

func (SetGammaRampCookie) Check Uses

func (cook SetGammaRampCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SetViewPortCookie Uses

type SetViewPortCookie struct {
    *xgb.Cookie
}

SetViewPortCookie is a cookie used only for SetViewPort requests.

func SetViewPort Uses

func SetViewPort(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCookie

SetViewPort sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetViewPortChecked Uses

func SetViewPortChecked(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCookie

SetViewPortChecked sends a checked request. If an error occurs, it can be retrieved using SetViewPortCookie.Check()

func (SetViewPortCookie) Check Uses

func (cook SetViewPortCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SwitchModeCookie Uses

type SwitchModeCookie struct {
    *xgb.Cookie
}

SwitchModeCookie is a cookie used only for SwitchMode requests.

func SwitchMode Uses

func SwitchMode(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie

SwitchMode sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SwitchModeChecked Uses

func SwitchModeChecked(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie

SwitchModeChecked sends a checked request. If an error occurs, it can be retrieved using SwitchModeCookie.Check()

func (SwitchModeCookie) Check Uses

func (cook SwitchModeCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type SwitchToModeCookie Uses

type SwitchToModeCookie struct {
    *xgb.Cookie
}

SwitchToModeCookie is a cookie used only for SwitchToMode requests.

func SwitchToMode Uses

func SwitchToMode(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) SwitchToModeCookie

SwitchToMode sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SwitchToModeChecked Uses

func SwitchToModeChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) SwitchToModeCookie

SwitchToModeChecked sends a checked request. If an error occurs, it can be retrieved using SwitchToModeCookie.Check()

func (SwitchToModeCookie) Check Uses

func (cook SwitchToModeCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type Syncrange Uses

type Syncrange uint32

type ValidateModeLineCookie Uses

type ValidateModeLineCookie struct {
    *xgb.Cookie
}

ValidateModeLineCookie is a cookie used only for ValidateModeLine requests.

func ValidateModeLine Uses

func ValidateModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ValidateModeLineCookie

ValidateModeLine sends a checked request. If an error occurs, it will be returned with the reply by calling ValidateModeLineCookie.Reply()

func ValidateModeLineUnchecked Uses

func ValidateModeLineUnchecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ValidateModeLineCookie

ValidateModeLineUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (ValidateModeLineCookie) Reply Uses

func (cook ValidateModeLineCookie) Reply() (*ValidateModeLineReply, error)

Reply blocks and returns the reply data for a ValidateModeLine request.

type ValidateModeLineReply Uses

type ValidateModeLineReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Status uint32
}

ValidateModeLineReply represents the data returned from a ValidateModeLine request.

type ZoomLockedError Uses

type ZoomLockedError struct {
    Sequence uint16
    NiceName string
}

func (ZoomLockedError) BadId Uses

func (err ZoomLockedError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadZoomLocked error. If no bad value exists, 0 is returned.

func (ZoomLockedError) Error Uses

func (err ZoomLockedError) Error() string

func (ZoomLockedError) SequenceId Uses

func (err ZoomLockedError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadZoomLocked error. This is mostly used internally.

Package xf86vidmode imports 2 packages (graph). Updated 2016-11-06. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).