xf86vidmode

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2024 License: BSD-3-Clause, GooglePatentClause Imports: 8 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "xf86vidmode.xml"

Index

Constants

View Source
const (
	// ExtName is the user-friendly name string of this X extension.
	ExtName = "XF86VidMode"

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "XFree86-VidModeExtension"
)
View Source
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
)
View Source
const (
	PermissionRead  = 1
	PermissionWrite = 2
)
View Source
const BadBadClock = 0

BadBadClock is the error number for a BadBadClock.

View Source
const BadBadHTimings = 1

BadBadHTimings is the error number for a BadBadHTimings.

View Source
const BadBadVTimings = 2

BadBadVTimings is the error number for a BadBadVTimings.

View Source
const BadClientNotLocal = 5

BadClientNotLocal is the error number for a BadClientNotLocal.

View Source
const BadExtensionDisabled = 4

BadExtensionDisabled is the error number for a BadExtensionDisabled.

View Source
const BadModeUnsuitable = 3

BadModeUnsuitable is the error number for a BadModeUnsuitable.

View Source
const BadZoomLocked = 6

BadZoomLocked is the error number for a BadZoomLocked.

View Source
const (
	ClockFlagProgramable = 1
)

Variables

This section is empty.

Functions

func AddModeLine

func AddModeLine(c *xgb.XConn, 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) error

AddModeLine sends a checked request.

func AddModeLineUnchecked added in v1.1.0

func AddModeLineUnchecked(c *xgb.XConn, 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) error

AddModeLineUnchecked sends an unchecked request.

func DeleteModeLine

func DeleteModeLine(c *xgb.XConn, 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) error

DeleteModeLine sends a checked request.

func DeleteModeLineUnchecked added in v1.1.0

func DeleteModeLineUnchecked(c *xgb.XConn, 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) error

DeleteModeLineUnchecked sends an unchecked request.

func GetAllModeLinesUnchecked

func GetAllModeLinesUnchecked(c *xgb.XConn, Screen uint16) error

GetAllModeLinesUnchecked sends an unchecked request.

func GetDotClocksUnchecked

func GetDotClocksUnchecked(c *xgb.XConn, Screen uint16) error

GetDotClocksUnchecked sends an unchecked request.

func GetGammaRampSizeUnchecked

func GetGammaRampSizeUnchecked(c *xgb.XConn, Screen uint16) error

GetGammaRampSizeUnchecked sends an unchecked request.

func GetGammaRampUnchecked

func GetGammaRampUnchecked(c *xgb.XConn, Screen uint16, Size uint16) error

GetGammaRampUnchecked sends an unchecked request.

func GetGammaUnchecked

func GetGammaUnchecked(c *xgb.XConn, Screen uint16) error

GetGammaUnchecked sends an unchecked request.

func GetModeLineUnchecked

func GetModeLineUnchecked(c *xgb.XConn, Screen uint16) error

GetModeLineUnchecked sends an unchecked request.

func GetMonitorUnchecked

func GetMonitorUnchecked(c *xgb.XConn, Screen uint16) error

GetMonitorUnchecked sends an unchecked request.

func GetPermissionsUnchecked

func GetPermissionsUnchecked(c *xgb.XConn, Screen uint16) error

GetPermissionsUnchecked sends an unchecked request.

func GetViewPortUnchecked

func GetViewPortUnchecked(c *xgb.XConn, Screen uint16) error

GetViewPortUnchecked sends an unchecked request.

func LockModeSwitch

func LockModeSwitch(c *xgb.XConn, Screen uint16, Lock uint16) error

LockModeSwitch sends a checked request.

func LockModeSwitchUnchecked added in v1.1.0

func LockModeSwitchUnchecked(c *xgb.XConn, Screen uint16, Lock uint16) error

LockModeSwitchUnchecked sends an unchecked request.

func ModModeLine

func ModModeLine(c *xgb.XConn, 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) error

ModModeLine sends a checked request.

func ModModeLineUnchecked added in v1.1.0

func ModModeLineUnchecked(c *xgb.XConn, 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) error

ModModeLineUnchecked sends an unchecked request.

func ModeInfoListBytes

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

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

func ModeInfoRead

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

ModeInfoRead reads a byte slice into a ModeInfo value.

func ModeInfoReadList

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

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

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.XConn) error

QueryVersionUnchecked sends an unchecked request.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

Register will query the X server for XF86VidMode extension support, and register relevant extension unmarshalers with the XConn.

func SetClientVersion

func SetClientVersion(c *xgb.XConn, Major uint16, Minor uint16) error

SetClientVersion sends a checked request.

func SetClientVersionUnchecked added in v1.1.0

func SetClientVersionUnchecked(c *xgb.XConn, Major uint16, Minor uint16) error

SetClientVersionUnchecked sends an unchecked request.

func SetGamma

func SetGamma(c *xgb.XConn, Screen uint16, Red uint32, Green uint32, Blue uint32) error

SetGamma sends a checked request.

func SetGammaRamp

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

SetGammaRamp sends a checked request.

func SetGammaRampUnchecked added in v1.1.0

func SetGammaRampUnchecked(c *xgb.XConn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) error

SetGammaRampUnchecked sends an unchecked request.

func SetGammaUnchecked added in v1.1.0

func SetGammaUnchecked(c *xgb.XConn, Screen uint16, Red uint32, Green uint32, Blue uint32) error

SetGammaUnchecked sends an unchecked request.

func SetViewPort

func SetViewPort(c *xgb.XConn, Screen uint16, X uint32, Y uint32) error

SetViewPort sends a checked request.

func SetViewPortUnchecked added in v1.1.0

func SetViewPortUnchecked(c *xgb.XConn, Screen uint16, X uint32, Y uint32) error

SetViewPortUnchecked sends an unchecked request.

func SwitchMode

func SwitchMode(c *xgb.XConn, Screen uint16, Zoom uint16) error

SwitchMode sends a checked request.

func SwitchModeUnchecked added in v1.1.0

func SwitchModeUnchecked(c *xgb.XConn, Screen uint16, Zoom uint16) error

SwitchModeUnchecked sends an unchecked request.

func SwitchToMode

func SwitchToMode(c *xgb.XConn, 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) error

SwitchToMode sends a checked request.

func SwitchToModeUnchecked added in v1.1.0

func SwitchToModeUnchecked(c *xgb.XConn, 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) error

SwitchToModeUnchecked sends an unchecked request.

func UnmarshalBadClockError added in v1.1.0

func UnmarshalBadClockError(buf []byte) (xgb.XError, error)

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

func UnmarshalBadHTimingsError added in v1.1.0

func UnmarshalBadHTimingsError(buf []byte) (xgb.XError, error)

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

func UnmarshalBadVTimingsError added in v1.1.0

func UnmarshalBadVTimingsError(buf []byte) (xgb.XError, error)

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

func UnmarshalClientNotLocalError added in v1.1.0

func UnmarshalClientNotLocalError(buf []byte) (xgb.XError, error)

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

func UnmarshalExtensionDisabledError added in v1.1.0

func UnmarshalExtensionDisabledError(buf []byte) (xgb.XError, error)

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

func UnmarshalModeUnsuitableError added in v1.1.0

func UnmarshalModeUnsuitableError(buf []byte) (xgb.XError, error)

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

func UnmarshalZoomLockedError added in v1.1.0

func UnmarshalZoomLockedError(buf []byte) (xgb.XError, error)

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

func ValidateModeLineUnchecked

func ValidateModeLineUnchecked(c *xgb.XConn, 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) error

ValidateModeLineUnchecked sends an unchecked request.

Types

type BadClockError

type BadClockError struct {
	Sequence uint16
	NiceName string
}

func (*BadClockError) BadID added in v1.1.0

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

Error returns a rudimentary string representation of the BadBadClock error.

func (*BadClockError) SeqID added in v1.1.0

func (err *BadClockError) SeqID() uint16

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

type BadHTimingsError

type BadHTimingsError struct {
	Sequence uint16
	NiceName string
}

func (*BadHTimingsError) BadID added in v1.1.0

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

Error returns a rudimentary string representation of the BadBadHTimings error.

func (*BadHTimingsError) SeqID added in v1.1.0

func (err *BadHTimingsError) SeqID() uint16

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

type BadVTimingsError

type BadVTimingsError struct {
	Sequence uint16
	NiceName string
}

func (*BadVTimingsError) BadID added in v1.1.0

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

Error returns a rudimentary string representation of the BadBadVTimings error.

func (*BadVTimingsError) SeqID added in v1.1.0

func (err *BadVTimingsError) SeqID() uint16

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

type ClientNotLocalError

type ClientNotLocalError struct {
	Sequence uint16
	NiceName string
}

func (*ClientNotLocalError) BadID added in v1.1.0

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

Error returns a rudimentary string representation of the BadClientNotLocal error.

func (*ClientNotLocalError) SeqID added in v1.1.0

func (err *ClientNotLocalError) SeqID() uint16

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

type Dotclock

type Dotclock uint32

type ExtensionDisabledError

type ExtensionDisabledError struct {
	Sequence uint16
	NiceName string
}

func (*ExtensionDisabledError) BadID added in v1.1.0

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

Error returns a rudimentary string representation of the BadExtensionDisabled error.

func (*ExtensionDisabledError) SeqID added in v1.1.0

func (err *ExtensionDisabledError) SeqID() uint16

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

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: internal.Pad4((int(Modecount) * 48))
}

GetAllModeLinesReply represents the data returned from a GetAllModeLines request.

func GetAllModeLines

func GetAllModeLines(c *xgb.XConn, Screen uint16) (GetAllModeLinesReply, error)

GetAllModeLines sends a checked request.

func (*GetAllModeLinesReply) Unmarshal added in v1.1.0

func (v *GetAllModeLinesReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetAllModeLinesReply value.

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: internal.Pad4((((1 - (int(Flags) & 1)) * int(Clocks)) * 4))
}

GetDotClocksReply represents the data returned from a GetDotClocks request.

func GetDotClocks

func GetDotClocks(c *xgb.XConn, Screen uint16) (GetDotClocksReply, error)

GetDotClocks sends a checked request.

func (*GetDotClocksReply) Unmarshal added in v1.1.0

func (v *GetDotClocksReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetDotClocksReply value.

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: internal.Pad4((((int(Size) + 1) & -2) * 2))
	// alignment gap to multiple of 2
	Green []uint16 // size: internal.Pad4((((int(Size) + 1) & -2) * 2))
	// alignment gap to multiple of 2
	Blue []uint16 // size: internal.Pad4((((int(Size) + 1) & -2) * 2))
}

GetGammaRampReply represents the data returned from a GetGammaRamp request.

func GetGammaRamp

func GetGammaRamp(c *xgb.XConn, Screen uint16, Size uint16) (GetGammaRampReply, error)

GetGammaRamp sends a checked request.

func (*GetGammaRampReply) Unmarshal added in v1.1.0

func (v *GetGammaRampReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetGammaRampReply value.

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.

func GetGammaRampSize

func GetGammaRampSize(c *xgb.XConn, Screen uint16) (GetGammaRampSizeReply, error)

GetGammaRampSize sends a checked request.

func (*GetGammaRampSizeReply) Unmarshal added in v1.1.0

func (v *GetGammaRampSizeReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetGammaRampSizeReply value.

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.

func GetGamma

func GetGamma(c *xgb.XConn, Screen uint16) (GetGammaReply, error)

GetGamma sends a checked request.

func (*GetGammaReply) Unmarshal added in v1.1.0

func (v *GetGammaReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetGammaReply value.

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: internal.Pad4((int(Privsize) * 1))
}

GetModeLineReply represents the data returned from a GetModeLine request.

func GetModeLine

func GetModeLine(c *xgb.XConn, Screen uint16) (GetModeLineReply, error)

GetModeLine sends a checked request.

func (*GetModeLineReply) Unmarshal added in v1.1.0

func (v *GetModeLineReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetModeLineReply value.

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: internal.Pad4((int(NumHsync) * 4))
	// alignment gap to multiple of 4
	Vsync        []Syncrange // size: internal.Pad4((int(NumVsync) * 4))
	Vendor       string      // size: internal.Pad4((int(VendorLength) * 1))
	AlignmentPad []byte      // size: internal.Pad4(((((int(VendorLength) + 3) & -4) - int(VendorLength)) * 1))
	Model        string      // size: internal.Pad4((int(ModelLength) * 1))
}

GetMonitorReply represents the data returned from a GetMonitor request.

func GetMonitor

func GetMonitor(c *xgb.XConn, Screen uint16) (GetMonitorReply, error)

GetMonitor sends a checked request.

func (*GetMonitorReply) Unmarshal added in v1.1.0

func (v *GetMonitorReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetMonitorReply value.

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.

func GetPermissions

func GetPermissions(c *xgb.XConn, Screen uint16) (GetPermissionsReply, error)

GetPermissions sends a checked request.

func (*GetPermissionsReply) Unmarshal added in v1.1.0

func (v *GetPermissionsReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetPermissionsReply value.

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.

func GetViewPort

func GetViewPort(c *xgb.XConn, Screen uint16) (GetViewPortReply, error)

GetViewPort sends a checked request.

func (*GetViewPortReply) Unmarshal added in v1.1.0

func (v *GetViewPortReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetViewPortReply value.

type ModeInfo

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

func (v ModeInfo) Bytes() []byte

Bytes writes a ModeInfo value to a byte slice.

type ModeUnsuitableError

type ModeUnsuitableError struct {
	Sequence uint16
	NiceName string
}

func (*ModeUnsuitableError) BadID added in v1.1.0

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

Error returns a rudimentary string representation of the BadModeUnsuitable error.

func (*ModeUnsuitableError) SeqID added in v1.1.0

func (err *ModeUnsuitableError) SeqID() uint16

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

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.

func QueryVersion

func QueryVersion(c *xgb.XConn) (QueryVersionReply, error)

QueryVersion sends a checked request.

func (*QueryVersionReply) Unmarshal added in v1.1.0

func (v *QueryVersionReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryVersionReply value.

type Syncrange

type Syncrange uint32

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.

func ValidateModeLine

func ValidateModeLine(c *xgb.XConn, 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) (ValidateModeLineReply, error)

ValidateModeLine sends a checked request.

func (*ValidateModeLineReply) Unmarshal added in v1.1.0

func (v *ValidateModeLineReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a ValidateModeLineReply value.

type ZoomLockedError

type ZoomLockedError struct {
	Sequence uint16
	NiceName string
}

func (*ZoomLockedError) BadID added in v1.1.0

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

Error returns a rudimentary string representation of the BadZoomLocked error.

func (*ZoomLockedError) SeqID added in v1.1.0

func (err *ZoomLockedError) SeqID() uint16

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL