Documentation ¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "xf86vidmode.xml"
Index ¶
- Constants
- func AddModeLine(c *xgb.XConn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, ...) error
- func AddModeLineUnchecked(c *xgb.XConn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, ...) error
- func DeleteModeLine(c *xgb.XConn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, ...) error
- func DeleteModeLineUnchecked(c *xgb.XConn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, ...) error
- func GetAllModeLinesUnchecked(c *xgb.XConn, Screen uint16) error
- func GetDotClocksUnchecked(c *xgb.XConn, Screen uint16) error
- func GetGammaRampSizeUnchecked(c *xgb.XConn, Screen uint16) error
- func GetGammaRampUnchecked(c *xgb.XConn, Screen uint16, Size uint16) error
- func GetGammaUnchecked(c *xgb.XConn, Screen uint16) error
- func GetModeLineUnchecked(c *xgb.XConn, Screen uint16) error
- func GetMonitorUnchecked(c *xgb.XConn, Screen uint16) error
- func GetPermissionsUnchecked(c *xgb.XConn, Screen uint16) error
- func GetViewPortUnchecked(c *xgb.XConn, Screen uint16) error
- func LockModeSwitch(c *xgb.XConn, Screen uint16, Lock uint16) error
- func LockModeSwitchUnchecked(c *xgb.XConn, Screen uint16, Lock uint16) error
- func ModModeLine(c *xgb.XConn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, ...) error
- func ModModeLineUnchecked(c *xgb.XConn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, ...) error
- func ModeInfoListBytes(buf []byte, list []ModeInfo) int
- func ModeInfoRead(buf []byte, v *ModeInfo) int
- func ModeInfoReadList(buf []byte, dest []ModeInfo) int
- func QueryVersionUnchecked(c *xgb.XConn) error
- func Register(xconn *xgb.XConn) error
- func SetClientVersion(c *xgb.XConn, Major uint16, Minor uint16) error
- func SetClientVersionUnchecked(c *xgb.XConn, Major uint16, Minor uint16) error
- func SetGamma(c *xgb.XConn, Screen uint16, Red uint32, Green uint32, Blue uint32) error
- func SetGammaRamp(c *xgb.XConn, Screen uint16, Size uint16, Red []uint16, Green []uint16, ...) error
- func SetGammaRampUnchecked(c *xgb.XConn, Screen uint16, Size uint16, Red []uint16, Green []uint16, ...) error
- func SetGammaUnchecked(c *xgb.XConn, Screen uint16, Red uint32, Green uint32, Blue uint32) error
- func SetViewPort(c *xgb.XConn, Screen uint16, X uint32, Y uint32) error
- func SetViewPortUnchecked(c *xgb.XConn, Screen uint16, X uint32, Y uint32) error
- func SwitchMode(c *xgb.XConn, Screen uint16, Zoom uint16) error
- func SwitchModeUnchecked(c *xgb.XConn, Screen uint16, Zoom uint16) error
- func SwitchToMode(c *xgb.XConn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, ...) error
- func SwitchToModeUnchecked(c *xgb.XConn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, ...) error
- func UnmarshalBadClockError(buf []byte) (xgb.XError, error)
- func UnmarshalBadHTimingsError(buf []byte) (xgb.XError, error)
- func UnmarshalBadVTimingsError(buf []byte) (xgb.XError, error)
- func UnmarshalClientNotLocalError(buf []byte) (xgb.XError, error)
- func UnmarshalExtensionDisabledError(buf []byte) (xgb.XError, error)
- func UnmarshalModeUnsuitableError(buf []byte) (xgb.XError, error)
- func UnmarshalZoomLockedError(buf []byte) (xgb.XError, error)
- func ValidateModeLineUnchecked(c *xgb.XConn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, ...) error
- type BadClockError
- type BadHTimingsError
- type BadVTimingsError
- type ClientNotLocalError
- type Dotclock
- type ExtensionDisabledError
- type GetAllModeLinesReply
- type GetDotClocksReply
- type GetGammaRampReply
- type GetGammaRampSizeReply
- type GetGammaReply
- type GetModeLineReply
- type GetMonitorReply
- type GetPermissionsReply
- type GetViewPortReply
- type ModeInfo
- type ModeUnsuitableError
- type QueryVersionReply
- type Syncrange
- type ValidateModeLineReply
- type ZoomLockedError
Constants ¶
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" )
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 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 ¶
GetAllModeLinesUnchecked sends an unchecked request.
func GetDotClocksUnchecked ¶
GetDotClocksUnchecked sends an unchecked request.
func GetGammaRampSizeUnchecked ¶
GetGammaRampSizeUnchecked sends an unchecked request.
func GetGammaRampUnchecked ¶
GetGammaRampUnchecked sends an unchecked request.
func GetGammaUnchecked ¶
GetGammaUnchecked sends an unchecked request.
func GetModeLineUnchecked ¶
GetModeLineUnchecked sends an unchecked request.
func GetMonitorUnchecked ¶
GetMonitorUnchecked sends an unchecked request.
func GetPermissionsUnchecked ¶
GetPermissionsUnchecked sends an unchecked request.
func GetViewPortUnchecked ¶
GetViewPortUnchecked sends an unchecked request.
func LockModeSwitch ¶
LockModeSwitch sends a checked request.
func LockModeSwitchUnchecked ¶ added in v1.1.0
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 ¶
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 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 ¶
SetClientVersion sends a checked request.
func SetClientVersionUnchecked ¶ added in v1.1.0
SetClientVersionUnchecked sends an unchecked 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
SetGammaUnchecked sends an unchecked request.
func SetViewPort ¶
SetViewPort sends a checked request.
func SetViewPortUnchecked ¶ added in v1.1.0
SetViewPortUnchecked sends an unchecked request.
func SwitchMode ¶
SwitchMode sends a checked request.
func SwitchModeUnchecked ¶ added in v1.1.0
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
UnmarshalBadClockError constructs a BadClockError value that implements xgb.Error from a byte slice.
func UnmarshalBadHTimingsError ¶ added in v1.1.0
UnmarshalBadHTimingsError constructs a BadHTimingsError value that implements xgb.Error from a byte slice.
func UnmarshalBadVTimingsError ¶ added in v1.1.0
UnmarshalBadVTimingsError constructs a BadVTimingsError value that implements xgb.Error from a byte slice.
func UnmarshalClientNotLocalError ¶ added in v1.1.0
UnmarshalClientNotLocalError constructs a ClientNotLocalError value that implements xgb.Error from a byte slice.
func UnmarshalExtensionDisabledError ¶ added in v1.1.0
UnmarshalExtensionDisabledError constructs a ExtensionDisabledError value that implements xgb.Error from a byte slice.
func UnmarshalModeUnsuitableError ¶ added in v1.1.0
UnmarshalModeUnsuitableError constructs a ModeUnsuitableError value that implements xgb.Error from a byte slice.
func UnmarshalZoomLockedError ¶ added in v1.1.0
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 ¶
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 ¶
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 ¶
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 ¶
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 ExtensionDisabledError ¶
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 ModeUnsuitableError ¶
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 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 ¶
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.