panic when an extension request is issued before an extension has been initialized. but give a nice error message for the happy people.
This commit is contained in:
+11
-5
@@ -2,7 +2,7 @@
|
||||
package bigreq
|
||||
|
||||
/*
|
||||
This file was generated by bigreq.xml on May 11 2012 1:58:35am EDT.
|
||||
This file was generated by bigreq.xml on May 11 2012 11:57:18pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,10 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["BIG-REQUESTS"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
@@ -60,10 +64,6 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// EnableCookie is a cookie used only for Enable requests.
|
||||
type EnableCookie struct {
|
||||
*xgb.Cookie
|
||||
@@ -72,6 +72,9 @@ type EnableCookie struct {
|
||||
// Enable sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling EnableCookie.Reply()
|
||||
func Enable(c *xgb.Conn) EnableCookie {
|
||||
if _, ok := c.Extensions["BIG-REQUESTS"]; !ok {
|
||||
panic("Cannot issue request 'Enable' using the uninitialized extension 'BIG-REQUESTS'. bigreq.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(enableRequest(c), cookie)
|
||||
return EnableCookie{cookie}
|
||||
@@ -80,6 +83,9 @@ func Enable(c *xgb.Conn) EnableCookie {
|
||||
// EnableUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func EnableUnchecked(c *xgb.Conn) EnableCookie {
|
||||
if _, ok := c.Extensions["BIG-REQUESTS"]; !ok {
|
||||
panic("Cannot issue request 'Enable' using the uninitialized extension 'BIG-REQUESTS'. bigreq.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(enableRequest(c), cookie)
|
||||
return EnableCookie{cookie}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package composite
|
||||
|
||||
/*
|
||||
This file was generated by composite.xml on May 11 2012 1:58:35am EDT.
|
||||
This file was generated by composite.xml on May 11 2012 11:57:18pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -41,6 +41,16 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["Composite"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
@@ -55,16 +65,6 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
const (
|
||||
RedirectAutomatic = 0
|
||||
RedirectManual = 1
|
||||
@@ -78,6 +78,9 @@ 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, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -86,6 +89,9 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin
|
||||
// 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, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -170,6 +176,9 @@ type RedirectWindowCookie struct {
|
||||
// RedirectWindow sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func RedirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWindowCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'RedirectWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(redirectWindowRequest(c, Window, Update), cookie)
|
||||
return RedirectWindowCookie{cookie}
|
||||
@@ -178,6 +187,9 @@ func RedirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWind
|
||||
// RedirectWindowChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using RedirectWindowCookie.Check()
|
||||
func RedirectWindowChecked(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWindowCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'RedirectWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(redirectWindowRequest(c, Window, Update), cookie)
|
||||
return RedirectWindowCookie{cookie}
|
||||
@@ -224,6 +236,9 @@ type RedirectSubwindowsCookie struct {
|
||||
// RedirectSubwindows sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func RedirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) RedirectSubwindowsCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'RedirectSubwindows' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(redirectSubwindowsRequest(c, Window, Update), cookie)
|
||||
return RedirectSubwindowsCookie{cookie}
|
||||
@@ -232,6 +247,9 @@ func RedirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) Redirect
|
||||
// RedirectSubwindowsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using RedirectSubwindowsCookie.Check()
|
||||
func RedirectSubwindowsChecked(c *xgb.Conn, Window xproto.Window, Update byte) RedirectSubwindowsCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'RedirectSubwindows' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(redirectSubwindowsRequest(c, Window, Update), cookie)
|
||||
return RedirectSubwindowsCookie{cookie}
|
||||
@@ -278,6 +296,9 @@ type UnredirectWindowCookie struct {
|
||||
// UnredirectWindow sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func UnredirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectWindowCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'UnredirectWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(unredirectWindowRequest(c, Window, Update), cookie)
|
||||
return UnredirectWindowCookie{cookie}
|
||||
@@ -286,6 +307,9 @@ func UnredirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) Unredirect
|
||||
// UnredirectWindowChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using UnredirectWindowCookie.Check()
|
||||
func UnredirectWindowChecked(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectWindowCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'UnredirectWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(unredirectWindowRequest(c, Window, Update), cookie)
|
||||
return UnredirectWindowCookie{cookie}
|
||||
@@ -332,6 +356,9 @@ type UnredirectSubwindowsCookie struct {
|
||||
// UnredirectSubwindows sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func UnredirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectSubwindowsCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'UnredirectSubwindows' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(unredirectSubwindowsRequest(c, Window, Update), cookie)
|
||||
return UnredirectSubwindowsCookie{cookie}
|
||||
@@ -340,6 +367,9 @@ func UnredirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) Unredi
|
||||
// UnredirectSubwindowsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using UnredirectSubwindowsCookie.Check()
|
||||
func UnredirectSubwindowsChecked(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectSubwindowsCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'UnredirectSubwindows' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(unredirectSubwindowsRequest(c, Window, Update), cookie)
|
||||
return UnredirectSubwindowsCookie{cookie}
|
||||
@@ -386,6 +416,9 @@ type CreateRegionFromBorderClipCookie struct {
|
||||
// CreateRegionFromBorderClip sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateRegionFromBorderClip(c *xgb.Conn, Region xfixes.Region, Window xproto.Window) CreateRegionFromBorderClipCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromBorderClip' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createRegionFromBorderClipRequest(c, Region, Window), cookie)
|
||||
return CreateRegionFromBorderClipCookie{cookie}
|
||||
@@ -394,6 +427,9 @@ func CreateRegionFromBorderClip(c *xgb.Conn, Region xfixes.Region, Window xproto
|
||||
// CreateRegionFromBorderClipChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateRegionFromBorderClipCookie.Check()
|
||||
func CreateRegionFromBorderClipChecked(c *xgb.Conn, Region xfixes.Region, Window xproto.Window) CreateRegionFromBorderClipCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromBorderClip' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createRegionFromBorderClipRequest(c, Region, Window), cookie)
|
||||
return CreateRegionFromBorderClipCookie{cookie}
|
||||
@@ -438,6 +474,9 @@ type NameWindowPixmapCookie struct {
|
||||
// NameWindowPixmap sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func NameWindowPixmap(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) NameWindowPixmapCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'NameWindowPixmap' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(nameWindowPixmapRequest(c, Window, Pixmap), cookie)
|
||||
return NameWindowPixmapCookie{cookie}
|
||||
@@ -446,6 +485,9 @@ func NameWindowPixmap(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) N
|
||||
// NameWindowPixmapChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using NameWindowPixmapCookie.Check()
|
||||
func NameWindowPixmapChecked(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) NameWindowPixmapCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'NameWindowPixmap' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(nameWindowPixmapRequest(c, Window, Pixmap), cookie)
|
||||
return NameWindowPixmapCookie{cookie}
|
||||
@@ -490,6 +532,9 @@ type GetOverlayWindowCookie struct {
|
||||
// GetOverlayWindow sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetOverlayWindowCookie.Reply()
|
||||
func GetOverlayWindow(c *xgb.Conn, Window xproto.Window) GetOverlayWindowCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'GetOverlayWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getOverlayWindowRequest(c, Window), cookie)
|
||||
return GetOverlayWindowCookie{cookie}
|
||||
@@ -498,6 +543,9 @@ func GetOverlayWindow(c *xgb.Conn, Window xproto.Window) GetOverlayWindowCookie
|
||||
// GetOverlayWindowUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetOverlayWindowUnchecked(c *xgb.Conn, Window xproto.Window) GetOverlayWindowCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'GetOverlayWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getOverlayWindowRequest(c, Window), cookie)
|
||||
return GetOverlayWindowCookie{cookie}
|
||||
@@ -575,6 +623,9 @@ type ReleaseOverlayWindowCookie struct {
|
||||
// ReleaseOverlayWindow sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ReleaseOverlayWindow(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindowCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'ReleaseOverlayWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(releaseOverlayWindowRequest(c, Window), cookie)
|
||||
return ReleaseOverlayWindowCookie{cookie}
|
||||
@@ -583,6 +634,9 @@ func ReleaseOverlayWindow(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindo
|
||||
// ReleaseOverlayWindowChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ReleaseOverlayWindowCookie.Check()
|
||||
func ReleaseOverlayWindowChecked(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindowCookie {
|
||||
if _, ok := c.Extensions["COMPOSITE"]; !ok {
|
||||
panic("Cannot issue request 'ReleaseOverlayWindow' using the uninitialized extension 'Composite'. composite.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(releaseOverlayWindowRequest(c, Window), cookie)
|
||||
return ReleaseOverlayWindowCookie{cookie}
|
||||
|
||||
+43
-13
@@ -2,7 +2,7 @@
|
||||
package damage
|
||||
|
||||
/*
|
||||
This file was generated by damage.xml on May 11 2012 1:58:35am EDT.
|
||||
This file was generated by damage.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -41,18 +41,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["DAMAGE"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
@@ -65,6 +53,18 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
const (
|
||||
ReportLevelRawRectangles = 0
|
||||
ReportLevelDeltaRectangles = 1
|
||||
@@ -238,6 +238,9 @@ 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, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -246,6 +249,9 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin
|
||||
// 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, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -330,6 +336,9 @@ type CreateCookie struct {
|
||||
// Create sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Create(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) CreateCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'Create' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createRequest(c, Damage, Drawable, Level), cookie)
|
||||
return CreateCookie{cookie}
|
||||
@@ -338,6 +347,9 @@ func Create(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) Cr
|
||||
// CreateChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateCookie.Check()
|
||||
func CreateChecked(c *xgb.Conn, Damage Damage, Drawable xproto.Drawable, Level byte) CreateCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'Create' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createRequest(c, Damage, Drawable, Level), cookie)
|
||||
return CreateCookie{cookie}
|
||||
@@ -387,6 +399,9 @@ type DestroyCookie struct {
|
||||
// Destroy sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Destroy(c *xgb.Conn, Damage Damage) DestroyCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'Destroy' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyRequest(c, Damage), cookie)
|
||||
return DestroyCookie{cookie}
|
||||
@@ -395,6 +410,9 @@ func Destroy(c *xgb.Conn, Damage Damage) DestroyCookie {
|
||||
// DestroyChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyCookie.Check()
|
||||
func DestroyChecked(c *xgb.Conn, Damage Damage) DestroyCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'Destroy' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyRequest(c, Damage), cookie)
|
||||
return DestroyCookie{cookie}
|
||||
@@ -436,6 +454,9 @@ type SubtractCookie struct {
|
||||
// Subtract sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Subtract(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) SubtractCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'Subtract' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(subtractRequest(c, Damage, Repair, Parts), cookie)
|
||||
return SubtractCookie{cookie}
|
||||
@@ -444,6 +465,9 @@ func Subtract(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Reg
|
||||
// SubtractChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SubtractCookie.Check()
|
||||
func SubtractChecked(c *xgb.Conn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) SubtractCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'Subtract' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(subtractRequest(c, Damage, Repair, Parts), cookie)
|
||||
return SubtractCookie{cookie}
|
||||
@@ -491,6 +515,9 @@ type AddCookie struct {
|
||||
// Add sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Add(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) AddCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'Add' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(addRequest(c, Drawable, Region), cookie)
|
||||
return AddCookie{cookie}
|
||||
@@ -499,6 +526,9 @@ func Add(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) AddCookie
|
||||
// AddChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using AddCookie.Check()
|
||||
func AddChecked(c *xgb.Conn, Drawable xproto.Drawable, Region xfixes.Region) AddCookie {
|
||||
if _, ok := c.Extensions["DAMAGE"]; !ok {
|
||||
panic("Cannot issue request 'Add' using the uninitialized extension 'DAMAGE'. damage.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(addRequest(c, Drawable, Region), cookie)
|
||||
return AddCookie{cookie}
|
||||
|
||||
+57
-9
@@ -2,7 +2,7 @@
|
||||
package dpms
|
||||
|
||||
/*
|
||||
This file was generated by dpms.xml on May 11 2012 1:58:35am EDT.
|
||||
This file was generated by dpms.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,14 +40,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["DPMS"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
@@ -64,6 +56,14 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
const (
|
||||
DPMSModeOn = 0
|
||||
DPMSModeStandby = 1
|
||||
@@ -79,6 +79,9 @@ type GetVersionCookie struct {
|
||||
// GetVersion sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply()
|
||||
func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'GetVersion' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return GetVersionCookie{cookie}
|
||||
@@ -87,6 +90,9 @@ func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint1
|
||||
// GetVersionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'GetVersion' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return GetVersionCookie{cookie}
|
||||
@@ -168,6 +174,9 @@ type CapableCookie struct {
|
||||
// Capable sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling CapableCookie.Reply()
|
||||
func Capable(c *xgb.Conn) CapableCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'Capable' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(capableRequest(c), cookie)
|
||||
return CapableCookie{cookie}
|
||||
@@ -176,6 +185,9 @@ func Capable(c *xgb.Conn) CapableCookie {
|
||||
// CapableUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CapableUnchecked(c *xgb.Conn) CapableCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'Capable' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(capableRequest(c), cookie)
|
||||
return CapableCookie{cookie}
|
||||
@@ -254,6 +266,9 @@ type GetTimeoutsCookie struct {
|
||||
// GetTimeouts sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetTimeoutsCookie.Reply()
|
||||
func GetTimeouts(c *xgb.Conn) GetTimeoutsCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'GetTimeouts' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getTimeoutsRequest(c), cookie)
|
||||
return GetTimeoutsCookie{cookie}
|
||||
@@ -262,6 +277,9 @@ func GetTimeouts(c *xgb.Conn) GetTimeoutsCookie {
|
||||
// GetTimeoutsUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetTimeoutsUnchecked(c *xgb.Conn) GetTimeoutsCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'GetTimeouts' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getTimeoutsRequest(c), cookie)
|
||||
return GetTimeoutsCookie{cookie}
|
||||
@@ -344,6 +362,9 @@ type SetTimeoutsCookie struct {
|
||||
// SetTimeouts sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetTimeouts(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) SetTimeoutsCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'SetTimeouts' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setTimeoutsRequest(c, StandbyTimeout, SuspendTimeout, OffTimeout), cookie)
|
||||
return SetTimeoutsCookie{cookie}
|
||||
@@ -352,6 +373,9 @@ func SetTimeouts(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffT
|
||||
// SetTimeoutsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetTimeoutsCookie.Check()
|
||||
func SetTimeoutsChecked(c *xgb.Conn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) SetTimeoutsCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'SetTimeouts' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setTimeoutsRequest(c, StandbyTimeout, SuspendTimeout, OffTimeout), cookie)
|
||||
return SetTimeoutsCookie{cookie}
|
||||
@@ -399,6 +423,9 @@ type EnableCookie struct {
|
||||
// Enable sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Enable(c *xgb.Conn) EnableCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'Enable' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(enableRequest(c), cookie)
|
||||
return EnableCookie{cookie}
|
||||
@@ -407,6 +434,9 @@ func Enable(c *xgb.Conn) EnableCookie {
|
||||
// EnableChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using EnableCookie.Check()
|
||||
func EnableChecked(c *xgb.Conn) EnableCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'Enable' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(enableRequest(c), cookie)
|
||||
return EnableCookie{cookie}
|
||||
@@ -445,6 +475,9 @@ type DisableCookie struct {
|
||||
// Disable sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Disable(c *xgb.Conn) DisableCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'Disable' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(disableRequest(c), cookie)
|
||||
return DisableCookie{cookie}
|
||||
@@ -453,6 +486,9 @@ func Disable(c *xgb.Conn) DisableCookie {
|
||||
// DisableChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DisableCookie.Check()
|
||||
func DisableChecked(c *xgb.Conn) DisableCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'Disable' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(disableRequest(c), cookie)
|
||||
return DisableCookie{cookie}
|
||||
@@ -491,6 +527,9 @@ type ForceLevelCookie struct {
|
||||
// ForceLevel sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ForceLevel(c *xgb.Conn, PowerLevel uint16) ForceLevelCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'ForceLevel' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(forceLevelRequest(c, PowerLevel), cookie)
|
||||
return ForceLevelCookie{cookie}
|
||||
@@ -499,6 +538,9 @@ func ForceLevel(c *xgb.Conn, PowerLevel uint16) ForceLevelCookie {
|
||||
// ForceLevelChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ForceLevelCookie.Check()
|
||||
func ForceLevelChecked(c *xgb.Conn, PowerLevel uint16) ForceLevelCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'ForceLevel' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(forceLevelRequest(c, PowerLevel), cookie)
|
||||
return ForceLevelCookie{cookie}
|
||||
@@ -540,6 +582,9 @@ type InfoCookie struct {
|
||||
// Info sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling InfoCookie.Reply()
|
||||
func Info(c *xgb.Conn) InfoCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'Info' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(infoRequest(c), cookie)
|
||||
return InfoCookie{cookie}
|
||||
@@ -548,6 +593,9 @@ func Info(c *xgb.Conn) InfoCookie {
|
||||
// InfoUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func InfoUnchecked(c *xgb.Conn) InfoCookie {
|
||||
if _, ok := c.Extensions["DPMS"]; !ok {
|
||||
panic("Cannot issue request 'Info' using the uninitialized extension 'DPMS'. dpms.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(infoRequest(c), cookie)
|
||||
return InfoCookie{cookie}
|
||||
|
||||
+87
-9
@@ -2,7 +2,7 @@
|
||||
package dri2
|
||||
|
||||
/*
|
||||
This file was generated by dri2.xml on May 11 2012 1:58:35am EDT.
|
||||
This file was generated by dri2.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,14 +40,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["DRI2"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
@@ -64,6 +56,14 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
const (
|
||||
AttachmentBufferFrontLeft = 0
|
||||
AttachmentBufferBackLeft = 1
|
||||
@@ -405,6 +405,9 @@ 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 _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, MajorVersion, MinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -413,6 +416,9 @@ 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 {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, MajorVersion, MinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -494,6 +500,9 @@ type ConnectCookie struct {
|
||||
// Connect sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling ConnectCookie.Reply()
|
||||
func Connect(c *xgb.Conn, Window xproto.Window, DriverType uint32) ConnectCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'Connect' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(connectRequest(c, Window, DriverType), cookie)
|
||||
return ConnectCookie{cookie}
|
||||
@@ -502,6 +511,9 @@ func Connect(c *xgb.Conn, Window xproto.Window, DriverType uint32) ConnectCookie
|
||||
// ConnectUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ConnectUnchecked(c *xgb.Conn, Window xproto.Window, DriverType uint32) ConnectCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'Connect' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(connectRequest(c, Window, DriverType), cookie)
|
||||
return ConnectCookie{cookie}
|
||||
@@ -607,6 +619,9 @@ type AuthenticateCookie struct {
|
||||
// Authenticate sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling AuthenticateCookie.Reply()
|
||||
func Authenticate(c *xgb.Conn, Window xproto.Window, Magic uint32) AuthenticateCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'Authenticate' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(authenticateRequest(c, Window, Magic), cookie)
|
||||
return AuthenticateCookie{cookie}
|
||||
@@ -615,6 +630,9 @@ func Authenticate(c *xgb.Conn, Window xproto.Window, Magic uint32) AuthenticateC
|
||||
// AuthenticateUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func AuthenticateUnchecked(c *xgb.Conn, Window xproto.Window, Magic uint32) AuthenticateCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'Authenticate' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(authenticateRequest(c, Window, Magic), cookie)
|
||||
return AuthenticateCookie{cookie}
|
||||
@@ -692,6 +710,9 @@ type CreateDrawableCookie struct {
|
||||
// CreateDrawable sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateDrawable(c *xgb.Conn, Drawable xproto.Drawable) CreateDrawableCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'CreateDrawable' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createDrawableRequest(c, Drawable), cookie)
|
||||
return CreateDrawableCookie{cookie}
|
||||
@@ -700,6 +721,9 @@ func CreateDrawable(c *xgb.Conn, Drawable xproto.Drawable) CreateDrawableCookie
|
||||
// CreateDrawableChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateDrawableCookie.Check()
|
||||
func CreateDrawableChecked(c *xgb.Conn, Drawable xproto.Drawable) CreateDrawableCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'CreateDrawable' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createDrawableRequest(c, Drawable), cookie)
|
||||
return CreateDrawableCookie{cookie}
|
||||
@@ -741,6 +765,9 @@ type DestroyDrawableCookie struct {
|
||||
// DestroyDrawable sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DestroyDrawable(c *xgb.Conn, Drawable xproto.Drawable) DestroyDrawableCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'DestroyDrawable' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyDrawableRequest(c, Drawable), cookie)
|
||||
return DestroyDrawableCookie{cookie}
|
||||
@@ -749,6 +776,9 @@ func DestroyDrawable(c *xgb.Conn, Drawable xproto.Drawable) DestroyDrawableCooki
|
||||
// DestroyDrawableChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyDrawableCookie.Check()
|
||||
func DestroyDrawableChecked(c *xgb.Conn, Drawable xproto.Drawable) DestroyDrawableCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'DestroyDrawable' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyDrawableRequest(c, Drawable), cookie)
|
||||
return DestroyDrawableCookie{cookie}
|
||||
@@ -790,6 +820,9 @@ type GetBuffersCookie struct {
|
||||
// GetBuffers sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetBuffersCookie.Reply()
|
||||
func GetBuffers(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments []uint32) GetBuffersCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'GetBuffers' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getBuffersRequest(c, Drawable, Count, Attachments), cookie)
|
||||
return GetBuffersCookie{cookie}
|
||||
@@ -798,6 +831,9 @@ func GetBuffers(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments
|
||||
// GetBuffersUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetBuffersUnchecked(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments []uint32) GetBuffersCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'GetBuffers' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getBuffersRequest(c, Drawable, Count, Attachments), cookie)
|
||||
return GetBuffersCookie{cookie}
|
||||
@@ -896,6 +932,9 @@ type CopyRegionCookie struct {
|
||||
// CopyRegion sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling CopyRegionCookie.Reply()
|
||||
func CopyRegion(c *xgb.Conn, Drawable xproto.Drawable, Region uint32, Dest uint32, Src uint32) CopyRegionCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'CopyRegion' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(copyRegionRequest(c, Drawable, Region, Dest, Src), cookie)
|
||||
return CopyRegionCookie{cookie}
|
||||
@@ -904,6 +943,9 @@ func CopyRegion(c *xgb.Conn, Drawable xproto.Drawable, Region uint32, Dest uint3
|
||||
// CopyRegionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CopyRegionUnchecked(c *xgb.Conn, Drawable xproto.Drawable, Region uint32, Dest uint32, Src uint32) CopyRegionCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'CopyRegion' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(copyRegionRequest(c, Drawable, Region, Dest, Src), cookie)
|
||||
return CopyRegionCookie{cookie}
|
||||
@@ -983,6 +1025,9 @@ type GetBuffersWithFormatCookie struct {
|
||||
// GetBuffersWithFormat sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetBuffersWithFormatCookie.Reply()
|
||||
func GetBuffersWithFormat(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments []AttachFormat) GetBuffersWithFormatCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'GetBuffersWithFormat' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getBuffersWithFormatRequest(c, Drawable, Count, Attachments), cookie)
|
||||
return GetBuffersWithFormatCookie{cookie}
|
||||
@@ -991,6 +1036,9 @@ func GetBuffersWithFormat(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, A
|
||||
// GetBuffersWithFormatUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetBuffersWithFormatUnchecked(c *xgb.Conn, Drawable xproto.Drawable, Count uint32, Attachments []AttachFormat) GetBuffersWithFormatCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'GetBuffersWithFormat' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getBuffersWithFormatRequest(c, Drawable, Count, Attachments), cookie)
|
||||
return GetBuffersWithFormatCookie{cookie}
|
||||
@@ -1085,6 +1133,9 @@ type SwapBuffersCookie struct {
|
||||
// SwapBuffers sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling SwapBuffersCookie.Reply()
|
||||
func SwapBuffers(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) SwapBuffersCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'SwapBuffers' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(swapBuffersRequest(c, Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo), cookie)
|
||||
return SwapBuffersCookie{cookie}
|
||||
@@ -1093,6 +1144,9 @@ func SwapBuffers(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, Targ
|
||||
// SwapBuffersUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SwapBuffersUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) SwapBuffersCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'SwapBuffers' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(swapBuffersRequest(c, Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo), cookie)
|
||||
return SwapBuffersCookie{cookie}
|
||||
@@ -1189,6 +1243,9 @@ type GetMSCCookie struct {
|
||||
// GetMSC sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetMSCCookie.Reply()
|
||||
func GetMSC(c *xgb.Conn, Drawable xproto.Drawable) GetMSCCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'GetMSC' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getMSCRequest(c, Drawable), cookie)
|
||||
return GetMSCCookie{cookie}
|
||||
@@ -1197,6 +1254,9 @@ func GetMSC(c *xgb.Conn, Drawable xproto.Drawable) GetMSCCookie {
|
||||
// GetMSCUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetMSCUnchecked(c *xgb.Conn, Drawable xproto.Drawable) GetMSCCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'GetMSC' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getMSCRequest(c, Drawable), cookie)
|
||||
return GetMSCCookie{cookie}
|
||||
@@ -1291,6 +1351,9 @@ type WaitMSCCookie struct {
|
||||
// WaitMSC sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling WaitMSCCookie.Reply()
|
||||
func WaitMSC(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) WaitMSCCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'WaitMSC' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(waitMSCRequest(c, Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo), cookie)
|
||||
return WaitMSCCookie{cookie}
|
||||
@@ -1299,6 +1362,9 @@ func WaitMSC(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMs
|
||||
// WaitMSCUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func WaitMSCUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetMscHi uint32, TargetMscLo uint32, DivisorHi uint32, DivisorLo uint32, RemainderHi uint32, RemainderLo uint32) WaitMSCCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'WaitMSC' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(waitMSCRequest(c, Drawable, TargetMscHi, TargetMscLo, DivisorHi, DivisorLo, RemainderHi, RemainderLo), cookie)
|
||||
return WaitMSCCookie{cookie}
|
||||
@@ -1411,6 +1477,9 @@ type WaitSBCCookie struct {
|
||||
// WaitSBC sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling WaitSBCCookie.Reply()
|
||||
func WaitSBC(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi uint32, TargetSbcLo uint32) WaitSBCCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'WaitSBC' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(waitSBCRequest(c, Drawable, TargetSbcHi, TargetSbcLo), cookie)
|
||||
return WaitSBCCookie{cookie}
|
||||
@@ -1419,6 +1488,9 @@ func WaitSBC(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi uint32, TargetSb
|
||||
// WaitSBCUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func WaitSBCUnchecked(c *xgb.Conn, Drawable xproto.Drawable, TargetSbcHi uint32, TargetSbcLo uint32) WaitSBCCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'WaitSBC' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(waitSBCRequest(c, Drawable, TargetSbcHi, TargetSbcLo), cookie)
|
||||
return WaitSBCCookie{cookie}
|
||||
@@ -1519,6 +1591,9 @@ type SwapIntervalCookie struct {
|
||||
// SwapInterval sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SwapInterval(c *xgb.Conn, Drawable xproto.Drawable, Interval uint32) SwapIntervalCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'SwapInterval' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(swapIntervalRequest(c, Drawable, Interval), cookie)
|
||||
return SwapIntervalCookie{cookie}
|
||||
@@ -1527,6 +1602,9 @@ func SwapInterval(c *xgb.Conn, Drawable xproto.Drawable, Interval uint32) SwapIn
|
||||
// SwapIntervalChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SwapIntervalCookie.Check()
|
||||
func SwapIntervalChecked(c *xgb.Conn, Drawable xproto.Drawable, Interval uint32) SwapIntervalCookie {
|
||||
if _, ok := c.Extensions["DRI2"]; !ok {
|
||||
panic("Cannot issue request 'SwapInterval' using the uninitialized extension 'DRI2'. dri2.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(swapIntervalRequest(c, Drawable, Interval), cookie)
|
||||
return SwapIntervalCookie{cookie}
|
||||
|
||||
+7
-1
@@ -2,7 +2,7 @@
|
||||
package ge
|
||||
|
||||
/*
|
||||
This file was generated by ge.xml on May 11 2012 1:58:35am EDT.
|
||||
This file was generated by ge.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -72,6 +72,9 @@ 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, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["GENERIC EVENT EXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Generic Event Extension'. ge.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -80,6 +83,9 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uin
|
||||
// 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, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["GENERIC EVENT EXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Generic Event Extension'. ge.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
|
||||
+611
-11
File diff suppressed because it is too large
Load Diff
+181
-1
@@ -2,7 +2,7 @@
|
||||
package randr
|
||||
|
||||
/*
|
||||
This file was generated by randr.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by randr.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -1221,6 +1221,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, MajorVersion, MinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -1229,6 +1232,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, MajorVersion, MinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -1313,6 +1319,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetScreenConfig' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(setScreenConfigRequest(c, Window, Timestamp, ConfigTimestamp, SizeID, Rotation, Rate), cookie)
|
||||
return SetScreenConfigCookie{cookie}
|
||||
@@ -1321,6 +1330,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetScreenConfig' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(setScreenConfigRequest(c, Window, Timestamp, ConfigTimestamp, SizeID, Rotation, Rate), cookie)
|
||||
return SetScreenConfigCookie{cookie}
|
||||
@@ -1428,6 +1440,9 @@ type SelectInputCookie struct {
|
||||
// SelectInput sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SelectInput(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SelectInput' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(selectInputRequest(c, Window, Enable), cookie)
|
||||
return SelectInputCookie{cookie}
|
||||
@@ -1436,6 +1451,9 @@ 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()
|
||||
func SelectInputChecked(c *xgb.Conn, Window xproto.Window, Enable uint16) SelectInputCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SelectInput' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(selectInputRequest(c, Window, Enable), cookie)
|
||||
return SelectInputCookie{cookie}
|
||||
@@ -1482,6 +1500,9 @@ type GetScreenInfoCookie struct {
|
||||
// GetScreenInfo sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetScreenInfoCookie.Reply()
|
||||
func GetScreenInfo(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetScreenInfo' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getScreenInfoRequest(c, Window), cookie)
|
||||
return GetScreenInfoCookie{cookie}
|
||||
@@ -1490,6 +1511,9 @@ func GetScreenInfo(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie {
|
||||
// GetScreenInfoUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetScreenInfoUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenInfoCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetScreenInfo' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getScreenInfoRequest(c, Window), cookie)
|
||||
return GetScreenInfoCookie{cookie}
|
||||
@@ -1604,6 +1628,9 @@ type GetScreenSizeRangeCookie struct {
|
||||
// GetScreenSizeRange sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetScreenSizeRangeCookie.Reply()
|
||||
func GetScreenSizeRange(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetScreenSizeRange' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getScreenSizeRangeRequest(c, Window), cookie)
|
||||
return GetScreenSizeRangeCookie{cookie}
|
||||
@@ -1612,6 +1639,9 @@ func GetScreenSizeRange(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCoo
|
||||
// GetScreenSizeRangeUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetScreenSizeRangeUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenSizeRangeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetScreenSizeRange' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getScreenSizeRangeRequest(c, Window), cookie)
|
||||
return GetScreenSizeRangeCookie{cookie}
|
||||
@@ -1701,6 +1731,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetScreenSize' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setScreenSizeRequest(c, Window, Width, Height, MmWidth, MmHeight), cookie)
|
||||
return SetScreenSizeCookie{cookie}
|
||||
@@ -1709,6 +1742,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetScreenSize' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setScreenSizeRequest(c, Window, Width, Height, MmWidth, MmHeight), cookie)
|
||||
return SetScreenSizeCookie{cookie}
|
||||
@@ -1762,6 +1798,9 @@ type GetScreenResourcesCookie struct {
|
||||
// GetScreenResources sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCookie.Reply()
|
||||
func GetScreenResources(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetScreenResources' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getScreenResourcesRequest(c, Window), cookie)
|
||||
return GetScreenResourcesCookie{cookie}
|
||||
@@ -1770,6 +1809,9 @@ func GetScreenResources(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCoo
|
||||
// GetScreenResourcesUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetScreenResourcesUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetScreenResources' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getScreenResourcesRequest(c, Window), cookie)
|
||||
return GetScreenResourcesCookie{cookie}
|
||||
@@ -1892,6 +1934,9 @@ type GetOutputInfoCookie struct {
|
||||
// GetOutputInfo sends a checked request.
|
||||
// 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetOutputInfo' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getOutputInfoRequest(c, Output, ConfigTimestamp), cookie)
|
||||
return GetOutputInfoCookie{cookie}
|
||||
@@ -1900,6 +1945,9 @@ func GetOutputInfo(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp)
|
||||
// GetOutputInfoUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetOutputInfoUnchecked(c *xgb.Conn, Output Output, ConfigTimestamp xproto.Timestamp) GetOutputInfoCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetOutputInfo' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getOutputInfoRequest(c, Output, ConfigTimestamp), cookie)
|
||||
return GetOutputInfoCookie{cookie}
|
||||
@@ -2047,6 +2095,9 @@ type ListOutputPropertiesCookie struct {
|
||||
// ListOutputProperties sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling ListOutputPropertiesCookie.Reply()
|
||||
func ListOutputProperties(c *xgb.Conn, Output Output) ListOutputPropertiesCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'ListOutputProperties' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(listOutputPropertiesRequest(c, Output), cookie)
|
||||
return ListOutputPropertiesCookie{cookie}
|
||||
@@ -2055,6 +2106,9 @@ func ListOutputProperties(c *xgb.Conn, Output Output) ListOutputPropertiesCookie
|
||||
// ListOutputPropertiesUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ListOutputPropertiesUnchecked(c *xgb.Conn, Output Output) ListOutputPropertiesCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'ListOutputProperties' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(listOutputPropertiesRequest(c, Output), cookie)
|
||||
return ListOutputPropertiesCookie{cookie}
|
||||
@@ -2140,6 +2194,9 @@ type QueryOutputPropertyCookie struct {
|
||||
// QueryOutputProperty sends a checked request.
|
||||
// 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'QueryOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryOutputPropertyRequest(c, Output, Property), cookie)
|
||||
return QueryOutputPropertyCookie{cookie}
|
||||
@@ -2148,6 +2205,9 @@ func QueryOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) Query
|
||||
// QueryOutputPropertyUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryOutputPropertyUnchecked(c *xgb.Conn, Output Output, Property xproto.Atom) QueryOutputPropertyCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'QueryOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryOutputPropertyRequest(c, Output, Property), cookie)
|
||||
return QueryOutputPropertyCookie{cookie}
|
||||
@@ -2256,6 +2316,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'ConfigureOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(configureOutputPropertyRequest(c, Output, Property, Pending, Range, Values), cookie)
|
||||
return ConfigureOutputPropertyCookie{cookie}
|
||||
@@ -2264,6 +2327,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'ConfigureOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(configureOutputPropertyRequest(c, Output, Property, Pending, Range, Values), cookie)
|
||||
return ConfigureOutputPropertyCookie{cookie}
|
||||
@@ -2330,6 +2396,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'ChangeOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(changeOutputPropertyRequest(c, Output, Property, Type, Format, Mode, NumUnits, Data), cookie)
|
||||
return ChangeOutputPropertyCookie{cookie}
|
||||
@@ -2338,6 +2407,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'ChangeOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(changeOutputPropertyRequest(c, Output, Property, Type, Format, Mode, NumUnits, Data), cookie)
|
||||
return ChangeOutputPropertyCookie{cookie}
|
||||
@@ -2399,6 +2471,9 @@ type DeleteOutputPropertyCookie struct {
|
||||
// DeleteOutputProperty sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DeleteOutputProperty(c *xgb.Conn, Output Output, Property xproto.Atom) DeleteOutputPropertyCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'DeleteOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(deleteOutputPropertyRequest(c, Output, Property), cookie)
|
||||
return DeleteOutputPropertyCookie{cookie}
|
||||
@@ -2407,6 +2482,9 @@ 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()
|
||||
func DeleteOutputPropertyChecked(c *xgb.Conn, Output Output, Property xproto.Atom) DeleteOutputPropertyCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'DeleteOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(deleteOutputPropertyRequest(c, Output, Property), cookie)
|
||||
return DeleteOutputPropertyCookie{cookie}
|
||||
@@ -2451,6 +2529,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getOutputPropertyRequest(c, Output, Property, Type, LongOffset, LongLength, Delete, Pending), cookie)
|
||||
return GetOutputPropertyCookie{cookie}
|
||||
@@ -2459,6 +2540,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetOutputProperty' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getOutputPropertyRequest(c, Output, Property, Type, LongOffset, LongLength, Delete, Pending), cookie)
|
||||
return GetOutputPropertyCookie{cookie}
|
||||
@@ -2578,6 +2662,9 @@ type CreateModeCookie struct {
|
||||
// CreateMode sends a checked request.
|
||||
// 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'CreateMode' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(createModeRequest(c, Window, ModeInfo, Name), cookie)
|
||||
return CreateModeCookie{cookie}
|
||||
@@ -2586,6 +2673,9 @@ func CreateMode(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name strin
|
||||
// CreateModeUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateModeUnchecked(c *xgb.Conn, Window xproto.Window, ModeInfo ModeInfo, Name string) CreateModeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'CreateMode' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(createModeRequest(c, Window, ModeInfo, Name), cookie)
|
||||
return CreateModeCookie{cookie}
|
||||
@@ -2672,6 +2762,9 @@ type DestroyModeCookie struct {
|
||||
// DestroyMode sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DestroyMode(c *xgb.Conn, Mode Mode) DestroyModeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'DestroyMode' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyModeRequest(c, Mode), cookie)
|
||||
return DestroyModeCookie{cookie}
|
||||
@@ -2680,6 +2773,9 @@ func DestroyMode(c *xgb.Conn, Mode Mode) DestroyModeCookie {
|
||||
// DestroyModeChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyModeCookie.Check()
|
||||
func DestroyModeChecked(c *xgb.Conn, Mode Mode) DestroyModeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'DestroyMode' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyModeRequest(c, Mode), cookie)
|
||||
return DestroyModeCookie{cookie}
|
||||
@@ -2721,6 +2817,9 @@ type AddOutputModeCookie struct {
|
||||
// AddOutputMode sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func AddOutputMode(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'AddOutputMode' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(addOutputModeRequest(c, Output, Mode), cookie)
|
||||
return AddOutputModeCookie{cookie}
|
||||
@@ -2729,6 +2828,9 @@ 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()
|
||||
func AddOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) AddOutputModeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'AddOutputMode' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(addOutputModeRequest(c, Output, Mode), cookie)
|
||||
return AddOutputModeCookie{cookie}
|
||||
@@ -2773,6 +2875,9 @@ type DeleteOutputModeCookie struct {
|
||||
// DeleteOutputMode sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DeleteOutputMode(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'DeleteOutputMode' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(deleteOutputModeRequest(c, Output, Mode), cookie)
|
||||
return DeleteOutputModeCookie{cookie}
|
||||
@@ -2781,6 +2886,9 @@ 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()
|
||||
func DeleteOutputModeChecked(c *xgb.Conn, Output Output, Mode Mode) DeleteOutputModeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'DeleteOutputMode' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(deleteOutputModeRequest(c, Output, Mode), cookie)
|
||||
return DeleteOutputModeCookie{cookie}
|
||||
@@ -2825,6 +2933,9 @@ type GetCrtcInfoCookie struct {
|
||||
// GetCrtcInfo sends a checked request.
|
||||
// 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetCrtcInfo' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getCrtcInfoRequest(c, Crtc, ConfigTimestamp), cookie)
|
||||
return GetCrtcInfoCookie{cookie}
|
||||
@@ -2833,6 +2944,9 @@ func GetCrtcInfo(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) GetCr
|
||||
// GetCrtcInfoUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetCrtcInfoUnchecked(c *xgb.Conn, Crtc Crtc, ConfigTimestamp xproto.Timestamp) GetCrtcInfoCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetCrtcInfo' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getCrtcInfoRequest(c, Crtc, ConfigTimestamp), cookie)
|
||||
return GetCrtcInfoCookie{cookie}
|
||||
@@ -2963,6 +3077,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetCrtcConfig' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(setCrtcConfigRequest(c, Crtc, Timestamp, ConfigTimestamp, X, Y, Mode, Rotation, Outputs), cookie)
|
||||
return SetCrtcConfigCookie{cookie}
|
||||
@@ -2971,6 +3088,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetCrtcConfig' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(setCrtcConfigRequest(c, Crtc, Timestamp, ConfigTimestamp, X, Y, Mode, Rotation, Outputs), cookie)
|
||||
return SetCrtcConfigCookie{cookie}
|
||||
@@ -3075,6 +3195,9 @@ type GetCrtcGammaSizeCookie struct {
|
||||
// GetCrtcGammaSize sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetCrtcGammaSizeCookie.Reply()
|
||||
func GetCrtcGammaSize(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetCrtcGammaSize' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getCrtcGammaSizeRequest(c, Crtc), cookie)
|
||||
return GetCrtcGammaSizeCookie{cookie}
|
||||
@@ -3083,6 +3206,9 @@ func GetCrtcGammaSize(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie {
|
||||
// GetCrtcGammaSizeUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetCrtcGammaSizeUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcGammaSizeCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetCrtcGammaSize' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getCrtcGammaSizeRequest(c, Crtc), cookie)
|
||||
return GetCrtcGammaSizeCookie{cookie}
|
||||
@@ -3160,6 +3286,9 @@ type GetCrtcGammaCookie struct {
|
||||
// GetCrtcGamma sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetCrtcGammaCookie.Reply()
|
||||
func GetCrtcGamma(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetCrtcGamma' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getCrtcGammaRequest(c, Crtc), cookie)
|
||||
return GetCrtcGammaCookie{cookie}
|
||||
@@ -3168,6 +3297,9 @@ func GetCrtcGamma(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie {
|
||||
// GetCrtcGammaUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetCrtcGammaUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcGammaCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetCrtcGamma' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getCrtcGammaRequest(c, Crtc), cookie)
|
||||
return GetCrtcGammaCookie{cookie}
|
||||
@@ -3269,6 +3401,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetCrtcGamma' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setCrtcGammaRequest(c, Crtc, Size, Red, Green, Blue), cookie)
|
||||
return SetCrtcGammaCookie{cookie}
|
||||
@@ -3277,6 +3412,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetCrtcGamma' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setCrtcGammaRequest(c, Crtc, Size, Red, Green, Blue), cookie)
|
||||
return SetCrtcGammaCookie{cookie}
|
||||
@@ -3341,6 +3479,9 @@ type GetScreenResourcesCurrentCookie struct {
|
||||
// GetScreenResourcesCurrent sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetScreenResourcesCurrentCookie.Reply()
|
||||
func GetScreenResourcesCurrent(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCurrentCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetScreenResourcesCurrent' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getScreenResourcesCurrentRequest(c, Window), cookie)
|
||||
return GetScreenResourcesCurrentCookie{cookie}
|
||||
@@ -3349,6 +3490,9 @@ func GetScreenResourcesCurrent(c *xgb.Conn, Window xproto.Window) GetScreenResou
|
||||
// GetScreenResourcesCurrentUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetScreenResourcesCurrentUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenResourcesCurrentCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetScreenResourcesCurrent' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getScreenResourcesCurrentRequest(c, Window), cookie)
|
||||
return GetScreenResourcesCurrentCookie{cookie}
|
||||
@@ -3471,6 +3615,9 @@ type SetCrtcTransformCookie struct {
|
||||
// SetCrtcTransform sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetCrtcTransform(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) SetCrtcTransformCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetCrtcTransform' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setCrtcTransformRequest(c, Crtc, Transform, FilterLen, FilterName, FilterParams), cookie)
|
||||
return SetCrtcTransformCookie{cookie}
|
||||
@@ -3479,6 +3626,9 @@ 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()
|
||||
func SetCrtcTransformChecked(c *xgb.Conn, Crtc Crtc, Transform render.Transform, FilterLen uint16, FilterName string, FilterParams []render.Fixed) SetCrtcTransformCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetCrtcTransform' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setCrtcTransformRequest(c, Crtc, Transform, FilterLen, FilterName, FilterParams), cookie)
|
||||
return SetCrtcTransformCookie{cookie}
|
||||
@@ -3540,6 +3690,9 @@ type GetCrtcTransformCookie struct {
|
||||
// GetCrtcTransform sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetCrtcTransformCookie.Reply()
|
||||
func GetCrtcTransform(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetCrtcTransform' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getCrtcTransformRequest(c, Crtc), cookie)
|
||||
return GetCrtcTransformCookie{cookie}
|
||||
@@ -3548,6 +3701,9 @@ func GetCrtcTransform(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie {
|
||||
// GetCrtcTransformUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetCrtcTransformUnchecked(c *xgb.Conn, Crtc Crtc) GetCrtcTransformCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetCrtcTransform' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getCrtcTransformRequest(c, Crtc), cookie)
|
||||
return GetCrtcTransformCookie{cookie}
|
||||
@@ -3688,6 +3844,9 @@ type GetPanningCookie struct {
|
||||
// GetPanning sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetPanningCookie.Reply()
|
||||
func GetPanning(c *xgb.Conn, Crtc Crtc) GetPanningCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetPanning' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getPanningRequest(c, Crtc), cookie)
|
||||
return GetPanningCookie{cookie}
|
||||
@@ -3696,6 +3855,9 @@ func GetPanning(c *xgb.Conn, Crtc Crtc) GetPanningCookie {
|
||||
// GetPanningUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetPanningUnchecked(c *xgb.Conn, Crtc Crtc) GetPanningCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetPanning' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getPanningRequest(c, Crtc), cookie)
|
||||
return GetPanningCookie{cookie}
|
||||
@@ -3819,6 +3981,9 @@ 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 _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetPanning' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(setPanningRequest(c, Crtc, Timestamp, Left, Top, Width, Height, TrackLeft, TrackTop, TrackWidth, TrackHeight, BorderLeft, BorderTop, BorderRight, BorderBottom), cookie)
|
||||
return SetPanningCookie{cookie}
|
||||
@@ -3827,6 +3992,9 @@ 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 {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetPanning' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(setPanningRequest(c, Crtc, Timestamp, Left, Top, Width, Height, TrackLeft, TrackTop, TrackWidth, TrackHeight, BorderLeft, BorderTop, BorderRight, BorderBottom), cookie)
|
||||
return SetPanningCookie{cookie}
|
||||
@@ -3941,6 +4109,9 @@ type SetOutputPrimaryCookie struct {
|
||||
// SetOutputPrimary sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetOutputPrimary(c *xgb.Conn, Window xproto.Window, Output Output) SetOutputPrimaryCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetOutputPrimary' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setOutputPrimaryRequest(c, Window, Output), cookie)
|
||||
return SetOutputPrimaryCookie{cookie}
|
||||
@@ -3949,6 +4120,9 @@ 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()
|
||||
func SetOutputPrimaryChecked(c *xgb.Conn, Window xproto.Window, Output Output) SetOutputPrimaryCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'SetOutputPrimary' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setOutputPrimaryRequest(c, Window, Output), cookie)
|
||||
return SetOutputPrimaryCookie{cookie}
|
||||
@@ -3993,6 +4167,9 @@ type GetOutputPrimaryCookie struct {
|
||||
// GetOutputPrimary sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetOutputPrimaryCookie.Reply()
|
||||
func GetOutputPrimary(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetOutputPrimary' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getOutputPrimaryRequest(c, Window), cookie)
|
||||
return GetOutputPrimaryCookie{cookie}
|
||||
@@ -4001,6 +4178,9 @@ func GetOutputPrimary(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie
|
||||
// GetOutputPrimaryUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetOutputPrimaryUnchecked(c *xgb.Conn, Window xproto.Window) GetOutputPrimaryCookie {
|
||||
if _, ok := c.Extensions["RANDR"]; !ok {
|
||||
panic("Cannot issue request 'GetOutputPrimary' using the uninitialized extension 'RANDR'. randr.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getOutputPrimaryRequest(c, Window), cookie)
|
||||
return GetOutputPrimaryCookie{cookie}
|
||||
|
||||
+49
-1
@@ -2,7 +2,7 @@
|
||||
package record
|
||||
|
||||
/*
|
||||
This file was generated by record.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by record.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -526,6 +526,9 @@ 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 uint16, MinorVersion uint16) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, MajorVersion, MinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -534,6 +537,9 @@ func QueryVersion(c *xgb.Conn, MajorVersion uint16, MinorVersion uint16) 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 uint16, MinorVersion uint16) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, MajorVersion, MinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -615,6 +621,9 @@ type CreateContextCookie struct {
|
||||
// CreateContext sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateContext(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createContextRequest(c, Context, ElementHeader, NumClientSpecs, NumRanges, ClientSpecs, Ranges), cookie)
|
||||
return CreateContextCookie{cookie}
|
||||
@@ -623,6 +632,9 @@ func CreateContext(c *xgb.Conn, Context Context, ElementHeader ElementHeader, Nu
|
||||
// CreateContextChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateContextCookie.Check()
|
||||
func CreateContextChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) CreateContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createContextRequest(c, Context, ElementHeader, NumClientSpecs, NumRanges, ClientSpecs, Ranges), cookie)
|
||||
return CreateContextCookie{cookie}
|
||||
@@ -683,6 +695,9 @@ type RegisterClientsCookie struct {
|
||||
// RegisterClients sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func RegisterClients(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'RegisterClients' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(registerClientsRequest(c, Context, ElementHeader, NumClientSpecs, NumRanges, ClientSpecs, Ranges), cookie)
|
||||
return RegisterClientsCookie{cookie}
|
||||
@@ -691,6 +706,9 @@ func RegisterClients(c *xgb.Conn, Context Context, ElementHeader ElementHeader,
|
||||
// RegisterClientsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using RegisterClientsCookie.Check()
|
||||
func RegisterClientsChecked(c *xgb.Conn, Context Context, ElementHeader ElementHeader, NumClientSpecs uint32, NumRanges uint32, ClientSpecs []ClientSpec, Ranges []Range) RegisterClientsCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'RegisterClients' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(registerClientsRequest(c, Context, ElementHeader, NumClientSpecs, NumRanges, ClientSpecs, Ranges), cookie)
|
||||
return RegisterClientsCookie{cookie}
|
||||
@@ -751,6 +769,9 @@ type UnregisterClientsCookie struct {
|
||||
// UnregisterClients sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func UnregisterClients(c *xgb.Conn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) UnregisterClientsCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'UnregisterClients' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(unregisterClientsRequest(c, Context, NumClientSpecs, ClientSpecs), cookie)
|
||||
return UnregisterClientsCookie{cookie}
|
||||
@@ -759,6 +780,9 @@ func UnregisterClients(c *xgb.Conn, Context Context, NumClientSpecs uint32, Clie
|
||||
// UnregisterClientsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using UnregisterClientsCookie.Check()
|
||||
func UnregisterClientsChecked(c *xgb.Conn, Context Context, NumClientSpecs uint32, ClientSpecs []ClientSpec) UnregisterClientsCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'UnregisterClients' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(unregisterClientsRequest(c, Context, NumClientSpecs, ClientSpecs), cookie)
|
||||
return UnregisterClientsCookie{cookie}
|
||||
@@ -809,6 +833,9 @@ type GetContextCookie struct {
|
||||
// GetContext sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetContextCookie.Reply()
|
||||
func GetContext(c *xgb.Conn, Context Context) GetContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'GetContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getContextRequest(c, Context), cookie)
|
||||
return GetContextCookie{cookie}
|
||||
@@ -817,6 +844,9 @@ func GetContext(c *xgb.Conn, Context Context) GetContextCookie {
|
||||
// GetContextUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetContextUnchecked(c *xgb.Conn, Context Context) GetContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'GetContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getContextRequest(c, Context), cookie)
|
||||
return GetContextCookie{cookie}
|
||||
@@ -910,6 +940,9 @@ type EnableContextCookie struct {
|
||||
// EnableContext sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling EnableContextCookie.Reply()
|
||||
func EnableContext(c *xgb.Conn, Context Context) EnableContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'EnableContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(enableContextRequest(c, Context), cookie)
|
||||
return EnableContextCookie{cookie}
|
||||
@@ -918,6 +951,9 @@ func EnableContext(c *xgb.Conn, Context Context) EnableContextCookie {
|
||||
// EnableContextUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func EnableContextUnchecked(c *xgb.Conn, Context Context) EnableContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'EnableContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(enableContextRequest(c, Context), cookie)
|
||||
return EnableContextCookie{cookie}
|
||||
@@ -1024,6 +1060,9 @@ type DisableContextCookie struct {
|
||||
// DisableContext sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DisableContext(c *xgb.Conn, Context Context) DisableContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'DisableContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(disableContextRequest(c, Context), cookie)
|
||||
return DisableContextCookie{cookie}
|
||||
@@ -1032,6 +1071,9 @@ func DisableContext(c *xgb.Conn, Context Context) DisableContextCookie {
|
||||
// DisableContextChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DisableContextCookie.Check()
|
||||
func DisableContextChecked(c *xgb.Conn, Context Context) DisableContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'DisableContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(disableContextRequest(c, Context), cookie)
|
||||
return DisableContextCookie{cookie}
|
||||
@@ -1073,6 +1115,9 @@ type FreeContextCookie struct {
|
||||
// FreeContext sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func FreeContext(c *xgb.Conn, Context Context) FreeContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'FreeContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(freeContextRequest(c, Context), cookie)
|
||||
return FreeContextCookie{cookie}
|
||||
@@ -1081,6 +1126,9 @@ func FreeContext(c *xgb.Conn, Context Context) FreeContextCookie {
|
||||
// FreeContextChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using FreeContextCookie.Check()
|
||||
func FreeContextChecked(c *xgb.Conn, Context Context) FreeContextCookie {
|
||||
if _, ok := c.Extensions["RECORD"]; !ok {
|
||||
panic("Cannot issue request 'FreeContext' using the uninitialized extension 'RECORD'. record.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(freeContextRequest(c, Context), cookie)
|
||||
return FreeContextCookie{cookie}
|
||||
|
||||
+193
-7
@@ -2,7 +2,7 @@
|
||||
package render
|
||||
|
||||
/*
|
||||
This file was generated by render.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by render.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,12 +40,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["RENDER"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
@@ -64,6 +58,12 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
const (
|
||||
PictTypeIndexed = 0
|
||||
PictTypeDirect = 1
|
||||
@@ -1585,6 +1585,9 @@ 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, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -1593,6 +1596,9 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin
|
||||
// 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, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -1677,6 +1683,9 @@ type QueryPictFormatsCookie struct {
|
||||
// QueryPictFormats sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryPictFormatsCookie.Reply()
|
||||
func QueryPictFormats(c *xgb.Conn) QueryPictFormatsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'QueryPictFormats' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryPictFormatsRequest(c), cookie)
|
||||
return QueryPictFormatsCookie{cookie}
|
||||
@@ -1685,6 +1694,9 @@ func QueryPictFormats(c *xgb.Conn) QueryPictFormatsCookie {
|
||||
// QueryPictFormatsUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryPictFormatsUnchecked(c *xgb.Conn) QueryPictFormatsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'QueryPictFormats' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryPictFormatsRequest(c), cookie)
|
||||
return QueryPictFormatsCookie{cookie}
|
||||
@@ -1791,6 +1803,9 @@ type QueryPictIndexValuesCookie struct {
|
||||
// QueryPictIndexValues sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryPictIndexValuesCookie.Reply()
|
||||
func QueryPictIndexValues(c *xgb.Conn, Format Pictformat) QueryPictIndexValuesCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'QueryPictIndexValues' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryPictIndexValuesRequest(c, Format), cookie)
|
||||
return QueryPictIndexValuesCookie{cookie}
|
||||
@@ -1799,6 +1814,9 @@ func QueryPictIndexValues(c *xgb.Conn, Format Pictformat) QueryPictIndexValuesCo
|
||||
// QueryPictIndexValuesUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryPictIndexValuesUnchecked(c *xgb.Conn, Format Pictformat) QueryPictIndexValuesCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'QueryPictIndexValues' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryPictIndexValuesRequest(c, Format), cookie)
|
||||
return QueryPictIndexValuesCookie{cookie}
|
||||
@@ -1880,6 +1898,9 @@ type CreatePictureCookie struct {
|
||||
// CreatePicture sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreatePicture(c *xgb.Conn, Pid Picture, Drawable xproto.Drawable, Format Pictformat, ValueMask uint32, ValueList []uint32) CreatePictureCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreatePicture' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createPictureRequest(c, Pid, Drawable, Format, ValueMask, ValueList), cookie)
|
||||
return CreatePictureCookie{cookie}
|
||||
@@ -1888,6 +1909,9 @@ func CreatePicture(c *xgb.Conn, Pid Picture, Drawable xproto.Drawable, Format Pi
|
||||
// CreatePictureChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreatePictureCookie.Check()
|
||||
func CreatePictureChecked(c *xgb.Conn, Pid Picture, Drawable xproto.Drawable, Format Pictformat, ValueMask uint32, ValueList []uint32) CreatePictureCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreatePicture' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createPictureRequest(c, Pid, Drawable, Format, ValueMask, ValueList), cookie)
|
||||
return CreatePictureCookie{cookie}
|
||||
@@ -1943,6 +1967,9 @@ type ChangePictureCookie struct {
|
||||
// ChangePicture sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ChangePicture(c *xgb.Conn, Picture Picture, ValueMask uint32, ValueList []uint32) ChangePictureCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'ChangePicture' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(changePictureRequest(c, Picture, ValueMask, ValueList), cookie)
|
||||
return ChangePictureCookie{cookie}
|
||||
@@ -1951,6 +1978,9 @@ func ChangePicture(c *xgb.Conn, Picture Picture, ValueMask uint32, ValueList []u
|
||||
// ChangePictureChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ChangePictureCookie.Check()
|
||||
func ChangePictureChecked(c *xgb.Conn, Picture Picture, ValueMask uint32, ValueList []uint32) ChangePictureCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'ChangePicture' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(changePictureRequest(c, Picture, ValueMask, ValueList), cookie)
|
||||
return ChangePictureCookie{cookie}
|
||||
@@ -2000,6 +2030,9 @@ type SetPictureClipRectanglesCookie struct {
|
||||
// SetPictureClipRectangles sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetPictureClipRectangles(c *xgb.Conn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, Rectangles []xproto.Rectangle) SetPictureClipRectanglesCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'SetPictureClipRectangles' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setPictureClipRectanglesRequest(c, Picture, ClipXOrigin, ClipYOrigin, Rectangles), cookie)
|
||||
return SetPictureClipRectanglesCookie{cookie}
|
||||
@@ -2008,6 +2041,9 @@ func SetPictureClipRectangles(c *xgb.Conn, Picture Picture, ClipXOrigin int16, C
|
||||
// SetPictureClipRectanglesChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetPictureClipRectanglesCookie.Check()
|
||||
func SetPictureClipRectanglesChecked(c *xgb.Conn, Picture Picture, ClipXOrigin int16, ClipYOrigin int16, Rectangles []xproto.Rectangle) SetPictureClipRectanglesCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'SetPictureClipRectangles' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setPictureClipRectanglesRequest(c, Picture, ClipXOrigin, ClipYOrigin, Rectangles), cookie)
|
||||
return SetPictureClipRectanglesCookie{cookie}
|
||||
@@ -2057,6 +2093,9 @@ type FreePictureCookie struct {
|
||||
// FreePicture sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func FreePicture(c *xgb.Conn, Picture Picture) FreePictureCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'FreePicture' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(freePictureRequest(c, Picture), cookie)
|
||||
return FreePictureCookie{cookie}
|
||||
@@ -2065,6 +2104,9 @@ func FreePicture(c *xgb.Conn, Picture Picture) FreePictureCookie {
|
||||
// FreePictureChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using FreePictureCookie.Check()
|
||||
func FreePictureChecked(c *xgb.Conn, Picture Picture) FreePictureCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'FreePicture' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(freePictureRequest(c, Picture), cookie)
|
||||
return FreePictureCookie{cookie}
|
||||
@@ -2106,6 +2148,9 @@ type CompositeCookie struct {
|
||||
// Composite sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Composite(c *xgb.Conn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, SrcY int16, MaskX int16, MaskY int16, DstX int16, DstY int16, Width uint16, Height uint16) CompositeCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'Composite' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(compositeRequest(c, Op, Src, Mask, Dst, SrcX, SrcY, MaskX, MaskY, DstX, DstY, Width, Height), cookie)
|
||||
return CompositeCookie{cookie}
|
||||
@@ -2114,6 +2159,9 @@ func Composite(c *xgb.Conn, Op byte, Src Picture, Mask Picture, Dst Picture, Src
|
||||
// CompositeChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CompositeCookie.Check()
|
||||
func CompositeChecked(c *xgb.Conn, Op byte, Src Picture, Mask Picture, Dst Picture, SrcX int16, SrcY int16, MaskX int16, MaskY int16, DstX int16, DstY int16, Width uint16, Height uint16) CompositeCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'Composite' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(compositeRequest(c, Op, Src, Mask, Dst, SrcX, SrcY, MaskX, MaskY, DstX, DstY, Width, Height), cookie)
|
||||
return CompositeCookie{cookie}
|
||||
@@ -2190,6 +2238,9 @@ type TrapezoidsCookie struct {
|
||||
// Trapezoids sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Trapezoids(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Traps []Trapezoid) TrapezoidsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'Trapezoids' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(trapezoidsRequest(c, Op, Src, Dst, MaskFormat, SrcX, SrcY, Traps), cookie)
|
||||
return TrapezoidsCookie{cookie}
|
||||
@@ -2198,6 +2249,9 @@ func Trapezoids(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictf
|
||||
// TrapezoidsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using TrapezoidsCookie.Check()
|
||||
func TrapezoidsChecked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Traps []Trapezoid) TrapezoidsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'Trapezoids' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(trapezoidsRequest(c, Op, Src, Dst, MaskFormat, SrcX, SrcY, Traps), cookie)
|
||||
return TrapezoidsCookie{cookie}
|
||||
@@ -2258,6 +2312,9 @@ type TrianglesCookie struct {
|
||||
// Triangles sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Triangles(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Triangles []Triangle) TrianglesCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'Triangles' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(trianglesRequest(c, Op, Src, Dst, MaskFormat, SrcX, SrcY, Triangles), cookie)
|
||||
return TrianglesCookie{cookie}
|
||||
@@ -2266,6 +2323,9 @@ func Triangles(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictfo
|
||||
// TrianglesChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using TrianglesCookie.Check()
|
||||
func TrianglesChecked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Triangles []Triangle) TrianglesCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'Triangles' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(trianglesRequest(c, Op, Src, Dst, MaskFormat, SrcX, SrcY, Triangles), cookie)
|
||||
return TrianglesCookie{cookie}
|
||||
@@ -2326,6 +2386,9 @@ type TriStripCookie struct {
|
||||
// TriStrip sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func TriStrip(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) TriStripCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'TriStrip' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(triStripRequest(c, Op, Src, Dst, MaskFormat, SrcX, SrcY, Points), cookie)
|
||||
return TriStripCookie{cookie}
|
||||
@@ -2334,6 +2397,9 @@ func TriStrip(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictfor
|
||||
// TriStripChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using TriStripCookie.Check()
|
||||
func TriStripChecked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) TriStripCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'TriStrip' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(triStripRequest(c, Op, Src, Dst, MaskFormat, SrcX, SrcY, Points), cookie)
|
||||
return TriStripCookie{cookie}
|
||||
@@ -2394,6 +2460,9 @@ type TriFanCookie struct {
|
||||
// TriFan sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func TriFan(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) TriFanCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'TriFan' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(triFanRequest(c, Op, Src, Dst, MaskFormat, SrcX, SrcY, Points), cookie)
|
||||
return TriFanCookie{cookie}
|
||||
@@ -2402,6 +2471,9 @@ func TriFan(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictforma
|
||||
// TriFanChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using TriFanCookie.Check()
|
||||
func TriFanChecked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, SrcX int16, SrcY int16, Points []Pointfix) TriFanCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'TriFan' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(triFanRequest(c, Op, Src, Dst, MaskFormat, SrcX, SrcY, Points), cookie)
|
||||
return TriFanCookie{cookie}
|
||||
@@ -2462,6 +2534,9 @@ type CreateGlyphSetCookie struct {
|
||||
// CreateGlyphSet sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateGlyphSet(c *xgb.Conn, Gsid Glyphset, Format Pictformat) CreateGlyphSetCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateGlyphSet' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createGlyphSetRequest(c, Gsid, Format), cookie)
|
||||
return CreateGlyphSetCookie{cookie}
|
||||
@@ -2470,6 +2545,9 @@ func CreateGlyphSet(c *xgb.Conn, Gsid Glyphset, Format Pictformat) CreateGlyphSe
|
||||
// CreateGlyphSetChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateGlyphSetCookie.Check()
|
||||
func CreateGlyphSetChecked(c *xgb.Conn, Gsid Glyphset, Format Pictformat) CreateGlyphSetCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateGlyphSet' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createGlyphSetRequest(c, Gsid, Format), cookie)
|
||||
return CreateGlyphSetCookie{cookie}
|
||||
@@ -2514,6 +2592,9 @@ type ReferenceGlyphSetCookie struct {
|
||||
// ReferenceGlyphSet sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ReferenceGlyphSet(c *xgb.Conn, Gsid Glyphset, Existing Glyphset) ReferenceGlyphSetCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'ReferenceGlyphSet' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(referenceGlyphSetRequest(c, Gsid, Existing), cookie)
|
||||
return ReferenceGlyphSetCookie{cookie}
|
||||
@@ -2522,6 +2603,9 @@ func ReferenceGlyphSet(c *xgb.Conn, Gsid Glyphset, Existing Glyphset) ReferenceG
|
||||
// ReferenceGlyphSetChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ReferenceGlyphSetCookie.Check()
|
||||
func ReferenceGlyphSetChecked(c *xgb.Conn, Gsid Glyphset, Existing Glyphset) ReferenceGlyphSetCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'ReferenceGlyphSet' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(referenceGlyphSetRequest(c, Gsid, Existing), cookie)
|
||||
return ReferenceGlyphSetCookie{cookie}
|
||||
@@ -2566,6 +2650,9 @@ type FreeGlyphSetCookie struct {
|
||||
// FreeGlyphSet sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func FreeGlyphSet(c *xgb.Conn, Glyphset Glyphset) FreeGlyphSetCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'FreeGlyphSet' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(freeGlyphSetRequest(c, Glyphset), cookie)
|
||||
return FreeGlyphSetCookie{cookie}
|
||||
@@ -2574,6 +2661,9 @@ func FreeGlyphSet(c *xgb.Conn, Glyphset Glyphset) FreeGlyphSetCookie {
|
||||
// FreeGlyphSetChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using FreeGlyphSetCookie.Check()
|
||||
func FreeGlyphSetChecked(c *xgb.Conn, Glyphset Glyphset) FreeGlyphSetCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'FreeGlyphSet' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(freeGlyphSetRequest(c, Glyphset), cookie)
|
||||
return FreeGlyphSetCookie{cookie}
|
||||
@@ -2615,6 +2705,9 @@ type AddGlyphsCookie struct {
|
||||
// AddGlyphs sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func AddGlyphs(c *xgb.Conn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint32, Glyphs []Glyphinfo, Data []byte) AddGlyphsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'AddGlyphs' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(addGlyphsRequest(c, Glyphset, GlyphsLen, Glyphids, Glyphs, Data), cookie)
|
||||
return AddGlyphsCookie{cookie}
|
||||
@@ -2623,6 +2716,9 @@ func AddGlyphs(c *xgb.Conn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint
|
||||
// AddGlyphsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using AddGlyphsCookie.Check()
|
||||
func AddGlyphsChecked(c *xgb.Conn, Glyphset Glyphset, GlyphsLen uint32, Glyphids []uint32, Glyphs []Glyphinfo, Data []byte) AddGlyphsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'AddGlyphs' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(addGlyphsRequest(c, Glyphset, GlyphsLen, Glyphids, Glyphs, Data), cookie)
|
||||
return AddGlyphsCookie{cookie}
|
||||
@@ -2678,6 +2774,9 @@ type FreeGlyphsCookie struct {
|
||||
// FreeGlyphs sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func FreeGlyphs(c *xgb.Conn, Glyphset Glyphset, Glyphs []Glyph) FreeGlyphsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'FreeGlyphs' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(freeGlyphsRequest(c, Glyphset, Glyphs), cookie)
|
||||
return FreeGlyphsCookie{cookie}
|
||||
@@ -2686,6 +2785,9 @@ func FreeGlyphs(c *xgb.Conn, Glyphset Glyphset, Glyphs []Glyph) FreeGlyphsCookie
|
||||
// FreeGlyphsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using FreeGlyphsCookie.Check()
|
||||
func FreeGlyphsChecked(c *xgb.Conn, Glyphset Glyphset, Glyphs []Glyph) FreeGlyphsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'FreeGlyphs' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(freeGlyphsRequest(c, Glyphset, Glyphs), cookie)
|
||||
return FreeGlyphsCookie{cookie}
|
||||
@@ -2733,6 +2835,9 @@ type CompositeGlyphs8Cookie struct {
|
||||
// CompositeGlyphs8 sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CompositeGlyphs8(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs8Cookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CompositeGlyphs8' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(compositeGlyphs8Request(c, Op, Src, Dst, MaskFormat, Glyphset, SrcX, SrcY, Glyphcmds), cookie)
|
||||
return CompositeGlyphs8Cookie{cookie}
|
||||
@@ -2741,6 +2846,9 @@ func CompositeGlyphs8(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat
|
||||
// CompositeGlyphs8Checked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CompositeGlyphs8Cookie.Check()
|
||||
func CompositeGlyphs8Checked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs8Cookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CompositeGlyphs8' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(compositeGlyphs8Request(c, Op, Src, Dst, MaskFormat, Glyphset, SrcX, SrcY, Glyphcmds), cookie)
|
||||
return CompositeGlyphs8Cookie{cookie}
|
||||
@@ -2805,6 +2913,9 @@ type CompositeGlyphs16Cookie struct {
|
||||
// CompositeGlyphs16 sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CompositeGlyphs16(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs16Cookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CompositeGlyphs16' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(compositeGlyphs16Request(c, Op, Src, Dst, MaskFormat, Glyphset, SrcX, SrcY, Glyphcmds), cookie)
|
||||
return CompositeGlyphs16Cookie{cookie}
|
||||
@@ -2813,6 +2924,9 @@ func CompositeGlyphs16(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskForma
|
||||
// CompositeGlyphs16Checked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CompositeGlyphs16Cookie.Check()
|
||||
func CompositeGlyphs16Checked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs16Cookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CompositeGlyphs16' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(compositeGlyphs16Request(c, Op, Src, Dst, MaskFormat, Glyphset, SrcX, SrcY, Glyphcmds), cookie)
|
||||
return CompositeGlyphs16Cookie{cookie}
|
||||
@@ -2877,6 +2991,9 @@ type CompositeGlyphs32Cookie struct {
|
||||
// CompositeGlyphs32 sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CompositeGlyphs32(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs32Cookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CompositeGlyphs32' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(compositeGlyphs32Request(c, Op, Src, Dst, MaskFormat, Glyphset, SrcX, SrcY, Glyphcmds), cookie)
|
||||
return CompositeGlyphs32Cookie{cookie}
|
||||
@@ -2885,6 +3002,9 @@ func CompositeGlyphs32(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskForma
|
||||
// CompositeGlyphs32Checked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CompositeGlyphs32Cookie.Check()
|
||||
func CompositeGlyphs32Checked(c *xgb.Conn, Op byte, Src Picture, Dst Picture, MaskFormat Pictformat, Glyphset Glyphset, SrcX int16, SrcY int16, Glyphcmds []byte) CompositeGlyphs32Cookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CompositeGlyphs32' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(compositeGlyphs32Request(c, Op, Src, Dst, MaskFormat, Glyphset, SrcX, SrcY, Glyphcmds), cookie)
|
||||
return CompositeGlyphs32Cookie{cookie}
|
||||
@@ -2949,6 +3069,9 @@ type FillRectanglesCookie struct {
|
||||
// FillRectangles sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func FillRectangles(c *xgb.Conn, Op byte, Dst Picture, Color Color, Rects []xproto.Rectangle) FillRectanglesCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'FillRectangles' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(fillRectanglesRequest(c, Op, Dst, Color, Rects), cookie)
|
||||
return FillRectanglesCookie{cookie}
|
||||
@@ -2957,6 +3080,9 @@ func FillRectangles(c *xgb.Conn, Op byte, Dst Picture, Color Color, Rects []xpro
|
||||
// FillRectanglesChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using FillRectanglesCookie.Check()
|
||||
func FillRectanglesChecked(c *xgb.Conn, Op byte, Dst Picture, Color Color, Rects []xproto.Rectangle) FillRectanglesCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'FillRectangles' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(fillRectanglesRequest(c, Op, Dst, Color, Rects), cookie)
|
||||
return FillRectanglesCookie{cookie}
|
||||
@@ -3011,6 +3137,9 @@ type CreateCursorCookie struct {
|
||||
// CreateCursor sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateCursor(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X uint16, Y uint16) CreateCursorCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateCursor' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createCursorRequest(c, Cid, Source, X, Y), cookie)
|
||||
return CreateCursorCookie{cookie}
|
||||
@@ -3019,6 +3148,9 @@ func CreateCursor(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X uint16, Y ui
|
||||
// CreateCursorChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateCursorCookie.Check()
|
||||
func CreateCursorChecked(c *xgb.Conn, Cid xproto.Cursor, Source Picture, X uint16, Y uint16) CreateCursorCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateCursor' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createCursorRequest(c, Cid, Source, X, Y), cookie)
|
||||
return CreateCursorCookie{cookie}
|
||||
@@ -3069,6 +3201,9 @@ type SetPictureTransformCookie struct {
|
||||
// SetPictureTransform sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetPictureTransform(c *xgb.Conn, Picture Picture, Transform Transform) SetPictureTransformCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'SetPictureTransform' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setPictureTransformRequest(c, Picture, Transform), cookie)
|
||||
return SetPictureTransformCookie{cookie}
|
||||
@@ -3077,6 +3212,9 @@ func SetPictureTransform(c *xgb.Conn, Picture Picture, Transform Transform) SetP
|
||||
// SetPictureTransformChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetPictureTransformCookie.Check()
|
||||
func SetPictureTransformChecked(c *xgb.Conn, Picture Picture, Transform Transform) SetPictureTransformCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'SetPictureTransform' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setPictureTransformRequest(c, Picture, Transform), cookie)
|
||||
return SetPictureTransformCookie{cookie}
|
||||
@@ -3124,6 +3262,9 @@ type QueryFiltersCookie struct {
|
||||
// QueryFilters sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryFiltersCookie.Reply()
|
||||
func QueryFilters(c *xgb.Conn, Drawable xproto.Drawable) QueryFiltersCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'QueryFilters' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryFiltersRequest(c, Drawable), cookie)
|
||||
return QueryFiltersCookie{cookie}
|
||||
@@ -3132,6 +3273,9 @@ func QueryFilters(c *xgb.Conn, Drawable xproto.Drawable) QueryFiltersCookie {
|
||||
// QueryFiltersUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryFiltersUnchecked(c *xgb.Conn, Drawable xproto.Drawable) QueryFiltersCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'QueryFilters' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryFiltersRequest(c, Drawable), cookie)
|
||||
return QueryFiltersCookie{cookie}
|
||||
@@ -3225,6 +3369,9 @@ type SetPictureFilterCookie struct {
|
||||
// SetPictureFilter sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetPictureFilter(c *xgb.Conn, Picture Picture, FilterLen uint16, Filter string, Values []Fixed) SetPictureFilterCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'SetPictureFilter' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setPictureFilterRequest(c, Picture, FilterLen, Filter, Values), cookie)
|
||||
return SetPictureFilterCookie{cookie}
|
||||
@@ -3233,6 +3380,9 @@ func SetPictureFilter(c *xgb.Conn, Picture Picture, FilterLen uint16, Filter str
|
||||
// SetPictureFilterChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetPictureFilterCookie.Check()
|
||||
func SetPictureFilterChecked(c *xgb.Conn, Picture Picture, FilterLen uint16, Filter string, Values []Fixed) SetPictureFilterCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'SetPictureFilter' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setPictureFilterRequest(c, Picture, FilterLen, Filter, Values), cookie)
|
||||
return SetPictureFilterCookie{cookie}
|
||||
@@ -3288,6 +3438,9 @@ type CreateAnimCursorCookie struct {
|
||||
// CreateAnimCursor sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateAnimCursor(c *xgb.Conn, Cid xproto.Cursor, Cursors []Animcursorelt) CreateAnimCursorCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateAnimCursor' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createAnimCursorRequest(c, Cid, Cursors), cookie)
|
||||
return CreateAnimCursorCookie{cookie}
|
||||
@@ -3296,6 +3449,9 @@ func CreateAnimCursor(c *xgb.Conn, Cid xproto.Cursor, Cursors []Animcursorelt) C
|
||||
// CreateAnimCursorChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateAnimCursorCookie.Check()
|
||||
func CreateAnimCursorChecked(c *xgb.Conn, Cid xproto.Cursor, Cursors []Animcursorelt) CreateAnimCursorCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateAnimCursor' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createAnimCursorRequest(c, Cid, Cursors), cookie)
|
||||
return CreateAnimCursorCookie{cookie}
|
||||
@@ -3339,6 +3495,9 @@ type AddTrapsCookie struct {
|
||||
// AddTraps sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func AddTraps(c *xgb.Conn, Picture Picture, XOff int16, YOff int16, Traps []Trap) AddTrapsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'AddTraps' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(addTrapsRequest(c, Picture, XOff, YOff, Traps), cookie)
|
||||
return AddTrapsCookie{cookie}
|
||||
@@ -3347,6 +3506,9 @@ func AddTraps(c *xgb.Conn, Picture Picture, XOff int16, YOff int16, Traps []Trap
|
||||
// AddTrapsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using AddTrapsCookie.Check()
|
||||
func AddTrapsChecked(c *xgb.Conn, Picture Picture, XOff int16, YOff int16, Traps []Trap) AddTrapsCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'AddTraps' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(addTrapsRequest(c, Picture, XOff, YOff, Traps), cookie)
|
||||
return AddTrapsCookie{cookie}
|
||||
@@ -3396,6 +3558,9 @@ type CreateSolidFillCookie struct {
|
||||
// CreateSolidFill sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateSolidFill(c *xgb.Conn, Picture Picture, Color Color) CreateSolidFillCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateSolidFill' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createSolidFillRequest(c, Picture, Color), cookie)
|
||||
return CreateSolidFillCookie{cookie}
|
||||
@@ -3404,6 +3569,9 @@ func CreateSolidFill(c *xgb.Conn, Picture Picture, Color Color) CreateSolidFillC
|
||||
// CreateSolidFillChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateSolidFillCookie.Check()
|
||||
func CreateSolidFillChecked(c *xgb.Conn, Picture Picture, Color Color) CreateSolidFillCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateSolidFill' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createSolidFillRequest(c, Picture, Color), cookie)
|
||||
return CreateSolidFillCookie{cookie}
|
||||
@@ -3451,6 +3619,9 @@ type CreateLinearGradientCookie struct {
|
||||
// CreateLinearGradient sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateLinearGradient(c *xgb.Conn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) CreateLinearGradientCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateLinearGradient' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createLinearGradientRequest(c, Picture, P1, P2, NumStops, Stops, Colors), cookie)
|
||||
return CreateLinearGradientCookie{cookie}
|
||||
@@ -3459,6 +3630,9 @@ func CreateLinearGradient(c *xgb.Conn, Picture Picture, P1 Pointfix, P2 Pointfix
|
||||
// CreateLinearGradientChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateLinearGradientCookie.Check()
|
||||
func CreateLinearGradientChecked(c *xgb.Conn, Picture Picture, P1 Pointfix, P2 Pointfix, NumStops uint32, Stops []Fixed, Colors []Color) CreateLinearGradientCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateLinearGradient' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createLinearGradientRequest(c, Picture, P1, P2, NumStops, Stops, Colors), cookie)
|
||||
return CreateLinearGradientCookie{cookie}
|
||||
@@ -3523,6 +3697,9 @@ type CreateRadialGradientCookie struct {
|
||||
// CreateRadialGradient sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateRadialGradient(c *xgb.Conn, Picture Picture, Inner Pointfix, Outer Pointfix, InnerRadius Fixed, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateRadialGradientCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateRadialGradient' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createRadialGradientRequest(c, Picture, Inner, Outer, InnerRadius, OuterRadius, NumStops, Stops, Colors), cookie)
|
||||
return CreateRadialGradientCookie{cookie}
|
||||
@@ -3531,6 +3708,9 @@ func CreateRadialGradient(c *xgb.Conn, Picture Picture, Inner Pointfix, Outer Po
|
||||
// CreateRadialGradientChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateRadialGradientCookie.Check()
|
||||
func CreateRadialGradientChecked(c *xgb.Conn, Picture Picture, Inner Pointfix, Outer Pointfix, InnerRadius Fixed, OuterRadius Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateRadialGradientCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateRadialGradient' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createRadialGradientRequest(c, Picture, Inner, Outer, InnerRadius, OuterRadius, NumStops, Stops, Colors), cookie)
|
||||
return CreateRadialGradientCookie{cookie}
|
||||
@@ -3601,6 +3781,9 @@ type CreateConicalGradientCookie struct {
|
||||
// CreateConicalGradient sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateConicalGradient(c *xgb.Conn, Picture Picture, Center Pointfix, Angle Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateConicalGradientCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateConicalGradient' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createConicalGradientRequest(c, Picture, Center, Angle, NumStops, Stops, Colors), cookie)
|
||||
return CreateConicalGradientCookie{cookie}
|
||||
@@ -3609,6 +3792,9 @@ func CreateConicalGradient(c *xgb.Conn, Picture Picture, Center Pointfix, Angle
|
||||
// CreateConicalGradientChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateConicalGradientCookie.Check()
|
||||
func CreateConicalGradientChecked(c *xgb.Conn, Picture Picture, Center Pointfix, Angle Fixed, NumStops uint32, Stops []Fixed, Colors []Color) CreateConicalGradientCookie {
|
||||
if _, ok := c.Extensions["RENDER"]; !ok {
|
||||
panic("Cannot issue request 'CreateConicalGradient' using the uninitialized extension 'RENDER'. render.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createConicalGradientRequest(c, Picture, Center, Angle, NumStops, Stops, Colors), cookie)
|
||||
return CreateConicalGradientCookie{cookie}
|
||||
|
||||
+31
-7
@@ -2,7 +2,7 @@
|
||||
package res
|
||||
|
||||
/*
|
||||
This file was generated by res.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by res.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,12 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["X-Resource"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
// Skipping definition for base type 'Card32'
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
@@ -58,12 +64,6 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
|
||||
// Skipping definition for base type 'Char'
|
||||
|
||||
type Client struct {
|
||||
ResourceBase uint32
|
||||
ResourceMask uint32
|
||||
@@ -180,6 +180,9 @@ 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, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajor, ClientMinor), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -188,6 +191,9 @@ func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor byte) QueryVersionC
|
||||
// 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, ClientMajor byte, ClientMinor byte) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajor, ClientMinor), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -269,6 +275,9 @@ type QueryClientsCookie struct {
|
||||
// QueryClients sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryClientsCookie.Reply()
|
||||
func QueryClients(c *xgb.Conn) QueryClientsCookie {
|
||||
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
|
||||
panic("Cannot issue request 'QueryClients' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryClientsRequest(c), cookie)
|
||||
return QueryClientsCookie{cookie}
|
||||
@@ -277,6 +286,9 @@ func QueryClients(c *xgb.Conn) QueryClientsCookie {
|
||||
// QueryClientsUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryClientsUnchecked(c *xgb.Conn) QueryClientsCookie {
|
||||
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
|
||||
panic("Cannot issue request 'QueryClients' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryClientsRequest(c), cookie)
|
||||
return QueryClientsCookie{cookie}
|
||||
@@ -355,6 +367,9 @@ type QueryClientResourcesCookie struct {
|
||||
// QueryClientResources sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryClientResourcesCookie.Reply()
|
||||
func QueryClientResources(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie {
|
||||
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
|
||||
panic("Cannot issue request 'QueryClientResources' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryClientResourcesRequest(c, Xid), cookie)
|
||||
return QueryClientResourcesCookie{cookie}
|
||||
@@ -363,6 +378,9 @@ func QueryClientResources(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie {
|
||||
// QueryClientResourcesUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryClientResourcesUnchecked(c *xgb.Conn, Xid uint32) QueryClientResourcesCookie {
|
||||
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
|
||||
panic("Cannot issue request 'QueryClientResources' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryClientResourcesRequest(c, Xid), cookie)
|
||||
return QueryClientResourcesCookie{cookie}
|
||||
@@ -444,6 +462,9 @@ type QueryClientPixmapBytesCookie struct {
|
||||
// QueryClientPixmapBytes sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryClientPixmapBytesCookie.Reply()
|
||||
func QueryClientPixmapBytes(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCookie {
|
||||
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
|
||||
panic("Cannot issue request 'QueryClientPixmapBytes' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryClientPixmapBytesRequest(c, Xid), cookie)
|
||||
return QueryClientPixmapBytesCookie{cookie}
|
||||
@@ -452,6 +473,9 @@ func QueryClientPixmapBytes(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCooki
|
||||
// QueryClientPixmapBytesUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryClientPixmapBytesUnchecked(c *xgb.Conn, Xid uint32) QueryClientPixmapBytesCookie {
|
||||
if _, ok := c.Extensions["X-RESOURCE"]; !ok {
|
||||
panic("Cannot issue request 'QueryClientPixmapBytes' using the uninitialized extension 'X-Resource'. res.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryClientPixmapBytesRequest(c, Xid), cookie)
|
||||
return QueryClientPixmapBytesCookie{cookie}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package screensaver
|
||||
|
||||
/*
|
||||
This file was generated by screensaver.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by screensaver.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,12 +40,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["MIT-SCREEN-SAVER"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
@@ -64,6 +58,12 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
const (
|
||||
KindBlanked = 0
|
||||
KindInternal = 1
|
||||
@@ -222,6 +222,9 @@ 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, ClientMajorVersion byte, ClientMinorVersion byte) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -230,6 +233,9 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion byte, ClientMinorVersion byte)
|
||||
// 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, ClientMajorVersion byte, ClientMinorVersion byte) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -316,6 +322,9 @@ type QueryInfoCookie struct {
|
||||
// QueryInfo sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryInfoCookie.Reply()
|
||||
func QueryInfo(c *xgb.Conn, Drawable xproto.Drawable) QueryInfoCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'QueryInfo' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryInfoRequest(c, Drawable), cookie)
|
||||
return QueryInfoCookie{cookie}
|
||||
@@ -324,6 +333,9 @@ func QueryInfo(c *xgb.Conn, Drawable xproto.Drawable) QueryInfoCookie {
|
||||
// QueryInfoUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryInfoUnchecked(c *xgb.Conn, Drawable xproto.Drawable) QueryInfoCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'QueryInfo' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryInfoRequest(c, Drawable), cookie)
|
||||
return QueryInfoCookie{cookie}
|
||||
@@ -418,6 +430,9 @@ type SelectInputCookie struct {
|
||||
// SelectInput sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SelectInput(c *xgb.Conn, Drawable xproto.Drawable, EventMask uint32) SelectInputCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'SelectInput' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(selectInputRequest(c, Drawable, EventMask), cookie)
|
||||
return SelectInputCookie{cookie}
|
||||
@@ -426,6 +441,9 @@ func SelectInput(c *xgb.Conn, Drawable xproto.Drawable, EventMask uint32) Select
|
||||
// SelectInputChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SelectInputCookie.Check()
|
||||
func SelectInputChecked(c *xgb.Conn, Drawable xproto.Drawable, EventMask uint32) SelectInputCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'SelectInput' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(selectInputRequest(c, Drawable, EventMask), cookie)
|
||||
return SelectInputCookie{cookie}
|
||||
@@ -470,6 +488,9 @@ type SetAttributesCookie struct {
|
||||
// SetAttributes sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetAttributes(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) SetAttributesCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'SetAttributes' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setAttributesRequest(c, Drawable, X, Y, Width, Height, BorderWidth, Class, Depth, Visual, ValueMask, ValueList), cookie)
|
||||
return SetAttributesCookie{cookie}
|
||||
@@ -478,6 +499,9 @@ func SetAttributes(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Widt
|
||||
// SetAttributesChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetAttributesCookie.Check()
|
||||
func SetAttributesChecked(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) SetAttributesCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'SetAttributes' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setAttributesRequest(c, Drawable, X, Y, Width, Height, BorderWidth, Class, Depth, Visual, ValueMask, ValueList), cookie)
|
||||
return SetAttributesCookie{cookie}
|
||||
@@ -551,6 +575,9 @@ type UnsetAttributesCookie struct {
|
||||
// UnsetAttributes sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func UnsetAttributes(c *xgb.Conn, Drawable xproto.Drawable) UnsetAttributesCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'UnsetAttributes' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(unsetAttributesRequest(c, Drawable), cookie)
|
||||
return UnsetAttributesCookie{cookie}
|
||||
@@ -559,6 +586,9 @@ func UnsetAttributes(c *xgb.Conn, Drawable xproto.Drawable) UnsetAttributesCooki
|
||||
// UnsetAttributesChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using UnsetAttributesCookie.Check()
|
||||
func UnsetAttributesChecked(c *xgb.Conn, Drawable xproto.Drawable) UnsetAttributesCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'UnsetAttributes' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(unsetAttributesRequest(c, Drawable), cookie)
|
||||
return UnsetAttributesCookie{cookie}
|
||||
@@ -600,6 +630,9 @@ type SuspendCookie struct {
|
||||
// Suspend sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Suspend(c *xgb.Conn, Suspend bool) SuspendCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'Suspend' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(suspendRequest(c, Suspend), cookie)
|
||||
return SuspendCookie{cookie}
|
||||
@@ -608,6 +641,9 @@ func Suspend(c *xgb.Conn, Suspend bool) SuspendCookie {
|
||||
// SuspendChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SuspendCookie.Check()
|
||||
func SuspendChecked(c *xgb.Conn, Suspend bool) SuspendCookie {
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
panic("Cannot issue request 'Suspend' using the uninitialized extension 'MIT-SCREEN-SAVER'. screensaver.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(suspendRequest(c, Suspend), cookie)
|
||||
return SuspendCookie{cookie}
|
||||
|
||||
+59
-5
@@ -2,7 +2,7 @@
|
||||
package shape
|
||||
|
||||
/*
|
||||
This file was generated by shape.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by shape.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,10 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["SHAPE"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
@@ -60,10 +64,6 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
const (
|
||||
SoSet = 0
|
||||
SoUnion = 1
|
||||
@@ -217,6 +217,9 @@ 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) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -225,6 +228,9 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
|
||||
// QueryVersionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryVersionUnchecked(c *xgb.Conn) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -300,6 +306,9 @@ type RectanglesCookie struct {
|
||||
// Rectangles sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Rectangles(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) RectanglesCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'Rectangles' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(rectanglesRequest(c, Operation, DestinationKind, Ordering, DestinationWindow, XOffset, YOffset, Rectangles), cookie)
|
||||
return RectanglesCookie{cookie}
|
||||
@@ -308,6 +317,9 @@ func Rectangles(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte,
|
||||
// RectanglesChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using RectanglesCookie.Check()
|
||||
func RectanglesChecked(c *xgb.Conn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) RectanglesCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'Rectangles' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(rectanglesRequest(c, Operation, DestinationKind, Ordering, DestinationWindow, XOffset, YOffset, Rectangles), cookie)
|
||||
return RectanglesCookie{cookie}
|
||||
@@ -368,6 +380,9 @@ type MaskCookie struct {
|
||||
// Mask sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Mask(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) MaskCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'Mask' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(maskRequest(c, Operation, DestinationKind, DestinationWindow, XOffset, YOffset, SourceBitmap), cookie)
|
||||
return MaskCookie{cookie}
|
||||
@@ -376,6 +391,9 @@ func Mask(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xpr
|
||||
// MaskChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using MaskCookie.Check()
|
||||
func MaskChecked(c *xgb.Conn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) MaskCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'Mask' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(maskRequest(c, Operation, DestinationKind, DestinationWindow, XOffset, YOffset, SourceBitmap), cookie)
|
||||
return MaskCookie{cookie}
|
||||
@@ -434,6 +452,9 @@ type CombineCookie struct {
|
||||
// Combine sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Combine(c *xgb.Conn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) CombineCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'Combine' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(combineRequest(c, Operation, DestinationKind, SourceKind, DestinationWindow, XOffset, YOffset, SourceWindow), cookie)
|
||||
return CombineCookie{cookie}
|
||||
@@ -442,6 +463,9 @@ func Combine(c *xgb.Conn, Operation Op, DestinationKind Kind, SourceKind Kind, D
|
||||
// CombineChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CombineCookie.Check()
|
||||
func CombineChecked(c *xgb.Conn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) CombineCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'Combine' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(combineRequest(c, Operation, DestinationKind, SourceKind, DestinationWindow, XOffset, YOffset, SourceWindow), cookie)
|
||||
return CombineCookie{cookie}
|
||||
@@ -503,6 +527,9 @@ type OffsetCookie struct {
|
||||
// Offset sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Offset(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) OffsetCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'Offset' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(offsetRequest(c, DestinationKind, DestinationWindow, XOffset, YOffset), cookie)
|
||||
return OffsetCookie{cookie}
|
||||
@@ -511,6 +538,9 @@ func Offset(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window,
|
||||
// OffsetChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using OffsetCookie.Check()
|
||||
func OffsetChecked(c *xgb.Conn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) OffsetCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'Offset' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(offsetRequest(c, DestinationKind, DestinationWindow, XOffset, YOffset), cookie)
|
||||
return OffsetCookie{cookie}
|
||||
@@ -563,6 +593,9 @@ type QueryExtentsCookie struct {
|
||||
// QueryExtents sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryExtentsCookie.Reply()
|
||||
func QueryExtents(c *xgb.Conn, DestinationWindow xproto.Window) QueryExtentsCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'QueryExtents' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryExtentsRequest(c, DestinationWindow), cookie)
|
||||
return QueryExtentsCookie{cookie}
|
||||
@@ -571,6 +604,9 @@ func QueryExtents(c *xgb.Conn, DestinationWindow xproto.Window) QueryExtentsCook
|
||||
// QueryExtentsUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryExtentsUnchecked(c *xgb.Conn, DestinationWindow xproto.Window) QueryExtentsCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'QueryExtents' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryExtentsRequest(c, DestinationWindow), cookie)
|
||||
return QueryExtentsCookie{cookie}
|
||||
@@ -692,6 +728,9 @@ type SelectInputCookie struct {
|
||||
// SelectInput sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SelectInput(c *xgb.Conn, DestinationWindow xproto.Window, Enable bool) SelectInputCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'SelectInput' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(selectInputRequest(c, DestinationWindow, Enable), cookie)
|
||||
return SelectInputCookie{cookie}
|
||||
@@ -700,6 +739,9 @@ func SelectInput(c *xgb.Conn, DestinationWindow xproto.Window, Enable bool) Sele
|
||||
// SelectInputChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SelectInputCookie.Check()
|
||||
func SelectInputChecked(c *xgb.Conn, DestinationWindow xproto.Window, Enable bool) SelectInputCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'SelectInput' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(selectInputRequest(c, DestinationWindow, Enable), cookie)
|
||||
return SelectInputCookie{cookie}
|
||||
@@ -750,6 +792,9 @@ type InputSelectedCookie struct {
|
||||
// InputSelected sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling InputSelectedCookie.Reply()
|
||||
func InputSelected(c *xgb.Conn, DestinationWindow xproto.Window) InputSelectedCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'InputSelected' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(inputSelectedRequest(c, DestinationWindow), cookie)
|
||||
return InputSelectedCookie{cookie}
|
||||
@@ -758,6 +803,9 @@ func InputSelected(c *xgb.Conn, DestinationWindow xproto.Window) InputSelectedCo
|
||||
// InputSelectedUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func InputSelectedUnchecked(c *xgb.Conn, DestinationWindow xproto.Window) InputSelectedCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'InputSelected' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(inputSelectedRequest(c, DestinationWindow), cookie)
|
||||
return InputSelectedCookie{cookie}
|
||||
@@ -833,6 +881,9 @@ type GetRectanglesCookie struct {
|
||||
// GetRectangles sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetRectanglesCookie.Reply()
|
||||
func GetRectangles(c *xgb.Conn, Window xproto.Window, SourceKind Kind) GetRectanglesCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'GetRectangles' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getRectanglesRequest(c, Window, SourceKind), cookie)
|
||||
return GetRectanglesCookie{cookie}
|
||||
@@ -841,6 +892,9 @@ func GetRectangles(c *xgb.Conn, Window xproto.Window, SourceKind Kind) GetRectan
|
||||
// GetRectanglesUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetRectanglesUnchecked(c *xgb.Conn, Window xproto.Window, SourceKind Kind) GetRectanglesCookie {
|
||||
if _, ok := c.Extensions["SHAPE"]; !ok {
|
||||
panic("Cannot issue request 'GetRectangles' using the uninitialized extension 'SHAPE'. shape.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getRectanglesRequest(c, Window, SourceKind), cookie)
|
||||
return GetRectanglesCookie{cookie}
|
||||
|
||||
+43
-7
@@ -2,7 +2,7 @@
|
||||
package shm
|
||||
|
||||
/*
|
||||
This file was generated by shm.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by shm.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,12 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["MIT-SHM"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
@@ -58,12 +64,6 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
type Seg uint32
|
||||
|
||||
func NewSegId(c *xgb.Conn) (Seg, error) {
|
||||
@@ -220,6 +220,9 @@ 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) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -228,6 +231,9 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
|
||||
// QueryVersionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryVersionUnchecked(c *xgb.Conn) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -323,6 +329,9 @@ type AttachCookie struct {
|
||||
// Attach sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Attach(c *xgb.Conn, Shmseg Seg, Shmid uint32, ReadOnly bool) AttachCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'Attach' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(attachRequest(c, Shmseg, Shmid, ReadOnly), cookie)
|
||||
return AttachCookie{cookie}
|
||||
@@ -331,6 +340,9 @@ func Attach(c *xgb.Conn, Shmseg Seg, Shmid uint32, ReadOnly bool) AttachCookie {
|
||||
// AttachChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using AttachCookie.Check()
|
||||
func AttachChecked(c *xgb.Conn, Shmseg Seg, Shmid uint32, ReadOnly bool) AttachCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'Attach' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(attachRequest(c, Shmseg, Shmid, ReadOnly), cookie)
|
||||
return AttachCookie{cookie}
|
||||
@@ -384,6 +396,9 @@ type DetachCookie struct {
|
||||
// Detach sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Detach(c *xgb.Conn, Shmseg Seg) DetachCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'Detach' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(detachRequest(c, Shmseg), cookie)
|
||||
return DetachCookie{cookie}
|
||||
@@ -392,6 +407,9 @@ func Detach(c *xgb.Conn, Shmseg Seg) DetachCookie {
|
||||
// DetachChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DetachCookie.Check()
|
||||
func DetachChecked(c *xgb.Conn, Shmseg Seg) DetachCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'Detach' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(detachRequest(c, Shmseg), cookie)
|
||||
return DetachCookie{cookie}
|
||||
@@ -433,6 +451,9 @@ type PutImageCookie struct {
|
||||
// PutImage sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func PutImage(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, TotalHeight uint16, SrcX uint16, SrcY uint16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16, Depth byte, Format byte, SendEvent byte, Shmseg Seg, Offset uint32) PutImageCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'PutImage' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(putImageRequest(c, Drawable, Gc, TotalWidth, TotalHeight, SrcX, SrcY, SrcWidth, SrcHeight, DstX, DstY, Depth, Format, SendEvent, Shmseg, Offset), cookie)
|
||||
return PutImageCookie{cookie}
|
||||
@@ -441,6 +462,9 @@ func PutImage(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWi
|
||||
// PutImageChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using PutImageCookie.Check()
|
||||
func PutImageChecked(c *xgb.Conn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, TotalHeight uint16, SrcX uint16, SrcY uint16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16, Depth byte, Format byte, SendEvent byte, Shmseg Seg, Offset uint32) PutImageCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'PutImage' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(putImageRequest(c, Drawable, Gc, TotalWidth, TotalHeight, SrcX, SrcY, SrcWidth, SrcHeight, DstX, DstY, Depth, Format, SendEvent, Shmseg, Offset), cookie)
|
||||
return PutImageCookie{cookie}
|
||||
@@ -526,6 +550,9 @@ type GetImageCookie struct {
|
||||
// GetImage sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetImageCookie.Reply()
|
||||
func GetImage(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) GetImageCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'GetImage' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getImageRequest(c, Drawable, X, Y, Width, Height, PlaneMask, Format, Shmseg, Offset), cookie)
|
||||
return GetImageCookie{cookie}
|
||||
@@ -534,6 +561,9 @@ func GetImage(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uin
|
||||
// GetImageUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetImageUnchecked(c *xgb.Conn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) GetImageCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'GetImage' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getImageRequest(c, Drawable, X, Y, Width, Height, PlaneMask, Format, Shmseg, Offset), cookie)
|
||||
return GetImageCookie{cookie}
|
||||
@@ -639,6 +669,9 @@ type CreatePixmapCookie struct {
|
||||
// CreatePixmap sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreatePixmap(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, Height uint16, Depth byte, Shmseg Seg, Offset uint32) CreatePixmapCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'CreatePixmap' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createPixmapRequest(c, Pid, Drawable, Width, Height, Depth, Shmseg, Offset), cookie)
|
||||
return CreatePixmapCookie{cookie}
|
||||
@@ -647,6 +680,9 @@ func CreatePixmap(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Widt
|
||||
// CreatePixmapChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreatePixmapCookie.Check()
|
||||
func CreatePixmapChecked(c *xgb.Conn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, Height uint16, Depth byte, Shmseg Seg, Offset uint32) CreatePixmapCookie {
|
||||
if _, ok := c.Extensions["MIT-SHM"]; !ok {
|
||||
panic("Cannot issue request 'CreatePixmap' using the uninitialized extension 'MIT-SHM'. shm.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createPixmapRequest(c, Pid, Drawable, Width, Height, Depth, Shmseg, Offset), cookie)
|
||||
return CreatePixmapCookie{cookie}
|
||||
|
||||
+123
-3
@@ -2,7 +2,7 @@
|
||||
package sync
|
||||
|
||||
/*
|
||||
This file was generated by sync.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by sync.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,8 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["SYNC"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
@@ -62,8 +64,6 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
const (
|
||||
AlarmstateActive = 0
|
||||
AlarmstateInactive = 1
|
||||
@@ -750,6 +750,9 @@ type InitializeCookie struct {
|
||||
// Initialize sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling InitializeCookie.Reply()
|
||||
func Initialize(c *xgb.Conn, DesiredMajorVersion byte, DesiredMinorVersion byte) InitializeCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'Initialize' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(initializeRequest(c, DesiredMajorVersion, DesiredMinorVersion), cookie)
|
||||
return InitializeCookie{cookie}
|
||||
@@ -758,6 +761,9 @@ func Initialize(c *xgb.Conn, DesiredMajorVersion byte, DesiredMinorVersion byte)
|
||||
// InitializeUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func InitializeUnchecked(c *xgb.Conn, DesiredMajorVersion byte, DesiredMinorVersion byte) InitializeCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'Initialize' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(initializeRequest(c, DesiredMajorVersion, DesiredMinorVersion), cookie)
|
||||
return InitializeCookie{cookie}
|
||||
@@ -842,6 +848,9 @@ type ListSystemCountersCookie struct {
|
||||
// ListSystemCounters sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling ListSystemCountersCookie.Reply()
|
||||
func ListSystemCounters(c *xgb.Conn) ListSystemCountersCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'ListSystemCounters' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(listSystemCountersRequest(c), cookie)
|
||||
return ListSystemCountersCookie{cookie}
|
||||
@@ -850,6 +859,9 @@ func ListSystemCounters(c *xgb.Conn) ListSystemCountersCookie {
|
||||
// ListSystemCountersUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ListSystemCountersUnchecked(c *xgb.Conn) ListSystemCountersCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'ListSystemCounters' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(listSystemCountersRequest(c), cookie)
|
||||
return ListSystemCountersCookie{cookie}
|
||||
@@ -928,6 +940,9 @@ type CreateCounterCookie struct {
|
||||
// CreateCounter sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateCounter(c *xgb.Conn, Id Counter, InitialValue Int64) CreateCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'CreateCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createCounterRequest(c, Id, InitialValue), cookie)
|
||||
return CreateCounterCookie{cookie}
|
||||
@@ -936,6 +951,9 @@ func CreateCounter(c *xgb.Conn, Id Counter, InitialValue Int64) CreateCounterCoo
|
||||
// CreateCounterChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateCounterCookie.Check()
|
||||
func CreateCounterChecked(c *xgb.Conn, Id Counter, InitialValue Int64) CreateCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'CreateCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createCounterRequest(c, Id, InitialValue), cookie)
|
||||
return CreateCounterCookie{cookie}
|
||||
@@ -983,6 +1001,9 @@ type DestroyCounterCookie struct {
|
||||
// DestroyCounter sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DestroyCounter(c *xgb.Conn, Counter Counter) DestroyCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'DestroyCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyCounterRequest(c, Counter), cookie)
|
||||
return DestroyCounterCookie{cookie}
|
||||
@@ -991,6 +1012,9 @@ func DestroyCounter(c *xgb.Conn, Counter Counter) DestroyCounterCookie {
|
||||
// DestroyCounterChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyCounterCookie.Check()
|
||||
func DestroyCounterChecked(c *xgb.Conn, Counter Counter) DestroyCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'DestroyCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyCounterRequest(c, Counter), cookie)
|
||||
return DestroyCounterCookie{cookie}
|
||||
@@ -1032,6 +1056,9 @@ type QueryCounterCookie struct {
|
||||
// QueryCounter sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryCounterCookie.Reply()
|
||||
func QueryCounter(c *xgb.Conn, Counter Counter) QueryCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'QueryCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryCounterRequest(c, Counter), cookie)
|
||||
return QueryCounterCookie{cookie}
|
||||
@@ -1040,6 +1067,9 @@ func QueryCounter(c *xgb.Conn, Counter Counter) QueryCounterCookie {
|
||||
// QueryCounterUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryCounterUnchecked(c *xgb.Conn, Counter Counter) QueryCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'QueryCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryCounterRequest(c, Counter), cookie)
|
||||
return QueryCounterCookie{cookie}
|
||||
@@ -1114,6 +1144,9 @@ type AwaitCookie struct {
|
||||
// Await sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func Await(c *xgb.Conn, WaitList []Waitcondition) AwaitCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'Await' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(awaitRequest(c, WaitList), cookie)
|
||||
return AwaitCookie{cookie}
|
||||
@@ -1122,6 +1155,9 @@ func Await(c *xgb.Conn, WaitList []Waitcondition) AwaitCookie {
|
||||
// AwaitChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using AwaitCookie.Check()
|
||||
func AwaitChecked(c *xgb.Conn, WaitList []Waitcondition) AwaitCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'Await' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(awaitRequest(c, WaitList), cookie)
|
||||
return AwaitCookie{cookie}
|
||||
@@ -1162,6 +1198,9 @@ type ChangeCounterCookie struct {
|
||||
// ChangeCounter sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ChangeCounter(c *xgb.Conn, Counter Counter, Amount Int64) ChangeCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'ChangeCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(changeCounterRequest(c, Counter, Amount), cookie)
|
||||
return ChangeCounterCookie{cookie}
|
||||
@@ -1170,6 +1209,9 @@ func ChangeCounter(c *xgb.Conn, Counter Counter, Amount Int64) ChangeCounterCook
|
||||
// ChangeCounterChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ChangeCounterCookie.Check()
|
||||
func ChangeCounterChecked(c *xgb.Conn, Counter Counter, Amount Int64) ChangeCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'ChangeCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(changeCounterRequest(c, Counter, Amount), cookie)
|
||||
return ChangeCounterCookie{cookie}
|
||||
@@ -1217,6 +1259,9 @@ type SetCounterCookie struct {
|
||||
// SetCounter sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetCounter(c *xgb.Conn, Counter Counter, Value Int64) SetCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'SetCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setCounterRequest(c, Counter, Value), cookie)
|
||||
return SetCounterCookie{cookie}
|
||||
@@ -1225,6 +1270,9 @@ func SetCounter(c *xgb.Conn, Counter Counter, Value Int64) SetCounterCookie {
|
||||
// SetCounterChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetCounterCookie.Check()
|
||||
func SetCounterChecked(c *xgb.Conn, Counter Counter, Value Int64) SetCounterCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'SetCounter' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setCounterRequest(c, Counter, Value), cookie)
|
||||
return SetCounterCookie{cookie}
|
||||
@@ -1272,6 +1320,9 @@ type CreateAlarmCookie struct {
|
||||
// CreateAlarm sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateAlarm(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) CreateAlarmCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'CreateAlarm' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createAlarmRequest(c, Id, ValueMask, ValueList), cookie)
|
||||
return CreateAlarmCookie{cookie}
|
||||
@@ -1280,6 +1331,9 @@ func CreateAlarm(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) Cr
|
||||
// CreateAlarmChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateAlarmCookie.Check()
|
||||
func CreateAlarmChecked(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) CreateAlarmCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'CreateAlarm' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createAlarmRequest(c, Id, ValueMask, ValueList), cookie)
|
||||
return CreateAlarmCookie{cookie}
|
||||
@@ -1329,6 +1383,9 @@ type ChangeAlarmCookie struct {
|
||||
// ChangeAlarm sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ChangeAlarm(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) ChangeAlarmCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'ChangeAlarm' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(changeAlarmRequest(c, Id, ValueMask, ValueList), cookie)
|
||||
return ChangeAlarmCookie{cookie}
|
||||
@@ -1337,6 +1394,9 @@ func ChangeAlarm(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) Ch
|
||||
// ChangeAlarmChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ChangeAlarmCookie.Check()
|
||||
func ChangeAlarmChecked(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) ChangeAlarmCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'ChangeAlarm' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(changeAlarmRequest(c, Id, ValueMask, ValueList), cookie)
|
||||
return ChangeAlarmCookie{cookie}
|
||||
@@ -1386,6 +1446,9 @@ type DestroyAlarmCookie struct {
|
||||
// DestroyAlarm sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DestroyAlarm(c *xgb.Conn, Alarm Alarm) DestroyAlarmCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'DestroyAlarm' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyAlarmRequest(c, Alarm), cookie)
|
||||
return DestroyAlarmCookie{cookie}
|
||||
@@ -1394,6 +1457,9 @@ func DestroyAlarm(c *xgb.Conn, Alarm Alarm) DestroyAlarmCookie {
|
||||
// DestroyAlarmChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyAlarmCookie.Check()
|
||||
func DestroyAlarmChecked(c *xgb.Conn, Alarm Alarm) DestroyAlarmCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'DestroyAlarm' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyAlarmRequest(c, Alarm), cookie)
|
||||
return DestroyAlarmCookie{cookie}
|
||||
@@ -1435,6 +1501,9 @@ type QueryAlarmCookie struct {
|
||||
// QueryAlarm sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryAlarmCookie.Reply()
|
||||
func QueryAlarm(c *xgb.Conn, Alarm Alarm) QueryAlarmCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'QueryAlarm' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryAlarmRequest(c, Alarm), cookie)
|
||||
return QueryAlarmCookie{cookie}
|
||||
@@ -1443,6 +1512,9 @@ func QueryAlarm(c *xgb.Conn, Alarm Alarm) QueryAlarmCookie {
|
||||
// QueryAlarmUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryAlarmUnchecked(c *xgb.Conn, Alarm Alarm) QueryAlarmCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'QueryAlarm' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryAlarmRequest(c, Alarm), cookie)
|
||||
return QueryAlarmCookie{cookie}
|
||||
@@ -1536,6 +1608,9 @@ type SetPriorityCookie struct {
|
||||
// SetPriority sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetPriority(c *xgb.Conn, Id uint32, Priority int32) SetPriorityCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'SetPriority' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setPriorityRequest(c, Id, Priority), cookie)
|
||||
return SetPriorityCookie{cookie}
|
||||
@@ -1544,6 +1619,9 @@ func SetPriority(c *xgb.Conn, Id uint32, Priority int32) SetPriorityCookie {
|
||||
// SetPriorityChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetPriorityCookie.Check()
|
||||
func SetPriorityChecked(c *xgb.Conn, Id uint32, Priority int32) SetPriorityCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'SetPriority' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setPriorityRequest(c, Id, Priority), cookie)
|
||||
return SetPriorityCookie{cookie}
|
||||
@@ -1588,6 +1666,9 @@ type GetPriorityCookie struct {
|
||||
// GetPriority sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetPriorityCookie.Reply()
|
||||
func GetPriority(c *xgb.Conn, Id uint32) GetPriorityCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'GetPriority' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getPriorityRequest(c, Id), cookie)
|
||||
return GetPriorityCookie{cookie}
|
||||
@@ -1596,6 +1677,9 @@ func GetPriority(c *xgb.Conn, Id uint32) GetPriorityCookie {
|
||||
// GetPriorityUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetPriorityUnchecked(c *xgb.Conn, Id uint32) GetPriorityCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'GetPriority' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getPriorityRequest(c, Id), cookie)
|
||||
return GetPriorityCookie{cookie}
|
||||
@@ -1670,6 +1754,9 @@ type CreateFenceCookie struct {
|
||||
// CreateFence sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateFence(c *xgb.Conn, Drawable xproto.Drawable, Fence Fence, InitiallyTriggered bool) CreateFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'CreateFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createFenceRequest(c, Drawable, Fence, InitiallyTriggered), cookie)
|
||||
return CreateFenceCookie{cookie}
|
||||
@@ -1678,6 +1765,9 @@ func CreateFence(c *xgb.Conn, Drawable xproto.Drawable, Fence Fence, InitiallyTr
|
||||
// CreateFenceChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateFenceCookie.Check()
|
||||
func CreateFenceChecked(c *xgb.Conn, Drawable xproto.Drawable, Fence Fence, InitiallyTriggered bool) CreateFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'CreateFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createFenceRequest(c, Drawable, Fence, InitiallyTriggered), cookie)
|
||||
return CreateFenceCookie{cookie}
|
||||
@@ -1729,6 +1819,9 @@ type TriggerFenceCookie struct {
|
||||
// TriggerFence sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func TriggerFence(c *xgb.Conn, Fence Fence) TriggerFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'TriggerFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(triggerFenceRequest(c, Fence), cookie)
|
||||
return TriggerFenceCookie{cookie}
|
||||
@@ -1737,6 +1830,9 @@ func TriggerFence(c *xgb.Conn, Fence Fence) TriggerFenceCookie {
|
||||
// TriggerFenceChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using TriggerFenceCookie.Check()
|
||||
func TriggerFenceChecked(c *xgb.Conn, Fence Fence) TriggerFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'TriggerFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(triggerFenceRequest(c, Fence), cookie)
|
||||
return TriggerFenceCookie{cookie}
|
||||
@@ -1778,6 +1874,9 @@ type ResetFenceCookie struct {
|
||||
// ResetFence sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ResetFence(c *xgb.Conn, Fence Fence) ResetFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'ResetFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(resetFenceRequest(c, Fence), cookie)
|
||||
return ResetFenceCookie{cookie}
|
||||
@@ -1786,6 +1885,9 @@ func ResetFence(c *xgb.Conn, Fence Fence) ResetFenceCookie {
|
||||
// ResetFenceChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ResetFenceCookie.Check()
|
||||
func ResetFenceChecked(c *xgb.Conn, Fence Fence) ResetFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'ResetFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(resetFenceRequest(c, Fence), cookie)
|
||||
return ResetFenceCookie{cookie}
|
||||
@@ -1827,6 +1929,9 @@ type DestroyFenceCookie struct {
|
||||
// DestroyFence sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DestroyFence(c *xgb.Conn, Fence Fence) DestroyFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'DestroyFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyFenceRequest(c, Fence), cookie)
|
||||
return DestroyFenceCookie{cookie}
|
||||
@@ -1835,6 +1940,9 @@ func DestroyFence(c *xgb.Conn, Fence Fence) DestroyFenceCookie {
|
||||
// DestroyFenceChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyFenceCookie.Check()
|
||||
func DestroyFenceChecked(c *xgb.Conn, Fence Fence) DestroyFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'DestroyFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyFenceRequest(c, Fence), cookie)
|
||||
return DestroyFenceCookie{cookie}
|
||||
@@ -1876,6 +1984,9 @@ type QueryFenceCookie struct {
|
||||
// QueryFence sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryFenceCookie.Reply()
|
||||
func QueryFence(c *xgb.Conn, Fence Fence) QueryFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'QueryFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryFenceRequest(c, Fence), cookie)
|
||||
return QueryFenceCookie{cookie}
|
||||
@@ -1884,6 +1995,9 @@ func QueryFence(c *xgb.Conn, Fence Fence) QueryFenceCookie {
|
||||
// QueryFenceUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryFenceUnchecked(c *xgb.Conn, Fence Fence) QueryFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'QueryFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryFenceRequest(c, Fence), cookie)
|
||||
return QueryFenceCookie{cookie}
|
||||
@@ -1965,6 +2079,9 @@ type AwaitFenceCookie struct {
|
||||
// AwaitFence sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func AwaitFence(c *xgb.Conn, FenceList []Fence) AwaitFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'AwaitFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(awaitFenceRequest(c, FenceList), cookie)
|
||||
return AwaitFenceCookie{cookie}
|
||||
@@ -1973,6 +2090,9 @@ func AwaitFence(c *xgb.Conn, FenceList []Fence) AwaitFenceCookie {
|
||||
// AwaitFenceChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using AwaitFenceCookie.Check()
|
||||
func AwaitFenceChecked(c *xgb.Conn, FenceList []Fence) AwaitFenceCookie {
|
||||
if _, ok := c.Extensions["SYNC"]; !ok {
|
||||
panic("Cannot issue request 'AwaitFence' using the uninitialized extension 'SYNC'. sync.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(awaitFenceRequest(c, FenceList), cookie)
|
||||
return AwaitFenceCookie{cookie}
|
||||
|
||||
+31
-13
@@ -2,7 +2,7 @@
|
||||
package xcmisc
|
||||
|
||||
/*
|
||||
This file was generated by xc_misc.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by xc_misc.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,18 +40,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["XC-MISC"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
@@ -64,6 +52,18 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// GetVersionCookie is a cookie used only for GetVersion requests.
|
||||
type GetVersionCookie struct {
|
||||
*xgb.Cookie
|
||||
@@ -72,6 +72,9 @@ type GetVersionCookie struct {
|
||||
// GetVersion sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetVersionCookie.Reply()
|
||||
func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
|
||||
if _, ok := c.Extensions["XC-MISC"]; !ok {
|
||||
panic("Cannot issue request 'GetVersion' using the uninitialized extension 'XC-MISC'. xcmisc.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return GetVersionCookie{cookie}
|
||||
@@ -80,6 +83,9 @@ func GetVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint1
|
||||
// GetVersionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) GetVersionCookie {
|
||||
if _, ok := c.Extensions["XC-MISC"]; !ok {
|
||||
panic("Cannot issue request 'GetVersion' using the uninitialized extension 'XC-MISC'. xcmisc.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return GetVersionCookie{cookie}
|
||||
@@ -161,6 +167,9 @@ type GetXIDRangeCookie struct {
|
||||
// GetXIDRange sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetXIDRangeCookie.Reply()
|
||||
func GetXIDRange(c *xgb.Conn) GetXIDRangeCookie {
|
||||
if _, ok := c.Extensions["XC-MISC"]; !ok {
|
||||
panic("Cannot issue request 'GetXIDRange' using the uninitialized extension 'XC-MISC'. xcmisc.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getXIDRangeRequest(c), cookie)
|
||||
return GetXIDRangeCookie{cookie}
|
||||
@@ -169,6 +178,9 @@ func GetXIDRange(c *xgb.Conn) GetXIDRangeCookie {
|
||||
// GetXIDRangeUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetXIDRangeUnchecked(c *xgb.Conn) GetXIDRangeCookie {
|
||||
if _, ok := c.Extensions["XC-MISC"]; !ok {
|
||||
panic("Cannot issue request 'GetXIDRange' using the uninitialized extension 'XC-MISC'. xcmisc.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getXIDRangeRequest(c), cookie)
|
||||
return GetXIDRangeCookie{cookie}
|
||||
@@ -244,6 +256,9 @@ type GetXIDListCookie struct {
|
||||
// GetXIDList sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetXIDListCookie.Reply()
|
||||
func GetXIDList(c *xgb.Conn, Count uint32) GetXIDListCookie {
|
||||
if _, ok := c.Extensions["XC-MISC"]; !ok {
|
||||
panic("Cannot issue request 'GetXIDList' using the uninitialized extension 'XC-MISC'. xcmisc.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getXIDListRequest(c, Count), cookie)
|
||||
return GetXIDListCookie{cookie}
|
||||
@@ -252,6 +267,9 @@ func GetXIDList(c *xgb.Conn, Count uint32) GetXIDListCookie {
|
||||
// GetXIDListUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetXIDListUnchecked(c *xgb.Conn, Count uint32) GetXIDListCookie {
|
||||
if _, ok := c.Extensions["XC-MISC"]; !ok {
|
||||
panic("Cannot issue request 'GetXIDList' using the uninitialized extension 'XC-MISC'. xcmisc.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getXIDListRequest(c, Count), cookie)
|
||||
return GetXIDListCookie{cookie}
|
||||
|
||||
+31
-1
@@ -2,7 +2,7 @@
|
||||
package xevie
|
||||
|
||||
/*
|
||||
This file was generated by xevie.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by xevie.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -122,6 +122,9 @@ 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, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -130,6 +133,9 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uin
|
||||
// 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, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -214,6 +220,9 @@ type StartCookie struct {
|
||||
// Start sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling StartCookie.Reply()
|
||||
func Start(c *xgb.Conn, Screen uint32) StartCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'Start' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(startRequest(c, Screen), cookie)
|
||||
return StartCookie{cookie}
|
||||
@@ -222,6 +231,9 @@ func Start(c *xgb.Conn, Screen uint32) StartCookie {
|
||||
// StartUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func StartUnchecked(c *xgb.Conn, Screen uint32) StartCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'Start' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(startRequest(c, Screen), cookie)
|
||||
return StartCookie{cookie}
|
||||
@@ -295,6 +307,9 @@ type EndCookie struct {
|
||||
// End sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling EndCookie.Reply()
|
||||
func End(c *xgb.Conn, Cmap uint32) EndCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'End' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(endRequest(c, Cmap), cookie)
|
||||
return EndCookie{cookie}
|
||||
@@ -303,6 +318,9 @@ func End(c *xgb.Conn, Cmap uint32) EndCookie {
|
||||
// EndUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func EndUnchecked(c *xgb.Conn, Cmap uint32) EndCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'End' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(endRequest(c, Cmap), cookie)
|
||||
return EndCookie{cookie}
|
||||
@@ -376,6 +394,9 @@ type SendCookie struct {
|
||||
// Send sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling SendCookie.Reply()
|
||||
func Send(c *xgb.Conn, Event Event, DataType uint32) SendCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'Send' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(sendRequest(c, Event, DataType), cookie)
|
||||
return SendCookie{cookie}
|
||||
@@ -384,6 +405,9 @@ func Send(c *xgb.Conn, Event Event, DataType uint32) SendCookie {
|
||||
// SendUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SendUnchecked(c *xgb.Conn, Event Event, DataType uint32) SendCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'Send' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(sendRequest(c, Event, DataType), cookie)
|
||||
return SendCookie{cookie}
|
||||
@@ -465,6 +489,9 @@ type SelectInputCookie struct {
|
||||
// SelectInput sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling SelectInputCookie.Reply()
|
||||
func SelectInput(c *xgb.Conn, EventMask uint32) SelectInputCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'SelectInput' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(selectInputRequest(c, EventMask), cookie)
|
||||
return SelectInputCookie{cookie}
|
||||
@@ -473,6 +500,9 @@ func SelectInput(c *xgb.Conn, EventMask uint32) SelectInputCookie {
|
||||
// SelectInputUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SelectInputUnchecked(c *xgb.Conn, EventMask uint32) SelectInputCookie {
|
||||
if _, ok := c.Extensions["XEVIE"]; !ok {
|
||||
panic("Cannot issue request 'SelectInput' using the uninitialized extension 'XEVIE'. xevie.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(selectInputRequest(c, EventMask), cookie)
|
||||
return SelectInputCookie{cookie}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package xf86dri
|
||||
|
||||
/*
|
||||
This file was generated by xf86dri.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by xf86dri.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,8 +40,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["XFree86-DRI"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
@@ -64,6 +62,8 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Double'
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
type DrmClipRect struct {
|
||||
X1 int16
|
||||
Y1 int16
|
||||
@@ -140,6 +140,9 @@ 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) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -148,6 +151,9 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
|
||||
// QueryVersionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryVersionUnchecked(c *xgb.Conn) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -227,6 +233,9 @@ type QueryDirectRenderingCapableCookie struct {
|
||||
// QueryDirectRenderingCapable sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryDirectRenderingCapableCookie.Reply()
|
||||
func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'QueryDirectRenderingCapable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryDirectRenderingCapableRequest(c, Screen), cookie)
|
||||
return QueryDirectRenderingCapableCookie{cookie}
|
||||
@@ -235,6 +244,9 @@ func QueryDirectRenderingCapable(c *xgb.Conn, Screen uint32) QueryDirectRenderin
|
||||
// QueryDirectRenderingCapableUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryDirectRenderingCapableUnchecked(c *xgb.Conn, Screen uint32) QueryDirectRenderingCapableCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'QueryDirectRenderingCapable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryDirectRenderingCapableRequest(c, Screen), cookie)
|
||||
return QueryDirectRenderingCapableCookie{cookie}
|
||||
@@ -313,6 +325,9 @@ type OpenConnectionCookie struct {
|
||||
// OpenConnection sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling OpenConnectionCookie.Reply()
|
||||
func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'OpenConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(openConnectionRequest(c, Screen), cookie)
|
||||
return OpenConnectionCookie{cookie}
|
||||
@@ -321,6 +336,9 @@ func OpenConnection(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
|
||||
// OpenConnectionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func OpenConnectionUnchecked(c *xgb.Conn, Screen uint32) OpenConnectionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'OpenConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(openConnectionRequest(c, Screen), cookie)
|
||||
return OpenConnectionCookie{cookie}
|
||||
@@ -414,6 +432,9 @@ type CloseConnectionCookie struct {
|
||||
// CloseConnection sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'CloseConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(closeConnectionRequest(c, Screen), cookie)
|
||||
return CloseConnectionCookie{cookie}
|
||||
@@ -422,6 +443,9 @@ func CloseConnection(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
|
||||
// CloseConnectionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CloseConnectionCookie.Check()
|
||||
func CloseConnectionChecked(c *xgb.Conn, Screen uint32) CloseConnectionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'CloseConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(closeConnectionRequest(c, Screen), cookie)
|
||||
return CloseConnectionCookie{cookie}
|
||||
@@ -463,6 +487,9 @@ type GetClientDriverNameCookie struct {
|
||||
// GetClientDriverName sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetClientDriverNameCookie.Reply()
|
||||
func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'GetClientDriverName' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getClientDriverNameRequest(c, Screen), cookie)
|
||||
return GetClientDriverNameCookie{cookie}
|
||||
@@ -471,6 +498,9 @@ func GetClientDriverName(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
|
||||
// GetClientDriverNameUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetClientDriverNameUnchecked(c *xgb.Conn, Screen uint32) GetClientDriverNameCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'GetClientDriverName' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getClientDriverNameRequest(c, Screen), cookie)
|
||||
return GetClientDriverNameCookie{cookie}
|
||||
@@ -568,6 +598,9 @@ type CreateContextCookie struct {
|
||||
// CreateContext sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()
|
||||
func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(createContextRequest(c, Screen, Visual, Context), cookie)
|
||||
return CreateContextCookie{cookie}
|
||||
@@ -576,6 +609,9 @@ func CreateContext(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) Cr
|
||||
// CreateContextUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateContextUnchecked(c *xgb.Conn, Screen uint32, Visual uint32, Context uint32) CreateContextCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(createContextRequest(c, Screen, Visual, Context), cookie)
|
||||
return CreateContextCookie{cookie}
|
||||
@@ -656,6 +692,9 @@ type DestroyContextCookie struct {
|
||||
// DestroyContext sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyContextRequest(c, Screen, Context), cookie)
|
||||
return DestroyContextCookie{cookie}
|
||||
@@ -664,6 +703,9 @@ func DestroyContext(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCo
|
||||
// DestroyContextChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyContextCookie.Check()
|
||||
func DestroyContextChecked(c *xgb.Conn, Screen uint32, Context uint32) DestroyContextCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyContextRequest(c, Screen, Context), cookie)
|
||||
return DestroyContextCookie{cookie}
|
||||
@@ -708,6 +750,9 @@ type CreateDrawableCookie struct {
|
||||
// CreateDrawable sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling CreateDrawableCookie.Reply()
|
||||
func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'CreateDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(createDrawableRequest(c, Screen, Drawable), cookie)
|
||||
return CreateDrawableCookie{cookie}
|
||||
@@ -716,6 +761,9 @@ func CreateDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableC
|
||||
// CreateDrawableUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateDrawableUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) CreateDrawableCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'CreateDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(createDrawableRequest(c, Screen, Drawable), cookie)
|
||||
return CreateDrawableCookie{cookie}
|
||||
@@ -793,6 +841,9 @@ type DestroyDrawableCookie struct {
|
||||
// DestroyDrawable sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'DestroyDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyDrawableRequest(c, Screen, Drawable), cookie)
|
||||
return DestroyDrawableCookie{cookie}
|
||||
@@ -801,6 +852,9 @@ func DestroyDrawable(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawabl
|
||||
// DestroyDrawableChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyDrawableCookie.Check()
|
||||
func DestroyDrawableChecked(c *xgb.Conn, Screen uint32, Drawable uint32) DestroyDrawableCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'DestroyDrawable' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyDrawableRequest(c, Screen, Drawable), cookie)
|
||||
return DestroyDrawableCookie{cookie}
|
||||
@@ -845,6 +899,9 @@ type GetDrawableInfoCookie struct {
|
||||
// GetDrawableInfo sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetDrawableInfoCookie.Reply()
|
||||
func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'GetDrawableInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getDrawableInfoRequest(c, Screen, Drawable), cookie)
|
||||
return GetDrawableInfoCookie{cookie}
|
||||
@@ -853,6 +910,9 @@ func GetDrawableInfo(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInf
|
||||
// GetDrawableInfoUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetDrawableInfoUnchecked(c *xgb.Conn, Screen uint32, Drawable uint32) GetDrawableInfoCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'GetDrawableInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getDrawableInfoRequest(c, Screen, Drawable), cookie)
|
||||
return GetDrawableInfoCookie{cookie}
|
||||
@@ -974,6 +1034,9 @@ type GetDeviceInfoCookie struct {
|
||||
// GetDeviceInfo sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetDeviceInfoCookie.Reply()
|
||||
func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'GetDeviceInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getDeviceInfoRequest(c, Screen), cookie)
|
||||
return GetDeviceInfoCookie{cookie}
|
||||
@@ -982,6 +1045,9 @@ func GetDeviceInfo(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
|
||||
// GetDeviceInfoUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetDeviceInfoUnchecked(c *xgb.Conn, Screen uint32) GetDeviceInfoCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'GetDeviceInfo' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getDeviceInfoRequest(c, Screen), cookie)
|
||||
return GetDeviceInfoCookie{cookie}
|
||||
@@ -1084,6 +1150,9 @@ type AuthConnectionCookie struct {
|
||||
// AuthConnection sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling AuthConnectionCookie.Reply()
|
||||
func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'AuthConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(authConnectionRequest(c, Screen, Magic), cookie)
|
||||
return AuthConnectionCookie{cookie}
|
||||
@@ -1092,6 +1161,9 @@ func AuthConnection(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCook
|
||||
// AuthConnectionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func AuthConnectionUnchecked(c *xgb.Conn, Screen uint32, Magic uint32) AuthConnectionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-DRI"]; !ok {
|
||||
panic("Cannot issue request 'AuthConnection' using the uninitialized extension 'XFree86-DRI'. xf86dri.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(authConnectionRequest(c, Screen, Magic), cookie)
|
||||
return AuthConnectionCookie{cookie}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package xf86vidmode
|
||||
|
||||
/*
|
||||
This file was generated by xf86vidmode.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by xf86vidmode.xml on May 11 2012 11:57:19pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,18 +40,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["XFree86-VidModeExtension"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
@@ -64,6 +52,18 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Bool'
|
||||
|
||||
// Skipping definition for base type 'Float'
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
const (
|
||||
ModeFlagPositiveHsync = 1
|
||||
ModeFlagNegativeHsync = 2
|
||||
@@ -557,6 +557,9 @@ 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) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -565,6 +568,9 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
|
||||
// QueryVersionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func QueryVersionUnchecked(c *xgb.Conn) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -640,6 +646,9 @@ type GetModeLineCookie struct {
|
||||
// GetModeLine sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetModeLineCookie.Reply()
|
||||
func GetModeLine(c *xgb.Conn, Screen uint16) GetModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getModeLineRequest(c, Screen), cookie)
|
||||
return GetModeLineCookie{cookie}
|
||||
@@ -648,6 +657,9 @@ func GetModeLine(c *xgb.Conn, Screen uint16) GetModeLineCookie {
|
||||
// GetModeLineUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetModeLineUnchecked(c *xgb.Conn, Screen uint16) GetModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getModeLineRequest(c, Screen), cookie)
|
||||
return GetModeLineCookie{cookie}
|
||||
@@ -779,6 +791,9 @@ type ModModeLineCookie struct {
|
||||
// ModModeLine sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ModModeLine(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ModModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'ModModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(modModeLineRequest(c, Screen, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, Private), cookie)
|
||||
return ModModeLineCookie{cookie}
|
||||
@@ -787,6 +802,9 @@ func ModModeLine(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16,
|
||||
// ModModeLineChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ModModeLineCookie.Check()
|
||||
func ModModeLineChecked(c *xgb.Conn, Screen uint32, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ModModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'ModModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(modModeLineRequest(c, Screen, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, Private), cookie)
|
||||
return ModModeLineCookie{cookie}
|
||||
@@ -868,6 +886,9 @@ type SwitchModeCookie struct {
|
||||
// SwitchMode sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SwitchMode(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SwitchMode' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(switchModeRequest(c, Screen, Zoom), cookie)
|
||||
return SwitchModeCookie{cookie}
|
||||
@@ -876,6 +897,9 @@ func SwitchMode(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
|
||||
// SwitchModeChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SwitchModeCookie.Check()
|
||||
func SwitchModeChecked(c *xgb.Conn, Screen uint16, Zoom uint16) SwitchModeCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SwitchMode' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(switchModeRequest(c, Screen, Zoom), cookie)
|
||||
return SwitchModeCookie{cookie}
|
||||
@@ -920,6 +944,9 @@ type GetMonitorCookie struct {
|
||||
// GetMonitor sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetMonitorCookie.Reply()
|
||||
func GetMonitor(c *xgb.Conn, Screen uint16) GetMonitorCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetMonitor' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getMonitorRequest(c, Screen), cookie)
|
||||
return GetMonitorCookie{cookie}
|
||||
@@ -928,6 +955,9 @@ func GetMonitor(c *xgb.Conn, Screen uint16) GetMonitorCookie {
|
||||
// GetMonitorUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetMonitorUnchecked(c *xgb.Conn, Screen uint16) GetMonitorCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetMonitor' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getMonitorRequest(c, Screen), cookie)
|
||||
return GetMonitorCookie{cookie}
|
||||
@@ -1056,6 +1086,9 @@ type LockModeSwitchCookie struct {
|
||||
// LockModeSwitch sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func LockModeSwitch(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'LockModeSwitch' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(lockModeSwitchRequest(c, Screen, Lock), cookie)
|
||||
return LockModeSwitchCookie{cookie}
|
||||
@@ -1064,6 +1097,9 @@ func LockModeSwitch(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCooki
|
||||
// LockModeSwitchChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using LockModeSwitchCookie.Check()
|
||||
func LockModeSwitchChecked(c *xgb.Conn, Screen uint16, Lock uint16) LockModeSwitchCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'LockModeSwitch' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(lockModeSwitchRequest(c, Screen, Lock), cookie)
|
||||
return LockModeSwitchCookie{cookie}
|
||||
@@ -1108,6 +1144,9 @@ type GetAllModeLinesCookie struct {
|
||||
// GetAllModeLines sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetAllModeLinesCookie.Reply()
|
||||
func GetAllModeLines(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetAllModeLines' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getAllModeLinesRequest(c, Screen), cookie)
|
||||
return GetAllModeLinesCookie{cookie}
|
||||
@@ -1116,6 +1155,9 @@ func GetAllModeLines(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie {
|
||||
// GetAllModeLinesUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetAllModeLinesUnchecked(c *xgb.Conn, Screen uint16) GetAllModeLinesCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetAllModeLines' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getAllModeLinesRequest(c, Screen), cookie)
|
||||
return GetAllModeLinesCookie{cookie}
|
||||
@@ -1199,6 +1241,9 @@ type AddModeLineCookie struct {
|
||||
// AddModeLine sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func AddModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'AddModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(addModeLineRequest(c, Screen, Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, AfterDotclock, AfterHdisplay, AfterHsyncstart, AfterHsyncend, AfterHtotal, AfterHskew, AfterVdisplay, AfterVsyncstart, AfterVsyncend, AfterVtotal, AfterFlags, Private), cookie)
|
||||
return AddModeLineCookie{cookie}
|
||||
@@ -1207,6 +1252,9 @@ func AddModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16,
|
||||
// AddModeLineChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using AddModeLineCookie.Check()
|
||||
func AddModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, AfterDotclock Dotclock, AfterHdisplay uint16, AfterHsyncstart uint16, AfterHsyncend uint16, AfterHtotal uint16, AfterHskew uint16, AfterVdisplay uint16, AfterVsyncstart uint16, AfterVsyncend uint16, AfterVtotal uint16, AfterFlags uint32, Private []byte) AddModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'AddModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(addModeLineRequest(c, Screen, Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, AfterDotclock, AfterHdisplay, AfterHsyncstart, AfterHsyncend, AfterHtotal, AfterHskew, AfterVdisplay, AfterVsyncstart, AfterVsyncend, AfterVtotal, AfterFlags, Private), cookie)
|
||||
return AddModeLineCookie{cookie}
|
||||
@@ -1328,6 +1376,9 @@ type DeleteModeLineCookie struct {
|
||||
// DeleteModeLine sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DeleteModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) DeleteModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'DeleteModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(deleteModeLineRequest(c, Screen, Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, Private), cookie)
|
||||
return DeleteModeLineCookie{cookie}
|
||||
@@ -1336,6 +1387,9 @@ func DeleteModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint
|
||||
// DeleteModeLineChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DeleteModeLineCookie.Check()
|
||||
func DeleteModeLineChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) DeleteModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'DeleteModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(deleteModeLineRequest(c, Screen, Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, Private), cookie)
|
||||
return DeleteModeLineCookie{cookie}
|
||||
@@ -1420,6 +1474,9 @@ type ValidateModeLineCookie struct {
|
||||
// ValidateModeLine sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling ValidateModeLineCookie.Reply()
|
||||
func ValidateModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ValidateModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'ValidateModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(validateModeLineRequest(c, Screen, Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, Private), cookie)
|
||||
return ValidateModeLineCookie{cookie}
|
||||
@@ -1428,6 +1485,9 @@ func ValidateModeLine(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay ui
|
||||
// ValidateModeLineUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ValidateModeLineUnchecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) ValidateModeLineCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'ValidateModeLine' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(validateModeLineRequest(c, Screen, Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, Private), cookie)
|
||||
return ValidateModeLineCookie{cookie}
|
||||
@@ -1548,6 +1608,9 @@ type SwitchToModeCookie struct {
|
||||
// SwitchToMode sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SwitchToMode(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) SwitchToModeCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SwitchToMode' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(switchToModeRequest(c, Screen, Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, Private), cookie)
|
||||
return SwitchToModeCookie{cookie}
|
||||
@@ -1556,6 +1619,9 @@ func SwitchToMode(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16
|
||||
// SwitchToModeChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SwitchToModeCookie.Check()
|
||||
func SwitchToModeChecked(c *xgb.Conn, Screen uint32, Dotclock Dotclock, Hdisplay uint16, Hsyncstart uint16, Hsyncend uint16, Htotal uint16, Hskew uint16, Vdisplay uint16, Vsyncstart uint16, Vsyncend uint16, Vtotal uint16, Flags uint32, Privsize uint32, Private []byte) SwitchToModeCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SwitchToMode' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(switchToModeRequest(c, Screen, Dotclock, Hdisplay, Hsyncstart, Hsyncend, Htotal, Hskew, Vdisplay, Vsyncstart, Vsyncend, Vtotal, Flags, Privsize, Private), cookie)
|
||||
return SwitchToModeCookie{cookie}
|
||||
@@ -1640,6 +1706,9 @@ type GetViewPortCookie struct {
|
||||
// GetViewPort sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetViewPortCookie.Reply()
|
||||
func GetViewPort(c *xgb.Conn, Screen uint16) GetViewPortCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetViewPort' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getViewPortRequest(c, Screen), cookie)
|
||||
return GetViewPortCookie{cookie}
|
||||
@@ -1648,6 +1717,9 @@ func GetViewPort(c *xgb.Conn, Screen uint16) GetViewPortCookie {
|
||||
// GetViewPortUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetViewPortUnchecked(c *xgb.Conn, Screen uint16) GetViewPortCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetViewPort' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getViewPortRequest(c, Screen), cookie)
|
||||
return GetViewPortCookie{cookie}
|
||||
@@ -1731,6 +1803,9 @@ type SetViewPortCookie struct {
|
||||
// SetViewPort sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetViewPort(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SetViewPort' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setViewPortRequest(c, Screen, X, Y), cookie)
|
||||
return SetViewPortCookie{cookie}
|
||||
@@ -1739,6 +1814,9 @@ func SetViewPort(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCook
|
||||
// SetViewPortChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetViewPortCookie.Check()
|
||||
func SetViewPortChecked(c *xgb.Conn, Screen uint16, X uint32, Y uint32) SetViewPortCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SetViewPort' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setViewPortRequest(c, Screen, X, Y), cookie)
|
||||
return SetViewPortCookie{cookie}
|
||||
@@ -1788,6 +1866,9 @@ type GetDotClocksCookie struct {
|
||||
// GetDotClocks sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetDotClocksCookie.Reply()
|
||||
func GetDotClocks(c *xgb.Conn, Screen uint16) GetDotClocksCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetDotClocks' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getDotClocksRequest(c, Screen), cookie)
|
||||
return GetDotClocksCookie{cookie}
|
||||
@@ -1796,6 +1877,9 @@ func GetDotClocks(c *xgb.Conn, Screen uint16) GetDotClocksCookie {
|
||||
// GetDotClocksUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetDotClocksUnchecked(c *xgb.Conn, Screen uint16) GetDotClocksCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetDotClocks' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getDotClocksRequest(c, Screen), cookie)
|
||||
return GetDotClocksCookie{cookie}
|
||||
@@ -1891,6 +1975,9 @@ type SetClientVersionCookie struct {
|
||||
// SetClientVersion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetClientVersion(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SetClientVersion' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setClientVersionRequest(c, Major, Minor), cookie)
|
||||
return SetClientVersionCookie{cookie}
|
||||
@@ -1899,6 +1986,9 @@ func SetClientVersion(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionC
|
||||
// SetClientVersionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetClientVersionCookie.Check()
|
||||
func SetClientVersionChecked(c *xgb.Conn, Major uint16, Minor uint16) SetClientVersionCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SetClientVersion' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setClientVersionRequest(c, Major, Minor), cookie)
|
||||
return SetClientVersionCookie{cookie}
|
||||
@@ -1943,6 +2033,9 @@ type SetGammaCookie struct {
|
||||
// SetGamma sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetGamma(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) SetGammaCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SetGamma' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setGammaRequest(c, Screen, Red, Green, Blue), cookie)
|
||||
return SetGammaCookie{cookie}
|
||||
@@ -1951,6 +2044,9 @@ func SetGamma(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32)
|
||||
// SetGammaChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetGammaCookie.Check()
|
||||
func SetGammaChecked(c *xgb.Conn, Screen uint16, Red uint32, Green uint32, Blue uint32) SetGammaCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SetGamma' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setGammaRequest(c, Screen, Red, Green, Blue), cookie)
|
||||
return SetGammaCookie{cookie}
|
||||
@@ -2005,6 +2101,9 @@ type GetGammaCookie struct {
|
||||
// GetGamma sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetGammaCookie.Reply()
|
||||
func GetGamma(c *xgb.Conn, Screen uint16) GetGammaCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetGamma' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getGammaRequest(c, Screen), cookie)
|
||||
return GetGammaCookie{cookie}
|
||||
@@ -2013,6 +2112,9 @@ func GetGamma(c *xgb.Conn, Screen uint16) GetGammaCookie {
|
||||
// GetGammaUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetGammaUnchecked(c *xgb.Conn, Screen uint16) GetGammaCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetGamma' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getGammaRequest(c, Screen), cookie)
|
||||
return GetGammaCookie{cookie}
|
||||
@@ -2100,6 +2202,9 @@ type GetGammaRampCookie struct {
|
||||
// GetGammaRamp sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetGammaRampCookie.Reply()
|
||||
func GetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetGammaRamp' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getGammaRampRequest(c, Screen, Size), cookie)
|
||||
return GetGammaRampCookie{cookie}
|
||||
@@ -2108,6 +2213,9 @@ func GetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
|
||||
// GetGammaRampUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetGammaRampUnchecked(c *xgb.Conn, Screen uint16, Size uint16) GetGammaRampCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetGammaRamp' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getGammaRampRequest(c, Screen, Size), cookie)
|
||||
return GetGammaRampCookie{cookie}
|
||||
@@ -2212,6 +2320,9 @@ type SetGammaRampCookie struct {
|
||||
// SetGammaRamp sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetGammaRampCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SetGammaRamp' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setGammaRampRequest(c, Screen, Size, Red, Green, Blue), cookie)
|
||||
return SetGammaRampCookie{cookie}
|
||||
@@ -2220,6 +2331,9 @@ func SetGammaRamp(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green [
|
||||
// SetGammaRampChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetGammaRampCookie.Check()
|
||||
func SetGammaRampChecked(c *xgb.Conn, Screen uint16, Size uint16, Red []uint16, Green []uint16, Blue []uint16) SetGammaRampCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'SetGammaRamp' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setGammaRampRequest(c, Screen, Size, Red, Green, Blue), cookie)
|
||||
return SetGammaRampCookie{cookie}
|
||||
@@ -2282,6 +2396,9 @@ type GetGammaRampSizeCookie struct {
|
||||
// GetGammaRampSize sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetGammaRampSizeCookie.Reply()
|
||||
func GetGammaRampSize(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetGammaRampSize' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getGammaRampSizeRequest(c, Screen), cookie)
|
||||
return GetGammaRampSizeCookie{cookie}
|
||||
@@ -2290,6 +2407,9 @@ func GetGammaRampSize(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie {
|
||||
// GetGammaRampSizeUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetGammaRampSizeUnchecked(c *xgb.Conn, Screen uint16) GetGammaRampSizeCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetGammaRampSize' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getGammaRampSizeRequest(c, Screen), cookie)
|
||||
return GetGammaRampSizeCookie{cookie}
|
||||
@@ -2369,6 +2489,9 @@ type GetPermissionsCookie struct {
|
||||
// GetPermissions sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetPermissionsCookie.Reply()
|
||||
func GetPermissions(c *xgb.Conn, Screen uint16) GetPermissionsCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetPermissions' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getPermissionsRequest(c, Screen), cookie)
|
||||
return GetPermissionsCookie{cookie}
|
||||
@@ -2377,6 +2500,9 @@ func GetPermissions(c *xgb.Conn, Screen uint16) GetPermissionsCookie {
|
||||
// GetPermissionsUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetPermissionsUnchecked(c *xgb.Conn, Screen uint16) GetPermissionsCookie {
|
||||
if _, ok := c.Extensions["XFREE86-VIDMODEEXTENSION"]; !ok {
|
||||
panic("Cannot issue request 'GetPermissions' using the uninitialized extension 'XFree86-VidModeExtension'. xf86vidmode.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getPermissionsRequest(c, Screen), cookie)
|
||||
return GetPermissionsCookie{cookie}
|
||||
|
||||
+195
-9
@@ -2,7 +2,7 @@
|
||||
package xfixes
|
||||
|
||||
/*
|
||||
This file was generated by xfixes.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by xfixes.xml on May 11 2012 11:57:20pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -42,14 +42,6 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["XFIXES"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
@@ -66,6 +58,14 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Card8'
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
const (
|
||||
SaveSetModeInsert = 0
|
||||
SaveSetModeDelete = 1
|
||||
@@ -367,6 +367,9 @@ 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, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -375,6 +378,9 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin
|
||||
// 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, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(queryVersionRequest(c, ClientMajorVersion, ClientMinorVersion), cookie)
|
||||
return QueryVersionCookie{cookie}
|
||||
@@ -459,6 +465,9 @@ type ChangeSaveSetCookie struct {
|
||||
// ChangeSaveSet sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ChangeSaveSet(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.Window) ChangeSaveSetCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ChangeSaveSet' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(changeSaveSetRequest(c, Mode, Target, Map, Window), cookie)
|
||||
return ChangeSaveSetCookie{cookie}
|
||||
@@ -467,6 +476,9 @@ func ChangeSaveSet(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.
|
||||
// ChangeSaveSetChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ChangeSaveSetCookie.Check()
|
||||
func ChangeSaveSetChecked(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.Window) ChangeSaveSetCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ChangeSaveSet' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(changeSaveSetRequest(c, Mode, Target, Map, Window), cookie)
|
||||
return ChangeSaveSetCookie{cookie}
|
||||
@@ -519,6 +531,9 @@ type SelectSelectionInputCookie struct {
|
||||
// SelectSelectionInput sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SelectSelectionInput(c *xgb.Conn, Window xproto.Window, Selection xproto.Atom, EventMask uint32) SelectSelectionInputCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SelectSelectionInput' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(selectSelectionInputRequest(c, Window, Selection, EventMask), cookie)
|
||||
return SelectSelectionInputCookie{cookie}
|
||||
@@ -527,6 +542,9 @@ func SelectSelectionInput(c *xgb.Conn, Window xproto.Window, Selection xproto.At
|
||||
// SelectSelectionInputChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SelectSelectionInputCookie.Check()
|
||||
func SelectSelectionInputChecked(c *xgb.Conn, Window xproto.Window, Selection xproto.Atom, EventMask uint32) SelectSelectionInputCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SelectSelectionInput' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(selectSelectionInputRequest(c, Window, Selection, EventMask), cookie)
|
||||
return SelectSelectionInputCookie{cookie}
|
||||
@@ -574,6 +592,9 @@ type SelectCursorInputCookie struct {
|
||||
// SelectCursorInput sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SelectCursorInput(c *xgb.Conn, Window xproto.Window, EventMask uint32) SelectCursorInputCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SelectCursorInput' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(selectCursorInputRequest(c, Window, EventMask), cookie)
|
||||
return SelectCursorInputCookie{cookie}
|
||||
@@ -582,6 +603,9 @@ func SelectCursorInput(c *xgb.Conn, Window xproto.Window, EventMask uint32) Sele
|
||||
// SelectCursorInputChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SelectCursorInputCookie.Check()
|
||||
func SelectCursorInputChecked(c *xgb.Conn, Window xproto.Window, EventMask uint32) SelectCursorInputCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SelectCursorInput' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(selectCursorInputRequest(c, Window, EventMask), cookie)
|
||||
return SelectCursorInputCookie{cookie}
|
||||
@@ -626,6 +650,9 @@ type GetCursorImageCookie struct {
|
||||
// GetCursorImage sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetCursorImageCookie.Reply()
|
||||
func GetCursorImage(c *xgb.Conn) GetCursorImageCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'GetCursorImage' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getCursorImageRequest(c), cookie)
|
||||
return GetCursorImageCookie{cookie}
|
||||
@@ -634,6 +661,9 @@ func GetCursorImage(c *xgb.Conn) GetCursorImageCookie {
|
||||
// GetCursorImageUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetCursorImageUnchecked(c *xgb.Conn) GetCursorImageCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'GetCursorImage' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getCursorImageRequest(c), cookie)
|
||||
return GetCursorImageCookie{cookie}
|
||||
@@ -740,6 +770,9 @@ type CreateRegionCookie struct {
|
||||
// CreateRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateRegion(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) CreateRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createRegionRequest(c, Region, Rectangles), cookie)
|
||||
return CreateRegionCookie{cookie}
|
||||
@@ -748,6 +781,9 @@ func CreateRegion(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) Cre
|
||||
// CreateRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateRegionCookie.Check()
|
||||
func CreateRegionChecked(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) CreateRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createRegionRequest(c, Region, Rectangles), cookie)
|
||||
return CreateRegionCookie{cookie}
|
||||
@@ -791,6 +827,9 @@ type CreateRegionFromBitmapCookie struct {
|
||||
// CreateRegionFromBitmap sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateRegionFromBitmap(c *xgb.Conn, Region Region, Bitmap xproto.Pixmap) CreateRegionFromBitmapCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromBitmap' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createRegionFromBitmapRequest(c, Region, Bitmap), cookie)
|
||||
return CreateRegionFromBitmapCookie{cookie}
|
||||
@@ -799,6 +838,9 @@ func CreateRegionFromBitmap(c *xgb.Conn, Region Region, Bitmap xproto.Pixmap) Cr
|
||||
// CreateRegionFromBitmapChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateRegionFromBitmapCookie.Check()
|
||||
func CreateRegionFromBitmapChecked(c *xgb.Conn, Region Region, Bitmap xproto.Pixmap) CreateRegionFromBitmapCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromBitmap' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createRegionFromBitmapRequest(c, Region, Bitmap), cookie)
|
||||
return CreateRegionFromBitmapCookie{cookie}
|
||||
@@ -843,6 +885,9 @@ type CreateRegionFromWindowCookie struct {
|
||||
// CreateRegionFromWindow sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateRegionFromWindow(c *xgb.Conn, Region Region, Window xproto.Window, Kind shape.Kind) CreateRegionFromWindowCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromWindow' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createRegionFromWindowRequest(c, Region, Window, Kind), cookie)
|
||||
return CreateRegionFromWindowCookie{cookie}
|
||||
@@ -851,6 +896,9 @@ func CreateRegionFromWindow(c *xgb.Conn, Region Region, Window xproto.Window, Ki
|
||||
// CreateRegionFromWindowChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateRegionFromWindowCookie.Check()
|
||||
func CreateRegionFromWindowChecked(c *xgb.Conn, Region Region, Window xproto.Window, Kind shape.Kind) CreateRegionFromWindowCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromWindow' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createRegionFromWindowRequest(c, Region, Window, Kind), cookie)
|
||||
return CreateRegionFromWindowCookie{cookie}
|
||||
@@ -900,6 +948,9 @@ type CreateRegionFromGCCookie struct {
|
||||
// CreateRegionFromGC sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateRegionFromGC(c *xgb.Conn, Region Region, Gc xproto.Gcontext) CreateRegionFromGCCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromGC' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createRegionFromGCRequest(c, Region, Gc), cookie)
|
||||
return CreateRegionFromGCCookie{cookie}
|
||||
@@ -908,6 +959,9 @@ func CreateRegionFromGC(c *xgb.Conn, Region Region, Gc xproto.Gcontext) CreateRe
|
||||
// CreateRegionFromGCChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateRegionFromGCCookie.Check()
|
||||
func CreateRegionFromGCChecked(c *xgb.Conn, Region Region, Gc xproto.Gcontext) CreateRegionFromGCCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromGC' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createRegionFromGCRequest(c, Region, Gc), cookie)
|
||||
return CreateRegionFromGCCookie{cookie}
|
||||
@@ -952,6 +1006,9 @@ type CreateRegionFromPictureCookie struct {
|
||||
// CreateRegionFromPicture sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CreateRegionFromPicture(c *xgb.Conn, Region Region, Picture render.Picture) CreateRegionFromPictureCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromPicture' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(createRegionFromPictureRequest(c, Region, Picture), cookie)
|
||||
return CreateRegionFromPictureCookie{cookie}
|
||||
@@ -960,6 +1017,9 @@ func CreateRegionFromPicture(c *xgb.Conn, Region Region, Picture render.Picture)
|
||||
// CreateRegionFromPictureChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CreateRegionFromPictureCookie.Check()
|
||||
func CreateRegionFromPictureChecked(c *xgb.Conn, Region Region, Picture render.Picture) CreateRegionFromPictureCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CreateRegionFromPicture' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(createRegionFromPictureRequest(c, Region, Picture), cookie)
|
||||
return CreateRegionFromPictureCookie{cookie}
|
||||
@@ -1004,6 +1064,9 @@ type DestroyRegionCookie struct {
|
||||
// DestroyRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func DestroyRegion(c *xgb.Conn, Region Region) DestroyRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'DestroyRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(destroyRegionRequest(c, Region), cookie)
|
||||
return DestroyRegionCookie{cookie}
|
||||
@@ -1012,6 +1075,9 @@ func DestroyRegion(c *xgb.Conn, Region Region) DestroyRegionCookie {
|
||||
// DestroyRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using DestroyRegionCookie.Check()
|
||||
func DestroyRegionChecked(c *xgb.Conn, Region Region) DestroyRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'DestroyRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(destroyRegionRequest(c, Region), cookie)
|
||||
return DestroyRegionCookie{cookie}
|
||||
@@ -1053,6 +1119,9 @@ type SetRegionCookie struct {
|
||||
// SetRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetRegion(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) SetRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setRegionRequest(c, Region, Rectangles), cookie)
|
||||
return SetRegionCookie{cookie}
|
||||
@@ -1061,6 +1130,9 @@ func SetRegion(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) SetReg
|
||||
// SetRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetRegionCookie.Check()
|
||||
func SetRegionChecked(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) SetRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setRegionRequest(c, Region, Rectangles), cookie)
|
||||
return SetRegionCookie{cookie}
|
||||
@@ -1104,6 +1176,9 @@ type CopyRegionCookie struct {
|
||||
// CopyRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func CopyRegion(c *xgb.Conn, Source Region, Destination Region) CopyRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CopyRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(copyRegionRequest(c, Source, Destination), cookie)
|
||||
return CopyRegionCookie{cookie}
|
||||
@@ -1112,6 +1187,9 @@ func CopyRegion(c *xgb.Conn, Source Region, Destination Region) CopyRegionCookie
|
||||
// CopyRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using CopyRegionCookie.Check()
|
||||
func CopyRegionChecked(c *xgb.Conn, Source Region, Destination Region) CopyRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'CopyRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(copyRegionRequest(c, Source, Destination), cookie)
|
||||
return CopyRegionCookie{cookie}
|
||||
@@ -1156,6 +1234,9 @@ type UnionRegionCookie struct {
|
||||
// UnionRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func UnionRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) UnionRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'UnionRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(unionRegionRequest(c, Source1, Source2, Destination), cookie)
|
||||
return UnionRegionCookie{cookie}
|
||||
@@ -1164,6 +1245,9 @@ func UnionRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region
|
||||
// UnionRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using UnionRegionCookie.Check()
|
||||
func UnionRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) UnionRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'UnionRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(unionRegionRequest(c, Source1, Source2, Destination), cookie)
|
||||
return UnionRegionCookie{cookie}
|
||||
@@ -1211,6 +1295,9 @@ type IntersectRegionCookie struct {
|
||||
// IntersectRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func IntersectRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) IntersectRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'IntersectRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(intersectRegionRequest(c, Source1, Source2, Destination), cookie)
|
||||
return IntersectRegionCookie{cookie}
|
||||
@@ -1219,6 +1306,9 @@ func IntersectRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Re
|
||||
// IntersectRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using IntersectRegionCookie.Check()
|
||||
func IntersectRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) IntersectRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'IntersectRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(intersectRegionRequest(c, Source1, Source2, Destination), cookie)
|
||||
return IntersectRegionCookie{cookie}
|
||||
@@ -1266,6 +1356,9 @@ type SubtractRegionCookie struct {
|
||||
// SubtractRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SubtractRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) SubtractRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SubtractRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(subtractRegionRequest(c, Source1, Source2, Destination), cookie)
|
||||
return SubtractRegionCookie{cookie}
|
||||
@@ -1274,6 +1367,9 @@ func SubtractRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Reg
|
||||
// SubtractRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SubtractRegionCookie.Check()
|
||||
func SubtractRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) SubtractRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SubtractRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(subtractRegionRequest(c, Source1, Source2, Destination), cookie)
|
||||
return SubtractRegionCookie{cookie}
|
||||
@@ -1321,6 +1417,9 @@ type InvertRegionCookie struct {
|
||||
// InvertRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func InvertRegion(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, Destination Region) InvertRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'InvertRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(invertRegionRequest(c, Source, Bounds, Destination), cookie)
|
||||
return InvertRegionCookie{cookie}
|
||||
@@ -1329,6 +1428,9 @@ func InvertRegion(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, Destinati
|
||||
// InvertRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using InvertRegionCookie.Check()
|
||||
func InvertRegionChecked(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, Destination Region) InvertRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'InvertRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(invertRegionRequest(c, Source, Bounds, Destination), cookie)
|
||||
return InvertRegionCookie{cookie}
|
||||
@@ -1379,6 +1481,9 @@ type TranslateRegionCookie struct {
|
||||
// TranslateRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func TranslateRegion(c *xgb.Conn, Region Region, Dx int16, Dy int16) TranslateRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'TranslateRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(translateRegionRequest(c, Region, Dx, Dy), cookie)
|
||||
return TranslateRegionCookie{cookie}
|
||||
@@ -1387,6 +1492,9 @@ func TranslateRegion(c *xgb.Conn, Region Region, Dx int16, Dy int16) TranslateRe
|
||||
// TranslateRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using TranslateRegionCookie.Check()
|
||||
func TranslateRegionChecked(c *xgb.Conn, Region Region, Dx int16, Dy int16) TranslateRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'TranslateRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(translateRegionRequest(c, Region, Dx, Dy), cookie)
|
||||
return TranslateRegionCookie{cookie}
|
||||
@@ -1434,6 +1542,9 @@ type RegionExtentsCookie struct {
|
||||
// RegionExtents sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func RegionExtents(c *xgb.Conn, Source Region, Destination Region) RegionExtentsCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'RegionExtents' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(regionExtentsRequest(c, Source, Destination), cookie)
|
||||
return RegionExtentsCookie{cookie}
|
||||
@@ -1442,6 +1553,9 @@ func RegionExtents(c *xgb.Conn, Source Region, Destination Region) RegionExtents
|
||||
// RegionExtentsChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using RegionExtentsCookie.Check()
|
||||
func RegionExtentsChecked(c *xgb.Conn, Source Region, Destination Region) RegionExtentsCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'RegionExtents' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(regionExtentsRequest(c, Source, Destination), cookie)
|
||||
return RegionExtentsCookie{cookie}
|
||||
@@ -1486,6 +1600,9 @@ type FetchRegionCookie struct {
|
||||
// FetchRegion sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling FetchRegionCookie.Reply()
|
||||
func FetchRegion(c *xgb.Conn, Region Region) FetchRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'FetchRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(fetchRegionRequest(c, Region), cookie)
|
||||
return FetchRegionCookie{cookie}
|
||||
@@ -1494,6 +1611,9 @@ func FetchRegion(c *xgb.Conn, Region Region) FetchRegionCookie {
|
||||
// FetchRegionUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func FetchRegionUnchecked(c *xgb.Conn, Region Region) FetchRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'FetchRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(fetchRegionRequest(c, Region), cookie)
|
||||
return FetchRegionCookie{cookie}
|
||||
@@ -1575,6 +1695,9 @@ type SetGCClipRegionCookie struct {
|
||||
// SetGCClipRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetGCClipRegion(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) SetGCClipRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetGCClipRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setGCClipRegionRequest(c, Gc, Region, XOrigin, YOrigin), cookie)
|
||||
return SetGCClipRegionCookie{cookie}
|
||||
@@ -1583,6 +1706,9 @@ func SetGCClipRegion(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int
|
||||
// SetGCClipRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetGCClipRegionCookie.Check()
|
||||
func SetGCClipRegionChecked(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) SetGCClipRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetGCClipRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setGCClipRegionRequest(c, Gc, Region, XOrigin, YOrigin), cookie)
|
||||
return SetGCClipRegionCookie{cookie}
|
||||
@@ -1633,6 +1759,9 @@ type SetWindowShapeRegionCookie struct {
|
||||
// SetWindowShapeRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetWindowShapeRegion(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) SetWindowShapeRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetWindowShapeRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setWindowShapeRegionRequest(c, Dest, DestKind, XOffset, YOffset, Region), cookie)
|
||||
return SetWindowShapeRegionCookie{cookie}
|
||||
@@ -1641,6 +1770,9 @@ func SetWindowShapeRegion(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind,
|
||||
// SetWindowShapeRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetWindowShapeRegionCookie.Check()
|
||||
func SetWindowShapeRegionChecked(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) SetWindowShapeRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetWindowShapeRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setWindowShapeRegionRequest(c, Dest, DestKind, XOffset, YOffset, Region), cookie)
|
||||
return SetWindowShapeRegionCookie{cookie}
|
||||
@@ -1696,6 +1828,9 @@ type SetPictureClipRegionCookie struct {
|
||||
// SetPictureClipRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetPictureClipRegion(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) SetPictureClipRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetPictureClipRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setPictureClipRegionRequest(c, Picture, Region, XOrigin, YOrigin), cookie)
|
||||
return SetPictureClipRegionCookie{cookie}
|
||||
@@ -1704,6 +1839,9 @@ func SetPictureClipRegion(c *xgb.Conn, Picture render.Picture, Region Region, XO
|
||||
// SetPictureClipRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetPictureClipRegionCookie.Check()
|
||||
func SetPictureClipRegionChecked(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) SetPictureClipRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetPictureClipRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setPictureClipRegionRequest(c, Picture, Region, XOrigin, YOrigin), cookie)
|
||||
return SetPictureClipRegionCookie{cookie}
|
||||
@@ -1754,6 +1892,9 @@ type SetCursorNameCookie struct {
|
||||
// SetCursorName sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func SetCursorName(c *xgb.Conn, Cursor xproto.Cursor, Nbytes uint16, Name string) SetCursorNameCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetCursorName' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(setCursorNameRequest(c, Cursor, Nbytes, Name), cookie)
|
||||
return SetCursorNameCookie{cookie}
|
||||
@@ -1762,6 +1903,9 @@ func SetCursorName(c *xgb.Conn, Cursor xproto.Cursor, Nbytes uint16, Name string
|
||||
// SetCursorNameChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SetCursorNameCookie.Check()
|
||||
func SetCursorNameChecked(c *xgb.Conn, Cursor xproto.Cursor, Nbytes uint16, Name string) SetCursorNameCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'SetCursorName' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(setCursorNameRequest(c, Cursor, Nbytes, Name), cookie)
|
||||
return SetCursorNameCookie{cookie}
|
||||
@@ -1811,6 +1955,9 @@ type GetCursorNameCookie struct {
|
||||
// GetCursorName sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetCursorNameCookie.Reply()
|
||||
func GetCursorName(c *xgb.Conn, Cursor xproto.Cursor) GetCursorNameCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'GetCursorName' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getCursorNameRequest(c, Cursor), cookie)
|
||||
return GetCursorNameCookie{cookie}
|
||||
@@ -1819,6 +1966,9 @@ func GetCursorName(c *xgb.Conn, Cursor xproto.Cursor) GetCursorNameCookie {
|
||||
// GetCursorNameUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetCursorNameUnchecked(c *xgb.Conn, Cursor xproto.Cursor) GetCursorNameCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'GetCursorName' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getCursorNameRequest(c, Cursor), cookie)
|
||||
return GetCursorNameCookie{cookie}
|
||||
@@ -1908,6 +2058,9 @@ type GetCursorImageAndNameCookie struct {
|
||||
// GetCursorImageAndName sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling GetCursorImageAndNameCookie.Reply()
|
||||
func GetCursorImageAndName(c *xgb.Conn) GetCursorImageAndNameCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'GetCursorImageAndName' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, true)
|
||||
c.NewRequest(getCursorImageAndNameRequest(c), cookie)
|
||||
return GetCursorImageAndNameCookie{cookie}
|
||||
@@ -1916,6 +2069,9 @@ func GetCursorImageAndName(c *xgb.Conn) GetCursorImageAndNameCookie {
|
||||
// GetCursorImageAndNameUnchecked sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func GetCursorImageAndNameUnchecked(c *xgb.Conn) GetCursorImageAndNameCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'GetCursorImageAndName' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, true)
|
||||
c.NewRequest(getCursorImageAndNameRequest(c), cookie)
|
||||
return GetCursorImageAndNameCookie{cookie}
|
||||
@@ -2038,6 +2194,9 @@ type ChangeCursorCookie struct {
|
||||
// ChangeCursor sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ChangeCursor(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor) ChangeCursorCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ChangeCursor' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(changeCursorRequest(c, Source, Destination), cookie)
|
||||
return ChangeCursorCookie{cookie}
|
||||
@@ -2046,6 +2205,9 @@ func ChangeCursor(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor)
|
||||
// ChangeCursorChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ChangeCursorCookie.Check()
|
||||
func ChangeCursorChecked(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor) ChangeCursorCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ChangeCursor' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(changeCursorRequest(c, Source, Destination), cookie)
|
||||
return ChangeCursorCookie{cookie}
|
||||
@@ -2090,6 +2252,9 @@ type ChangeCursorByNameCookie struct {
|
||||
// ChangeCursorByName sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ChangeCursorByName(c *xgb.Conn, Src xproto.Cursor, Nbytes uint16, Name string) ChangeCursorByNameCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ChangeCursorByName' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(changeCursorByNameRequest(c, Src, Nbytes, Name), cookie)
|
||||
return ChangeCursorByNameCookie{cookie}
|
||||
@@ -2098,6 +2263,9 @@ func ChangeCursorByName(c *xgb.Conn, Src xproto.Cursor, Nbytes uint16, Name stri
|
||||
// ChangeCursorByNameChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ChangeCursorByNameCookie.Check()
|
||||
func ChangeCursorByNameChecked(c *xgb.Conn, Src xproto.Cursor, Nbytes uint16, Name string) ChangeCursorByNameCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ChangeCursorByName' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(changeCursorByNameRequest(c, Src, Nbytes, Name), cookie)
|
||||
return ChangeCursorByNameCookie{cookie}
|
||||
@@ -2147,6 +2315,9 @@ type ExpandRegionCookie struct {
|
||||
// ExpandRegion sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ExpandRegion(c *xgb.Conn, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) ExpandRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ExpandRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(expandRegionRequest(c, Source, Destination, Left, Right, Top, Bottom), cookie)
|
||||
return ExpandRegionCookie{cookie}
|
||||
@@ -2155,6 +2326,9 @@ func ExpandRegion(c *xgb.Conn, Source Region, Destination Region, Left uint16, R
|
||||
// ExpandRegionChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ExpandRegionCookie.Check()
|
||||
func ExpandRegionChecked(c *xgb.Conn, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) ExpandRegionCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ExpandRegion' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(expandRegionRequest(c, Source, Destination, Left, Right, Top, Bottom), cookie)
|
||||
return ExpandRegionCookie{cookie}
|
||||
@@ -2211,6 +2385,9 @@ type HideCursorCookie struct {
|
||||
// HideCursor sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func HideCursor(c *xgb.Conn, Window xproto.Window) HideCursorCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'HideCursor' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(hideCursorRequest(c, Window), cookie)
|
||||
return HideCursorCookie{cookie}
|
||||
@@ -2219,6 +2396,9 @@ func HideCursor(c *xgb.Conn, Window xproto.Window) HideCursorCookie {
|
||||
// HideCursorChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using HideCursorCookie.Check()
|
||||
func HideCursorChecked(c *xgb.Conn, Window xproto.Window) HideCursorCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'HideCursor' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(hideCursorRequest(c, Window), cookie)
|
||||
return HideCursorCookie{cookie}
|
||||
@@ -2260,6 +2440,9 @@ type ShowCursorCookie struct {
|
||||
// ShowCursor sends an unchecked request.
|
||||
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
|
||||
func ShowCursor(c *xgb.Conn, Window xproto.Window) ShowCursorCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ShowCursor' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(false, false)
|
||||
c.NewRequest(showCursorRequest(c, Window), cookie)
|
||||
return ShowCursorCookie{cookie}
|
||||
@@ -2268,6 +2451,9 @@ func ShowCursor(c *xgb.Conn, Window xproto.Window) ShowCursorCookie {
|
||||
// ShowCursorChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using ShowCursorCookie.Check()
|
||||
func ShowCursorChecked(c *xgb.Conn, Window xproto.Window) ShowCursorCookie {
|
||||
if _, ok := c.Extensions["XFIXES"]; !ok {
|
||||
panic("Cannot issue request 'ShowCursor' using the uninitialized extension 'XFIXES'. xfixes.Init(connObj) must be called first.")
|
||||
}
|
||||
cookie := c.NewCookie(true, false)
|
||||
c.NewRequest(showCursorRequest(c, Window), cookie)
|
||||
return ShowCursorCookie{cookie}
|
||||
|
||||
@@ -18,6 +18,7 @@ func (r *Request) Define(c *Context) {
|
||||
"by calling %s.Reply()", r.CookieName())
|
||||
c.Putln("func %s(c *xgb.Conn, %s) %s {",
|
||||
r.SrcName(), r.ParamNameTypes(), r.CookieName())
|
||||
r.CheckExt(c)
|
||||
c.Putln("cookie := c.NewCookie(true, true)")
|
||||
c.Putln("c.NewRequest(%s(c, %s), cookie)", r.ReqName(), r.ParamNames())
|
||||
c.Putln("return %s{cookie}", r.CookieName())
|
||||
@@ -29,6 +30,7 @@ func (r *Request) Define(c *Context) {
|
||||
"xgb.WaitForEvent or xgb.PollForEvent.")
|
||||
c.Putln("func %sUnchecked(c *xgb.Conn, %s) %s {",
|
||||
r.SrcName(), r.ParamNameTypes(), r.CookieName())
|
||||
r.CheckExt(c)
|
||||
c.Putln("cookie := c.NewCookie(false, true)")
|
||||
c.Putln("c.NewRequest(%s(c, %s), cookie)", r.ReqName(), r.ParamNames())
|
||||
c.Putln("return %s{cookie}", r.CookieName())
|
||||
@@ -42,6 +44,7 @@ func (r *Request) Define(c *Context) {
|
||||
"xgb.WaitForEvent or xgb.PollForEvent.")
|
||||
c.Putln("func %s(c *xgb.Conn, %s) %s {",
|
||||
r.SrcName(), r.ParamNameTypes(), r.CookieName())
|
||||
r.CheckExt(c)
|
||||
c.Putln("cookie := c.NewCookie(false, false)")
|
||||
c.Putln("c.NewRequest(%s(c, %s), cookie)", r.ReqName(), r.ParamNames())
|
||||
c.Putln("return %s{cookie}", r.CookieName())
|
||||
@@ -53,6 +56,7 @@ func (r *Request) Define(c *Context) {
|
||||
"%s.Check()", r.CookieName())
|
||||
c.Putln("func %sChecked(c *xgb.Conn, %s) %s {",
|
||||
r.SrcName(), r.ParamNameTypes(), r.CookieName())
|
||||
r.CheckExt(c)
|
||||
c.Putln("cookie := c.NewCookie(true, false)")
|
||||
c.Putln("c.NewRequest(%s(c, %s), cookie)", r.ReqName(), r.ParamNames())
|
||||
c.Putln("return %s{cookie}", r.CookieName())
|
||||
@@ -71,6 +75,18 @@ func (r *Request) Define(c *Context) {
|
||||
r.WriteRequest(c)
|
||||
}
|
||||
|
||||
func (r *Request) CheckExt(c *Context) {
|
||||
if !c.protocol.isExt() {
|
||||
return
|
||||
}
|
||||
c.Putln("if _, ok := c.Extensions[\"%s\"]; !ok {",
|
||||
strings.ToUpper(c.protocol.ExtXName))
|
||||
c.Putln("panic(\"Cannot issue request '%s' using the uninitialized " +
|
||||
"extension '%s'. %s.Init(connObj) must be called first.\")",
|
||||
r.SrcName(), c.protocol.ExtXName, c.protocol.PkgName())
|
||||
c.Putln("}")
|
||||
}
|
||||
|
||||
func (r *Request) ReadReply(c *Context) {
|
||||
c.Putln("// %s represents the data returned from a %s request.",
|
||||
r.ReplyTypeName(), r.SrcName())
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package xinerama
|
||||
|
||||
/*
|
||||
This file was generated by xinerama.xml on May 11 2012 1:58:36am EDT.
|
||||
This file was generated by xinerama.xml on May 11 2012 11:57:20pm EDT.
|
||||
This file is automatically generated. Edit at your peril!
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,12 @@ func init() {
|
||||
xgb.NewExtErrorFuncs["XINERAMA"] = make(map[int]xgb.NewErrorFun)
|
||||
}
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
// Skipping definition for base type 'Int8'
|
||||
|
||||
// Skipping definition for base type 'Card16'
|
||||
@@ -58,12 +64,6 @@ func init() {
|
||||
|
||||
// Skipping definition for base type 'Int16'
|
||||
|
||||
// Skipping definition for base type 'Int32'
|
||||
|
||||
// Skipping definition for base type 'Void'
|
||||
|
||||
// Skipping definition for base type 'Byte'
|
||||
|
||||
type ScreenInfo struct {
|
||||
XOrg int16
|
||||
YOrg int16
|
||||
@@ -140,6 +140,9 @@ 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.C | ||||