Documentation ¶
Overview ¶
Package xf86vidmode is the X client API for the XFree86-VidModeExtension extension.
Index ¶
- Constants
- func BadClockErrorNew(buf []byte) xgb.Error
- func BadHTimingsErrorNew(buf []byte) xgb.Error
- func BadVTimingsErrorNew(buf []byte) xgb.Error
- func ClientNotLocalErrorNew(buf []byte) xgb.Error
- func ExtensionDisabledErrorNew(buf []byte) xgb.Error
- func Init(c *xgb.Conn) error
- func ModeInfoListBytes(buf []byte, list []ModeInfo) int
- func ModeInfoRead(buf []byte, v *ModeInfo) int
- func ModeInfoReadList(buf []byte, dest []ModeInfo) int
- func ModeUnsuitableErrorNew(buf []byte) xgb.Error
- func ZoomLockedErrorNew(buf []byte) xgb.Error
- type AddModeLineCookie
- type BadClockError
- type BadHTimingsError
- type BadVTimingsError
- type ClientNotLocalError
- type DeleteModeLineCookie
- type Dotclock
- type ExtensionDisabledError
- type GetAllModeLinesCookie
- type GetAllModeLinesReply
- type GetDotClocksCookie
- type GetDotClocksReply
- type GetGammaCookie
- type GetGammaRampCookie
- type GetGammaRampReply
- type GetGammaRampSizeCookie
- type GetGammaRampSizeReply
- type GetGammaReply
- type GetModeLineCookie
- type GetModeLineReply
- type GetMonitorCookie
- type GetMonitorReply
- type GetPermissionsCookie
- type GetPermissionsReply
- type GetViewPortCookie
- type GetViewPortReply
- type LockModeSwitchCookie
- type ModModeLineCookie
- type ModeInfo
- type ModeUnsuitableError
- type QueryVersionCookie
- type QueryVersionReply
- type SetClientVersionCookie
- type SetGammaCookie
- type SetGammaRampCookie
- type SetViewPortCookie
- type SwitchModeCookie
- type SwitchToModeCookie
- type Syncrange
- type ValidateModeLineCookie
- type ValidateModeLineReply
- type ZoomLockedError
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
)
Variables ¶
This section is empty.
Functions ¶
func BadClockErrorNew ¶
BadClockErrorNew constructs a BadClockError value that implements xgb.Error from a byte slice.
func BadHTimingsErrorNew ¶
BadHTimingsErrorNew constructs a BadHTimingsError value that implements xgb.Error from a byte slice.
func BadVTimingsErrorNew ¶
BadVTimingsErrorNew constructs a BadVTimingsError value that implements xgb.Error from a byte slice.
func ClientNotLocalErrorNew ¶
ClientNotLocalErrorNew constructs a ClientNotLocalError value that implements xgb.Error from a byte slice.
func ExtensionDisabledErrorNew ¶
ExtensionDisabledErrorNew constructs a ExtensionDisabledError value that implements xgb.Error from a byte slice.
func ModeInfoListBytes ¶
ModeInfoListBytes writes a list of ModeInfo values to a byte slice.
func ModeInfoRead ¶
ModeInfoRead reads a byte slice into a ModeInfo value.
func ModeInfoReadList ¶
ModeInfoReadList reads a byte slice into a list of ModeInfo values.
func ModeUnsuitableErrorNew ¶
ModeUnsuitableErrorNew constructs a ModeUnsuitableError value that implements xgb.Error from a byte slice.
func ZoomLockedErrorNew ¶
ZoomLockedErrorNew constructs a ZoomLockedError value that implements xgb.Error from a byte slice.
Types ¶
type AddModeLineCookie ¶
AddModeLineCookie is a cookie used only for AddModeLine requests.
func AddModeLine ¶
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 ¶
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 ¶
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 ¶
func (BadClockError) BadId ¶
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 ¶
func (err BadClockError) Error() string
func (BadClockError) SequenceId ¶
func (err BadClockError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadClock error. This is mostly used internally.
type BadHTimingsError ¶
func (BadHTimingsError) BadId ¶
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 ¶
func (err BadHTimingsError) Error() string
func (BadHTimingsError) SequenceId ¶
func (err BadHTimingsError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadHTimings error. This is mostly used internally.
type BadVTimingsError ¶
func (BadVTimingsError) BadId ¶
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 ¶
func (err BadVTimingsError) Error() string
func (BadVTimingsError) SequenceId ¶
func (err BadVTimingsError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadVTimings error. This is mostly used internally.
type ClientNotLocalError ¶
func (ClientNotLocalError) BadId ¶
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 ¶
func (err ClientNotLocalError) Error() string
func (ClientNotLocalError) SequenceId ¶
func (err ClientNotLocalError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadClientNotLocal error. This is mostly used internally.
type DeleteModeLineCookie ¶
DeleteModeLineCookie is a cookie used only for DeleteModeLine requests.
func DeleteModeLine ¶
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 ¶
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 ¶
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 ExtensionDisabledError ¶
func (ExtensionDisabledError) BadId ¶
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 ¶
func (err ExtensionDisabledError) Error() string
func (ExtensionDisabledError) SequenceId ¶
func (err ExtensionDisabledError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadExtensionDisabled error. This is mostly used internally.
type GetAllModeLinesCookie ¶
GetAllModeLinesCookie is a cookie used only for GetAllModeLines requests.
func GetAllModeLines ¶
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 ¶
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 ¶
func (cook GetAllModeLinesCookie) Reply() (*GetAllModeLinesReply, error)
Reply blocks and returns the reply data for a GetAllModeLines request.
type GetAllModeLinesReply ¶
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 ¶
GetDotClocksCookie is a cookie used only for GetDotClocks requests.
func GetDotClocks ¶
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 ¶
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 ¶
func (cook GetDotClocksCookie) Reply() (*GetDotClocksReply, error)
Reply blocks and returns the reply data for a GetDotClocks request.
type GetDotClocksReply ¶
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 ¶
GetGammaCookie is a cookie used only for GetGamma requests.
func GetGamma ¶
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 ¶
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 ¶
func (cook GetGammaCookie) Reply() (*GetGammaReply, error)
Reply blocks and returns the reply data for a GetGamma request.
type GetGammaRampCookie ¶
GetGammaRampCookie is a cookie used only for GetGammaRamp requests.
func GetGammaRamp ¶
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 ¶
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 ¶
func (cook GetGammaRampCookie) Reply() (*GetGammaRampReply, error)
Reply blocks and returns the reply data for a GetGammaRamp request.
type GetGammaRampReply ¶
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 ¶
GetGammaRampSizeCookie is a cookie used only for GetGammaRampSize requests.
func GetGammaRampSize ¶
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 ¶
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 ¶
func (cook GetGammaRampSizeCookie) Reply() (*GetGammaRampSizeReply, error)
Reply blocks and returns the reply data for a GetGammaRampSize request.
type GetGammaRampSizeReply ¶
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 ¶
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 ¶
GetModeLineCookie is a cookie used only for GetModeLine requests.
func GetModeLine ¶
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 ¶
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 ¶
func (cook GetModeLineCookie) Reply() (*GetModeLineReply, error)
Reply blocks and returns the reply data for a GetModeLine request.
type GetModeLineReply ¶
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 ¶
GetMonitorCookie is a cookie used only for GetMonitor requests.
func GetMonitor ¶
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 ¶
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 ¶
func (cook GetMonitorCookie) Reply() (*GetMonitorReply, error)
Reply blocks and returns the reply data for a GetMonitor request.
type GetMonitorReply ¶
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 ¶
GetPermissionsCookie is a cookie used only for GetPermissions requests.
func GetPermissions ¶
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 ¶
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 ¶
func (cook GetPermissionsCookie) Reply() (*GetPermissionsReply, error)
Reply blocks and returns the reply data for a GetPermissions request.
type GetPermissionsReply ¶
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 ¶
GetViewPortCookie is a cookie used only for GetViewPort requests.
func GetViewPort ¶
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 ¶
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 ¶
func (cook GetViewPortCookie) Reply() (*GetViewPortReply, error)
Reply blocks and returns the reply data for a GetViewPort request.
type GetViewPortReply ¶
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 ¶
LockModeSwitchCookie is a cookie used only for LockModeSwitch requests.
func LockModeSwitch ¶
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 ¶
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 ¶
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 ¶
ModModeLineCookie is a cookie used only for ModModeLine requests.
func ModModeLine ¶
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 ¶
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 ¶
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 ¶
type ModeUnsuitableError ¶
func (ModeUnsuitableError) BadId ¶
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 ¶
func (err ModeUnsuitableError) Error() string
func (ModeUnsuitableError) SequenceId ¶
func (err ModeUnsuitableError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadModeUnsuitable error. This is mostly used internally.
type QueryVersionCookie ¶
QueryVersionCookie is a cookie used only for QueryVersion requests.
func QueryVersion ¶
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 ¶
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 ¶
func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
Reply blocks and returns the reply data for a QueryVersion request.
type QueryVersionReply ¶
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 ¶
SetClientVersionCookie is a cookie used only for SetClientVersion requests.
func SetClientVersion ¶
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 ¶
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 ¶
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 ¶
SetGammaCookie is a cookie used only for SetGamma requests.
func SetGamma ¶
SetGamma sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetGammaChecked ¶
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 ¶
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 ¶
SetGammaRampCookie is a cookie used only for SetGammaRamp requests.
func SetGammaRamp ¶
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 ¶
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 ¶
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 ¶
SetViewPortCookie is a cookie used only for SetViewPort requests.
func SetViewPort ¶
SetViewPort sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetViewPortChecked ¶
SetViewPortChecked sends a checked request. If an error occurs, it can be retrieved using SetViewPortCookie.Check()
func (SetViewPortCookie) Check ¶
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 ¶
SwitchModeCookie is a cookie used only for SwitchMode requests.
func SwitchMode ¶
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 ¶
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 ¶
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 ¶
SwitchToModeCookie is a cookie used only for SwitchToMode requests.
func SwitchToMode ¶
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 ¶
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 ¶
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 ValidateModeLineCookie ¶
ValidateModeLineCookie is a cookie used only for ValidateModeLine requests.
func ValidateModeLine ¶
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 ¶
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 ¶
func (cook ValidateModeLineCookie) Reply() (*ValidateModeLineReply, error)
Reply blocks and returns the reply data for a ValidateModeLine request.
type ValidateModeLineReply ¶
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 ¶
func (ZoomLockedError) BadId ¶
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 ¶
func (err ZoomLockedError) Error() string
func (ZoomLockedError) SequenceId ¶
func (err ZoomLockedError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadZoomLocked error. This is mostly used internally.