aboutsummaryrefslogtreecommitdiff
path: root/nexgb/randr
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-09-30 16:32:47 +0200
committerPřemysl Janouch <p@janouch.name>2018-09-30 17:34:27 +0200
commite6e4e9443661bab3bb69a6c32dacfaf0e54f32ef (patch)
tree1f81f1a54e9469424463f4fdd17f6d19094d241d /nexgb/randr
parent7051829581b426a410a3817921564d950f839768 (diff)
downloadhaven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.gz
haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.xz
haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.zip
nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
Diffstat (limited to 'nexgb/randr')
-rw-r--r--nexgb/randr/randr.go299
1 files changed, 128 insertions, 171 deletions
diff --git a/nexgb/randr/randr.go b/nexgb/randr/randr.go
index 63717be..9570434 100644
--- a/nexgb/randr/randr.go
+++ b/nexgb/randr/randr.go
@@ -1842,7 +1842,7 @@ func AddOutputMode(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie {
}
// AddOutputModeChecked sends a checked request.
-// If an error occurs, it can be retrieved using AddOutputModeCookie.Check()
+// If an error occurs, it can be retrieved using AddOutputModeCookie.Check.
func AddOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1860,8 +1860,7 @@ func (cook AddOutputModeCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for AddOutputMode
-// addOutputModeRequest writes a AddOutputMode request to a byte slice.
+// addOutputModeRequest writes a AddOutputMode request to a byte slice for transfer.
func addOutputModeRequest(c *xgb.Conn, Output Output, Mode Mode) []byte {
size := 12
b := 0
@@ -1894,7 +1893,7 @@ type ChangeOutputPropertyCookie struct {
// ChangeOutputProperty sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func ChangeOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie {
+func ChangeOutputProperty(c *xgb.Conn, Output Output, Property, Type xproto.Atom, Format, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -1906,8 +1905,8 @@ func ChangeOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type
}
// ChangeOutputPropertyChecked sends a checked request.
-// If an error occurs, it can be retrieved using ChangeOutputPropertyCookie.Check()
-func ChangeOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie {
+// If an error occurs, it can be retrieved using ChangeOutputPropertyCookie.Check.
+func ChangeOutputPropertyChecked(c *xgb.Conn, Output Output, Property, Type xproto.Atom, Format, Mode byte, NumUnits uint32, Data []byte) ChangeOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -1924,9 +1923,8 @@ func (cook ChangeOutputPropertyCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for ChangeOutputProperty
-// changeOutputPropertyRequest writes a ChangeOutputProperty request to a byte slice.
-func changeOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumUnits uint32, Data []byte) []byte {
+// changeOutputPropertyRequest writes a ChangeOutputProperty request to a byte slice for transfer.
+func changeOutputPropertyRequest(c *xgb.Conn, Output Output, Property, Type xproto.Atom, Format, Mode byte, NumUnits uint32, Data []byte) []byte {
size := xgb.Pad((24 + xgb.Pad((((int(NumUnits) * int(Format)) / 8) * 1))))
b := 0
buf := make([]byte, size)
@@ -1975,7 +1973,7 @@ type ChangeProviderPropertyCookie struct {
// ChangeProviderProperty sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func ChangeProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie {
+func ChangeProviderProperty(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, Format, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -1987,8 +1985,8 @@ func ChangeProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom
}
// ChangeProviderPropertyChecked sends a checked request.
-// If an error occurs, it can be retrieved using ChangeProviderPropertyCookie.Check()
-func ChangeProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie {
+// If an error occurs, it can be retrieved using ChangeProviderPropertyCookie.Check.
+func ChangeProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, Format, Mode byte, NumItems uint32, Data []byte) ChangeProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -2005,9 +2003,8 @@ func (cook ChangeProviderPropertyCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for ChangeProviderProperty
-// changeProviderPropertyRequest writes a ChangeProviderProperty request to a byte slice.
-func changeProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, Format byte, Mode byte, NumItems uint32, Data []byte) []byte {
+// changeProviderPropertyRequest writes a ChangeProviderProperty request to a byte slice for transfer.
+func changeProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, Format, Mode byte, NumItems uint32, Data []byte) []byte {
size := xgb.Pad((24 + xgb.Pad(((int(NumItems) * (int(Format) / 8)) * 1))))
b := 0
buf := make([]byte, size)
@@ -2056,7 +2053,7 @@ type ConfigureOutputPropertyCookie struct {
// ConfigureOutputProperty sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func ConfigureOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureOutputPropertyCookie {
+func ConfigureOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Pending, Range bool, Values []int32) ConfigureOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -2068,8 +2065,8 @@ func ConfigureOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, P
}
// ConfigureOutputPropertyChecked sends a checked request.
-// If an error occurs, it can be retrieved using ConfigureOutputPropertyCookie.Check()
-func ConfigureOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureOutputPropertyCookie {
+// If an error occurs, it can be retrieved using ConfigureOutputPropertyCookie.Check.
+func ConfigureOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom, Pending, Range bool, Values []int32) ConfigureOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -2086,9 +2083,8 @@ func (cook ConfigureOutputPropertyCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for ConfigureOutputProperty
-// configureOutputPropertyRequest writes a ConfigureOutputProperty request to a byte slice.
-func configureOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom, Pending bool, Range bool, Values []int32) []byte {
+// configureOutputPropertyRequest writes a ConfigureOutputProperty request to a byte slice for transfer.
+func configureOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom, Pending, Range bool, Values []int32) []byte {
size := xgb.Pad((16 + xgb.Pad((len(Values) * 4))))
b := 0
buf := make([]byte, size)
@@ -2141,7 +2137,7 @@ type ConfigureProviderPropertyCookie struct {
// ConfigureProviderProperty sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureProviderPropertyCookie {
+func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending, Range bool, Values []int32) ConfigureProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -2153,8 +2149,8 @@ func ConfigureProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.A
}
// ConfigureProviderPropertyChecked sends a checked request.
-// If an error occurs, it can be retrieved using ConfigureProviderPropertyCookie.Check()
-func ConfigureProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) ConfigureProviderPropertyCookie {
+// If an error occurs, it can be retrieved using ConfigureProviderPropertyCookie.Check.
+func ConfigureProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending, Range bool, Values []int32) ConfigureProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -2171,9 +2167,8 @@ func (cook ConfigureProviderPropertyCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for ConfigureProviderProperty
-// configureProviderPropertyRequest writes a ConfigureProviderProperty request to a byte slice.
-func configureProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending bool, Range bool, Values []int32) []byte {
+// configureProviderPropertyRequest writes a ConfigureProviderProperty request to a byte slice for transfer.
+func configureProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom, Pending, Range bool, Values []int32) []byte {
size := xgb.Pad((16 + xgb.Pad((len(Values) * 4))))
b := 0
buf := make([]byte, size)
@@ -2225,7 +2220,7 @@ type CreateModeCookie struct {
}
// CreateMode sends a checked request.
-// If an error occurs, it will be returned with the reply by calling CreateModeCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling CreateModeCookie.Reply.
func CreateMode(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) CreateModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2292,8 +2287,7 @@ func createModeReply(buf []byte) *CreateModeReply {
return v
}
-// Write request to wire for CreateMode
-// createModeRequest writes a CreateMode request to a byte slice.
+// createModeRequest writes a CreateMode request to a byte slice for transfer.
func createModeRequest(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) []byte {
size := xgb.Pad((40 + xgb.Pad((len(Name) * 1))))
b := 0
@@ -2344,7 +2338,7 @@ func DeleteMonitor(c *xgb.Conn, Window xproto.Window, Name xproto.Atom) DeleteMo
}
// DeleteMonitorChecked sends a checked request.
-// If an error occurs, it can be retrieved using DeleteMonitorCookie.Check()
+// If an error occurs, it can be retrieved using DeleteMonitorCookie.Check.
func DeleteMonitorChecked(c *xgb.Conn, Window xproto.Window, Name xproto.Atom) DeleteMonitorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2362,8 +2356,7 @@ func (cook DeleteMonitorCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DeleteMonitor
-// deleteMonitorRequest writes a DeleteMonitor request to a byte slice.
+// deleteMonitorRequest writes a DeleteMonitor request to a byte slice for transfer.
func deleteMonitorRequest(c *xgb.Conn, Window xproto.Window, Name xproto.Atom) []byte {
size := 12
b := 0
@@ -2408,7 +2401,7 @@ func DeleteOutputMode(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCoo
}
// DeleteOutputModeChecked sends a checked request.
-// If an error occurs, it can be retrieved using DeleteOutputModeCookie.Check()
+// If an error occurs, it can be retrieved using DeleteOutputModeCookie.Check.
func DeleteOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2426,8 +2419,7 @@ func (cook DeleteOutputModeCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DeleteOutputMode
-// deleteOutputModeRequest writes a DeleteOutputMode request to a byte slice.
+// deleteOutputModeRequest writes a DeleteOutputMode request to a byte slice for transfer.
func deleteOutputModeRequest(c *xgb.Conn, Output Output, Mode Mode) []byte {
size := 12
b := 0
@@ -2472,7 +2464,7 @@ func DeleteOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) Dele
}
// DeleteOutputPropertyChecked sends a checked request.
-// If an error occurs, it can be retrieved using DeleteOutputPropertyCookie.Check()
+// If an error occurs, it can be retrieved using DeleteOutputPropertyCookie.Check.
func DeleteOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom) DeleteOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2490,8 +2482,7 @@ func (cook DeleteOutputPropertyCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DeleteOutputProperty
-// deleteOutputPropertyRequest writes a DeleteOutputProperty request to a byte slice.
+// deleteOutputPropertyRequest writes a DeleteOutputProperty request to a byte slice for transfer.
func deleteOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom) []byte {
size := 12
b := 0
@@ -2536,7 +2527,7 @@ func DeleteProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom
}
// DeleteProviderPropertyChecked sends a checked request.
-// If an error occurs, it can be retrieved using DeleteProviderPropertyCookie.Check()
+// If an error occurs, it can be retrieved using DeleteProviderPropertyCookie.Check.
func DeleteProviderPropertyChecked(c *xgb.Conn, Provider Provider, Property xproto.Atom) DeleteProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2554,8 +2545,7 @@ func (cook DeleteProviderPropertyCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DeleteProviderProperty
-// deleteProviderPropertyRequest writes a DeleteProviderProperty request to a byte slice.
+// deleteProviderPropertyRequest writes a DeleteProviderProperty request to a byte slice for transfer.
func deleteProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom) []byte {
size := 12
b := 0
@@ -2600,7 +2590,7 @@ func DestroyMode(c *xgb.Conn, Mode Mode) DestroyModeCookie {
}
// DestroyModeChecked sends a checked request.
-// If an error occurs, it can be retrieved using DestroyModeCookie.Check()
+// If an error occurs, it can be retrieved using DestroyModeCookie.Check.
func DestroyModeChecked(c *xgb.Conn, Mode Mode) DestroyModeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2618,8 +2608,7 @@ func (cook DestroyModeCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DestroyMode
-// destroyModeRequest writes a DestroyMode request to a byte slice.
+// destroyModeRequest writes a DestroyMode request to a byte slice for transfer.
func destroyModeRequest(c *xgb.Conn, Mode Mode) []byte {
size := 8
b := 0
@@ -2648,7 +2637,7 @@ type GetCrtcGammaCookie struct {
}
// GetCrtcGamma sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetCrtcGammaCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetCrtcGammaCookie.Reply.
func GetCrtcGamma(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2736,8 +2725,7 @@ func getCrtcGammaReply(buf []byte) *GetCrtcGammaReply {
return v
}
-// Write request to wire for GetCrtcGamma
-// getCrtcGammaRequest writes a GetCrtcGamma request to a byte slice.
+// getCrtcGammaRequest writes a GetCrtcGamma request to a byte slice for transfer.
func getCrtcGammaRequest(c *xgb.Conn, Crtc Crtc) []byte {
size := 8
b := 0
@@ -2766,7 +2754,7 @@ type GetCrtcGammaSizeCookie struct {
}
// GetCrtcGammaSize sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetCrtcGammaSizeCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetCrtcGammaSizeCookie.Reply.
func GetCrtcGammaSize(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2833,8 +2821,7 @@ func getCrtcGammaSizeReply(buf []byte) *GetCrtcGammaSizeReply {
return v
}
-// Write request to wire for GetCrtcGammaSize
-// getCrtcGammaSizeRequest writes a GetCrtcGammaSize request to a byte slice.
+// getCrtcGammaSizeRequest writes a GetCrtcGammaSize request to a byte slice for transfer.
func getCrtcGammaSizeRequest(c *xgb.Conn, Crtc Crtc) []byte {
size := 8
b := 0
@@ -2863,7 +2850,7 @@ type GetCrtcInfoCookie struct {
}
// GetCrtcInfo sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetCrtcInfoCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetCrtcInfoCookie.Reply.
func GetCrtcInfo(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) GetCrtcInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -2978,8 +2965,7 @@ func getCrtcInfoReply(buf []byte) *GetCrtcInfoReply {
return v
}
-// Write request to wire for GetCrtcInfo
-// getCrtcInfoRequest writes a GetCrtcInfo request to a byte slice.
+// getCrtcInfoRequest writes a GetCrtcInfo request to a byte slice for transfer.
func getCrtcInfoRequest(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) []byte {
size := 12
b := 0
@@ -3011,7 +2997,7 @@ type GetCrtcTransformCookie struct {
}
// GetCrtcTransform sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetCrtcTransformCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetCrtcTransformCookie.Reply.
func GetCrtcTransform(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -3145,8 +3131,7 @@ func getCrtcTransformReply(buf []byte) *GetCrtcTransformReply {
return v
}
-// Write request to wire for GetCrtcTransform
-// getCrtcTransformRequest writes a GetCrtcTransform request to a byte slice.
+// getCrtcTransformRequest writes a GetCrtcTransform request to a byte slice for transfer.
func getCrtcTransformRequest(c *xgb.Conn, Crtc Crtc) []byte {
size := 8
b := 0
@@ -3175,7 +3160,7 @@ type GetMonitorsCookie struct {
}
// GetMonitors sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetMonitorsCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetMonitorsCookie.Reply.
func GetMonitors(c *xgb.Conn, Window xproto.Window, GetActive bool) GetMonitorsCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -3254,8 +3239,7 @@ func getMonitorsReply(buf []byte) *GetMonitorsReply {
return v
}
-// Write request to wire for GetMonitors
-// getMonitorsRequest writes a GetMonitors request to a byte slice.
+// getMonitorsRequest writes a GetMonitors request to a byte slice for transfer.
func getMonitorsRequest(c *xgb.Conn, Window xproto.Window, GetActive bool) []byte {
size := 12
b := 0
@@ -3291,7 +3275,7 @@ type GetOutputInfoCookie struct {
}
// GetOutputInfo sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetOutputInfoCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetOutputInfoCookie.Reply.
func GetOutputInfo(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) GetOutputInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -3422,8 +3406,7 @@ func getOutputInfoReply(buf []byte) *GetOutputInfoReply {
return v
}
-// Write request to wire for GetOutputInfo
-// getOutputInfoRequest writes a GetOutputInfo request to a byte slice.
+// getOutputInfoRequest writes a GetOutputInfo request to a byte slice for transfer.
func getOutputInfoRequest(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) []byte {
size := 12
b := 0
@@ -3455,7 +3438,7 @@ type GetOutputPrimaryCookie struct {
}
// GetOutputPrimary sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetOutputPrimaryCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetOutputPrimaryCookie.Reply.
func GetOutputPrimary(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -3519,8 +3502,7 @@ func getOutputPrimaryReply(buf []byte) *GetOutputPrimaryReply {
return v
}
-// Write request to wire for GetOutputPrimary
-// getOutputPrimaryRequest writes a GetOutputPrimary request to a byte slice.
+// getOutputPrimaryRequest writes a GetOutputPrimary request to a byte slice for transfer.
func getOutputPrimaryRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@@ -3549,8 +3531,8 @@ type GetOutputPropertyCookie struct {
}
// GetOutputProperty sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetOutputPropertyCookie.Reply()
-func GetOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetOutputPropertyCookie {
+// If an error occurs, it will be returned with the reply by calling GetOutputPropertyCookie.Reply.
+func GetOutputProperty(c *xgb.Conn, Output Output, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) GetOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -3563,7 +3545,7 @@ func GetOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom, Type xp
// GetOutputPropertyUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func GetOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetOutputPropertyCookie {
+func GetOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) GetOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -3630,9 +3612,8 @@ func getOutputPropertyReply(buf []byte) *GetOutputPropertyReply {
return v
}
-// Write request to wire for GetOutputProperty
-// getOutputPropertyRequest writes a GetOutputProperty request to a byte slice.
-func getOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) []byte {
+// getOutputPropertyRequest writes a GetOutputProperty request to a byte slice for transfer.
+func getOutputPropertyRequest(c *xgb.Conn, Output Output, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) []byte {
size := 28
b := 0
buf := make([]byte, size)
@@ -3688,7 +3669,7 @@ type GetPanningCookie struct {
}
// GetPanning sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetPanningCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetPanningCookie.Reply.
func GetPanning(c *xgb.Conn, Crtc Crtc) GetPanningCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -3801,8 +3782,7 @@ func getPanningReply(buf []byte) *GetPanningReply {
return v
}
-// Write request to wire for GetPanning
-// getPanningRequest writes a GetPanning request to a byte slice.
+// getPanningRequest writes a GetPanning request to a byte slice for transfer.
func getPanningRequest(c *xgb.Conn, Crtc Crtc) []byte {
size := 8
b := 0
@@ -3831,7 +3811,7 @@ type GetProviderInfoCookie struct {
}
// GetProviderInfo sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetProviderInfoCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetProviderInfoCookie.Reply.
func GetProviderInfo(c *xgb.Conn, Provider Provider, ConfigTimestamp xproto.Timestamp) GetProviderInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -3955,8 +3935,7 @@ func getProviderInfoReply(buf []byte) *GetProviderInfoReply {
return v
}
-// Write request to wire for GetProviderInfo
-// getProviderInfoRequest writes a GetProviderInfo request to a byte slice.
+// getProviderInfoRequest writes a GetProviderInfo request to a byte slice for transfer.
func getProviderInfoRequest(c *xgb.Conn, Provider Provider, ConfigTimestamp xproto.Timestamp) []byte {
size := 12
b := 0
@@ -3988,8 +3967,8 @@ type GetProviderPropertyCookie struct {
}
// GetProviderProperty sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetProviderPropertyCookie.Reply()
-func GetProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetProviderPropertyCookie {
+// If an error occurs, it will be returned with the reply by calling GetProviderPropertyCookie.Reply.
+func GetProviderProperty(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) GetProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -4002,7 +3981,7 @@ func GetProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom, T
// GetProviderPropertyUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func GetProviderPropertyUnchecked(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) GetProviderPropertyCookie {
+func GetProviderPropertyUnchecked(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) GetProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -4069,9 +4048,8 @@ func getProviderPropertyReply(buf []byte) *GetProviderPropertyReply {
return v
}
-// Write request to wire for GetProviderProperty
-// getProviderPropertyRequest writes a GetProviderProperty request to a byte slice.
-func getProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom, Type xproto.Atom, LongOffset uint32, LongLength uint32, Delete bool, Pending bool) []byte {
+// getProviderPropertyRequest writes a GetProviderProperty request to a byte slice for transfer.
+func getProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property, Type xproto.Atom, LongOffset, LongLength uint32, Delete, Pending bool) []byte {
size := 28
b := 0
buf := make([]byte, size)
@@ -4127,7 +4105,7 @@ type GetProvidersCookie struct {
}
// GetProviders sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetProvidersCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetProvidersCookie.Reply.
func GetProviders(c *xgb.Conn, Window xproto.Window) GetProvidersCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -4205,8 +4183,7 @@ func getProvidersReply(buf []byte) *GetProvidersReply {
return v
}
-// Write request to wire for GetProviders
-// getProvidersRequest writes a GetProviders request to a byte slice.
+// getProvidersRequest writes a GetProviders request to a byte slice for transfer.
func getProvidersRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@@ -4235,7 +4212,7 @@ type GetScreenInfoCookie struct {
}
// GetScreenInfo sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetScreenInfoCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetScreenInfoCookie.Reply.
func GetScreenInfo(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -4339,8 +4316,7 @@ func getScreenInfoReply(buf []byte) *GetScreenInfoReply {
return v
}
-// Write request to wire for GetScreenInfo
-// getScreenInfoRequest writes a GetScreenInfo request to a byte slice.
+// getScreenInfoRequest writes a GetScreenInfo request to a byte slice for transfer.
func getScreenInfoRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@@ -4369,7 +4345,7 @@ type GetScreenResourcesCookie struct {
}
// GetScreenResources sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCookie.Reply.
func GetScreenResources(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -4479,8 +4455,7 @@ func getScreenResourcesReply(buf []byte) *GetScreenResourcesReply {
return v
}
-// Write request to wire for GetScreenResources
-// getScreenResourcesRequest writes a GetScreenResources request to a byte slice.
+// getScreenResourcesRequest writes a GetScreenResources request to a byte slice for transfer.
func getScreenResourcesRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@@ -4509,7 +4484,7 @@ type GetScreenResourcesCurrentCookie struct {
}
// GetScreenResourcesCurrent sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCurrentCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCurrentCookie.Reply.
func GetScreenResourcesCurrent(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCurrentCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -4619,8 +4594,7 @@ func getScreenResourcesCurrentReply(buf []byte) *GetScreenResourcesCurrentReply
return v
}
-// Write request to wire for GetScreenResourcesCurrent
-// getScreenResourcesCurrentRequest writes a GetScreenResourcesCurrent request to a byte slice.
+// getScreenResourcesCurrentRequest writes a GetScreenResourcesCurrent request to a byte slice for transfer.
func getScreenResourcesCurrentRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@@ -4649,7 +4623,7 @@ type GetScreenSizeRangeCookie struct {
}
// GetScreenSizeRange sends a checked request.
-// If an error occurs, it will be returned with the reply by calling GetScreenSizeRangeCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling GetScreenSizeRangeCookie.Reply.
func GetScreenSizeRange(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -4728,8 +4702,7 @@ func getScreenSizeRangeReply(buf []byte) *GetScreenSizeRangeReply {
return v
}
-// Write request to wire for GetScreenSizeRange
-// getScreenSizeRangeRequest writes a GetScreenSizeRange request to a byte slice.
+// getScreenSizeRangeRequest writes a GetScreenSizeRange request to a byte slice for transfer.
func getScreenSizeRangeRequest(c *xgb.Conn, Window xproto.Window) []byte {
size := 8
b := 0
@@ -4758,7 +4731,7 @@ type ListOutputPropertiesCookie struct {
}
// ListOutputProperties sends a checked request.
-// If an error occurs, it will be returned with the reply by calling ListOutputPropertiesCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling ListOutputPropertiesCookie.Reply.
func ListOutputProperties(c *xgb.Conn, Output Output) ListOutputPropertiesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -4832,8 +4805,7 @@ func listOutputPropertiesReply(buf []byte) *ListOutputPropertiesReply {
return v
}
-// Write request to wire for ListOutputProperties
-// listOutputPropertiesRequest writes a ListOutputProperties request to a byte slice.
+// listOutputPropertiesRequest writes a ListOutputProperties request to a byte slice for transfer.
func listOutputPropertiesRequest(c *xgb.Conn, Output Output) []byte {
size := 8
b := 0
@@ -4862,7 +4834,7 @@ type ListProviderPropertiesCookie struct {
}
// ListProviderProperties sends a checked request.
-// If an error occurs, it will be returned with the reply by calling ListProviderPropertiesCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling ListProviderPropertiesCookie.Reply.
func ListProviderProperties(c *xgb.Conn, Provider Provider) ListProviderPropertiesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -4936,8 +4908,7 @@ func listProviderPropertiesReply(buf []byte) *ListProviderPropertiesReply {
return v
}
-// Write request to wire for ListProviderProperties
-// listProviderPropertiesRequest writes a ListProviderProperties request to a byte slice.
+// listProviderPropertiesRequest writes a ListProviderProperties request to a byte slice for transfer.
func listProviderPropertiesRequest(c *xgb.Conn, Provider Provider) []byte {
size := 8
b := 0
@@ -4966,7 +4937,7 @@ type QueryOutputPropertyCookie struct {
}
// QueryOutputProperty sends a checked request.
-// If an error occurs, it will be returned with the reply by calling QueryOutputPropertyCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling QueryOutputPropertyCookie.Reply.
func QueryOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) QueryOutputPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -5060,8 +5031,7 @@ func queryOutputPropertyReply(buf []byte) *QueryOutputPropertyReply {
return v
}
-// Write request to wire for QueryOutputProperty
-// queryOutputPropertyRequest writes a QueryOutputProperty request to a byte slice.
+// queryOutputPropertyRequest writes a QueryOutputProperty request to a byte slice for transfer.
func queryOutputPropertyRequest(c *xgb.Conn, Output Output, Property xproto.Atom) []byte {
size := 12
b := 0
@@ -5093,7 +5063,7 @@ type QueryProviderPropertyCookie struct {
}
// QueryProviderProperty sends a checked request.
-// If an error occurs, it will be returned with the reply by calling QueryProviderPropertyCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling QueryProviderPropertyCookie.Reply.
func QueryProviderProperty(c *xgb.Conn, Provider Provider, Property xproto.Atom) QueryProviderPropertyCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -5187,8 +5157,7 @@ func queryProviderPropertyReply(buf []byte) *QueryProviderPropertyReply {
return v
}
-// Write request to wire for QueryProviderProperty
-// queryProviderPropertyRequest writes a QueryProviderProperty request to a byte slice.
+// queryProviderPropertyRequest writes a QueryProviderProperty request to a byte slice for transfer.
func queryProviderPropertyRequest(c *xgb.Conn, Provider Provider, Property xproto.Atom) []byte {
size := 12
b := 0
@@ -5220,8 +5189,8 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
-// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
-func QueryVersion(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie {
+// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
+func QueryVersion(c *xgb.Conn, MajorVersion, MinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5234,7 +5203,7 @@ func QueryVersion(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVe
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func QueryVersionUnchecked(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) QueryVersionCookie {
+func QueryVersionUnchecked(c *xgb.Conn, MajorVersion, MinorVersion uint32) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5291,9 +5260,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
-// Write request to wire for QueryVersion
-// queryVersionRequest writes a QueryVersion request to a byte slice.
-func queryVersionRequest(c *xgb.Conn, MajorVersion uint32, MinorVersion uint32) []byte {
+// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
+func queryVersionRequest(c *xgb.Conn, MajorVersion, MinorVersion uint32) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -5337,7 +5305,7 @@ func SelectInput(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCo
}
// SelectInputChecked sends a checked request.
-// If an error occurs, it can be retrieved using SelectInputCookie.Check()
+// If an error occurs, it can be retrieved using SelectInputCookie.Check.
func SelectInputChecked(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -5355,8 +5323,7 @@ func (cook SelectInputCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SelectInput
-// selectInputRequest writes a SelectInput request to a byte slice.
+// selectInputRequest writes a SelectInput request to a byte slice for transfer.
func selectInputRequest(c *xgb.Conn, Window xproto.Window, Enable uint16) []byte {
size := 12
b := 0
@@ -5390,8 +5357,8 @@ type SetCrtcConfigCookie struct {
}
// SetCrtcConfig sends a checked request.
-// If an error occurs, it will be returned with the reply by calling SetCrtcConfigCookie.Reply()
-func SetCrtcConfig(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie {
+// If an error occurs, it will be returned with the reply by calling SetCrtcConfigCookie.Reply.
+func SetCrtcConfig(c *xgb.Conn, Crtc Crtc, Timestamp, ConfigTimestamp xproto.Timestamp, X, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5404,7 +5371,7 @@ func SetCrtcConfig(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTim
// SetCrtcConfigUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func SetCrtcConfigUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie {
+func SetCrtcConfigUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp, ConfigTimestamp xproto.Timestamp, X, Y int16, Mode Mode, Rotation uint16, Outputs []Output) SetCrtcConfigCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5458,9 +5425,8 @@ func setCrtcConfigReply(buf []byte) *SetCrtcConfigReply {
return v
}
-// Write request to wire for SetCrtcConfig
-// setCrtcConfigRequest writes a SetCrtcConfig request to a byte slice.
-func setCrtcConfigRequest(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, X int16, Y int16, Mode Mode, Rotation uint16, Outputs []Output) []byte {
+// setCrtcConfigRequest writes a SetCrtcConfig request to a byte slice for transfer.
+func setCrtcConfigRequest(c *xgb.Conn, Crtc Crtc, Timestamp, ConfigTimestamp xproto.Timestamp, X, Y int16, Mode Mode, Rotation uint16, Outputs []Output) []byte {
size := xgb.Pad((28 + xgb.Pad((len(Outputs) * 4))))
b := 0
buf := make([]byte, size)
@@ -5514,7 +5480,7 @@ type SetCrtcGammaCookie struct {
// SetCrtcGamma sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func SetCrtcGamma(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetCrtcGammaCookie {
+func SetCrtcGamma(c *xgb.Conn, Crtc Crtc, Size uint16, Red, Green, Blue []uint16) SetCrtcGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5526,8 +5492,8 @@ func SetCrtcGamma(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uin
}
// SetCrtcGammaChecked sends a checked request.
-// If an error occurs, it can be retrieved using SetCrtcGammaCookie.Check()
-func SetCrtcGammaChecked(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetCrtcGammaCookie {
+// If an error occurs, it can be retrieved using SetCrtcGammaCookie.Check.
+func SetCrtcGammaChecked(c *xgb.Conn, Crtc Crtc, Size uint16, Red, Green, Blue []uint16) SetCrtcGammaCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5544,9 +5510,8 @@ func (cook SetCrtcGammaCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SetCrtcGamma
-// setCrtcGammaRequest writes a SetCrtcGamma request to a byte slice.
-func setCrtcGammaRequest(c *xgb.Conn, Crtc Crtc, Size uint16, Red []uint16, Green []uint16, Blue []uint16) []byte {
+// setCrtcGammaRequest writes a SetCrtcGamma request to a byte slice for transfer.
+func setCrtcGammaRequest(c *xgb.Conn, Crtc Crtc, Size uint16, Red, Green, Blue []uint16) []byte {
size := xgb.Pad((((12 + xgb.Pad((int(Size) * 2))) + xgb.Pad((int(Size) * 2))) + xgb.Pad((int(Size) * 2))))
b := 0
buf := make([]byte, size)
@@ -5607,7 +5572,7 @@ func SetCrtcTransform(c *xgb.Conn, Crtc Crtc, Transform render.Transform, Filter
}
// SetCrtcTransformChecked sends a checked request.
-// If an error occurs, it can be retrieved using SetCrtcTransformCookie.Check()
+// If an error occurs, it can be retrieved using SetCrtcTransformCookie.Check.
func SetCrtcTransformChecked(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) SetCrtcTransformCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -5625,8 +5590,7 @@ func (cook SetCrtcTransformCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SetCrtcTransform
-// setCrtcTransformRequest writes a SetCrtcTransform request to a byte slice.
+// setCrtcTransformRequest writes a SetCrtcTransform request to a byte slice for transfer.
func setCrtcTransformRequest(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) []byte {
size := xgb.Pad((((48 + xgb.Pad((int(FilterLen) * 1))) + 4) + xgb.Pad((len(FilterParams) * 4))))
b := 0
@@ -5691,7 +5655,7 @@ func SetMonitor(c *xgb.Conn, Window xproto.Window, Monitorinfo MonitorInfo) SetM
}
// SetMonitorChecked sends a checked request.
-// If an error occurs, it can be retrieved using SetMonitorCookie.Check()
+// If an error occurs, it can be retrieved using SetMonitorCookie.Check.
func SetMonitorChecked(c *xgb.Conn, Window xproto.Window, Monitorinfo MonitorInfo) SetMonitorCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -5709,8 +5673,7 @@ func (cook SetMonitorCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SetMonitor
-// setMonitorRequest writes a SetMonitor request to a byte slice.
+// setMonitorRequest writes a SetMonitor request to a byte slice for transfer.
func setMonitorRequest(c *xgb.Conn, Window xproto.Window, Monitorinfo MonitorInfo) []byte {
size := xgb.Pad((8 + (24 + xgb.Pad((int(Monitorinfo.NOutput) * 4)))))
b := 0
@@ -5758,7 +5721,7 @@ func SetOutputPrimary(c *xgb.Conn, Window xproto.Window, Output Output) SetOutpu
}
// SetOutputPrimaryChecked sends a checked request.
-// If an error occurs, it can be retrieved using SetOutputPrimaryCookie.Check()
+// If an error occurs, it can be retrieved using SetOutputPrimaryCookie.Check.
func SetOutputPrimaryChecked(c *xgb.Conn, Window xproto.Window, Output Output) SetOutputPrimaryCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -5776,8 +5739,7 @@ func (cook SetOutputPrimaryCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SetOutputPrimary
-// setOutputPrimaryRequest writes a SetOutputPrimary request to a byte slice.
+// setOutputPrimaryRequest writes a SetOutputPrimary request to a byte slice for transfer.
func setOutputPrimaryRequest(c *xgb.Conn, Window xproto.Window, Output Output) []byte {
size := 12
b := 0
@@ -5809,8 +5771,8 @@ type SetPanningCookie struct {
}
// SetPanning sends a checked request.
-// If an error occurs, it will be returned with the reply by calling SetPanningCookie.Reply()
-func SetPanning(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16, Top uint16, Width uint16, Height uint16, TrackLeft uint16, TrackTop uint16, TrackWidth uint16, TrackHeight uint16, BorderLeft int16, BorderTop int16, BorderRight int16, BorderBottom int16) SetPanningCookie {
+// If an error occurs, it will be returned with the reply by calling SetPanningCookie.Reply.
+func SetPanning(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left, Top, Width, Height, TrackLeft, TrackTop, TrackWidth, TrackHeight uint16, BorderLeft, BorderTop, BorderRight, BorderBottom int16) SetPanningCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5823,7 +5785,7 @@ func SetPanning(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16,
// SetPanningUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func SetPanningUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16, Top uint16, Width uint16, Height uint16, TrackLeft uint16, TrackTop uint16, TrackWidth uint16, TrackHeight uint16, BorderLeft int16, BorderTop int16, BorderRight int16, BorderBottom int16) SetPanningCookie {
+func SetPanningUnchecked(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left, Top, Width, Height, TrackLeft, TrackTop, TrackWidth, TrackHeight uint16, BorderLeft, BorderTop, BorderRight, BorderBottom int16) SetPanningCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5874,9 +5836,8 @@ func setPanningReply(buf []byte) *SetPanningReply {
return v
}
-// Write request to wire for SetPanning
-// setPanningRequest writes a SetPanning request to a byte slice.
-func setPanningRequest(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left uint16, Top uint16, Width uint16, Height uint16, TrackLeft uint16, TrackTop uint16, TrackWidth uint16, TrackHeight uint16, BorderLeft int16, BorderTop int16, BorderRight int16, BorderBottom int16) []byte {
+// setPanningRequest writes a SetPanning request to a byte slice for transfer.
+func setPanningRequest(c *xgb.Conn, Crtc Crtc, Timestamp xproto.Timestamp, Left, Top, Width, Height, TrackLeft, TrackTop, TrackWidth, TrackHeight uint16, BorderLeft, BorderTop, BorderRight, BorderBottom int16) []byte {
size := 36
b := 0
buf := make([]byte, size)
@@ -5944,7 +5905,7 @@ type SetProviderOffloadSinkCookie struct {
// SetProviderOffloadSink sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func SetProviderOffloadSink(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie {
+func SetProviderOffloadSink(c *xgb.Conn, Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5956,8 +5917,8 @@ func SetProviderOffloadSink(c *xgb.Conn, Provider Provider, SinkProvider Provide
}
// SetProviderOffloadSinkChecked sends a checked request.
-// If an error occurs, it can be retrieved using SetProviderOffloadSinkCookie.Check()
-func SetProviderOffloadSinkChecked(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie {
+// If an error occurs, it can be retrieved using SetProviderOffloadSinkCookie.Check.
+func SetProviderOffloadSinkChecked(c *xgb.Conn, Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOffloadSinkCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -5974,9 +5935,8 @@ func (cook SetProviderOffloadSinkCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SetProviderOffloadSink
-// setProviderOffloadSinkRequest writes a SetProviderOffloadSink request to a byte slice.
-func setProviderOffloadSinkRequest(c *xgb.Conn, Provider Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) []byte {
+// setProviderOffloadSinkRequest writes a SetProviderOffloadSink request to a byte slice for transfer.
+func setProviderOffloadSinkRequest(c *xgb.Conn, Provider, SinkProvider Provider, ConfigTimestamp xproto.Timestamp) []byte {
size := 16
b := 0
buf := make([]byte, size)
@@ -6011,7 +5971,7 @@ type SetProviderOutputSourceCookie struct {
// SetProviderOutputSource sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func SetProviderOutputSource(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie {
+func SetProviderOutputSource(c *xgb.Conn, Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -6023,8 +5983,8 @@ func SetProviderOutputSource(c *xgb.Conn, Provider Provider, SourceProvider Prov
}
// SetProviderOutputSourceChecked sends a checked request.
-// If an error occurs, it can be retrieved using SetProviderOutputSourceCookie.Check()
-func SetProviderOutputSourceChecked(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie {
+// If an error occurs, it can be retrieved using SetProviderOutputSourceCookie.Check.
+func SetProviderOutputSourceChecked(c *xgb.Conn, Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) SetProviderOutputSourceCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -6041,9 +6001,8 @@ func (cook SetProviderOutputSourceCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SetProviderOutputSource
-// setProviderOutputSourceRequest writes a SetProviderOutputSource request to a byte slice.
-func setProviderOutputSourceRequest(c *xgb.Conn, Provider Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) []byte {
+// setProviderOutputSourceRequest writes a SetProviderOutputSource request to a byte slice for transfer.
+func setProviderOutputSourceRequest(c *xgb.Conn, Provider, SourceProvider Provider, ConfigTimestamp xproto.Timestamp) []byte {
size := 16
b := 0
buf := make([]byte, size)
@@ -6077,8 +6036,8 @@ type SetScreenConfigCookie struct {
}
// SetScreenConfig sends a checked request.
-// If an error occurs, it will be returned with the reply by calling SetScreenConfigCookie.Reply()
-func SetScreenConfig(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) SetScreenConfigCookie {
+// If an error occurs, it will be returned with the reply by calling SetScreenConfigCookie.Reply.
+func SetScreenConfig(c *xgb.Conn, Window xproto.Window, Timestamp, ConfigTimestamp xproto.Timestamp, SizeID, Rotation, Rate uint16) SetScreenConfigCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -6091,7 +6050,7 @@ func SetScreenConfig(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timesta
// SetScreenConfigUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func SetScreenConfigUnchecked(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) SetScreenConfigCookie {
+func SetScreenConfigUnchecked(c *xgb.Conn, Window xproto.Window, Timestamp, ConfigTimestamp xproto.Timestamp, SizeID, Rotation, Rate uint16) SetScreenConfigCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -6157,9 +6116,8 @@ func setScreenConfigReply(buf []byte) *SetScreenConfigReply {
return v
}
-// Write request to wire for SetScreenConfig
-// setScreenConfigRequest writes a SetScreenConfig request to a byte slice.
-func setScreenConfigRequest(c *xgb.Conn, Window xproto.Window, Timestamp xproto.Timestamp, ConfigTimestamp xproto.Timestamp, SizeID uint16, Rotation uint16, Rate uint16) []byte {
+// setScreenConfigRequest writes a SetScreenConfig request to a byte slice for transfer.
+func setScreenConfigRequest(c *xgb.Conn, Window xproto.Window, Timestamp, ConfigTimestamp xproto.Timestamp, SizeID, Rotation, Rate uint16) []byte {
size := 24
b := 0
buf := make([]byte, size)
@@ -6205,7 +6163,7 @@ type SetScreenSizeCookie struct {
// SetScreenSize sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func SetScreenSize(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) SetScreenSizeCookie {
+func SetScreenSize(c *xgb.Conn, Window xproto.Window, Width, Height uint16, MmWidth, MmHeight uint32) SetScreenSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -6217,8 +6175,8 @@ func SetScreenSize(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint1
}
// SetScreenSizeChecked sends a checked request.
-// If an error occurs, it can be retrieved using SetScreenSizeCookie.Check()
-func SetScreenSizeChecked(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) SetScreenSizeCookie {
+// If an error occurs, it can be retrieved using SetScreenSizeCookie.Check.
+func SetScreenSizeChecked(c *xgb.Conn, Window xproto.Window, Width, Height uint16, MmWidth, MmHeight uint32) SetScreenSizeCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["RANDR"]; !ok {
@@ -6235,9 +6193,8 @@ func (cook SetScreenSizeCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for SetScreenSize
-// setScreenSizeRequest writes a SetScreenSize request to a byte slice.
-func setScreenSizeRequest(c *xgb.Conn, Window xproto.Window, Width uint16, Height uint16, MmWidth uint32, MmHeight uint32) []byte {
+// setScreenSizeRequest writes a SetScreenSize request to a byte slice for transfer.
+func setScreenSizeRequest(c *xgb.Conn, Window xproto.Window, Width, Height uint16, MmWidth, MmHeight uint32) []byte {
size := 20
b := 0
buf := make([]byte, size)