nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
This commit is contained in:
@@ -200,7 +200,7 @@ type QueryInfoCookie struct {
|
||||
}
|
||||
|
||||
// QueryInfo sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryInfoCookie.Reply()
|
||||
// If an error occurs, it will be returned with the reply by calling QueryInfoCookie.Reply.
|
||||
func QueryInfo(c *xgb.Conn, Drawable xproto.Drawable) QueryInfoCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
@@ -284,8 +284,7 @@ func queryInfoReply(buf []byte) *QueryInfoReply {
|
||||
return v
|
||||
}
|
||||
|
||||
// Write request to wire for QueryInfo
|
||||
// queryInfoRequest writes a QueryInfo request to a byte slice.
|
||||
// queryInfoRequest writes a QueryInfo request to a byte slice for transfer.
|
||||
func queryInfoRequest(c *xgb.Conn, Drawable xproto.Drawable) []byte {
|
||||
size := 8
|
||||
b := 0
|
||||
@@ -314,8 +313,8 @@ type QueryVersionCookie struct {
|
||||
}
|
||||
|
||||
// QueryVersion sends a checked request.
|
||||
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
|
||||
func QueryVersion(c *xgb.Conn, ClientMajorVersion byte, ClientMinorVersion byte) QueryVersionCookie {
|
||||
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
|
||||
func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion byte) QueryVersionCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
@@ -328,7 +327,7 @@ 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 {
|
||||
func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion byte) QueryVersionCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
@@ -385,9 +384,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
|
||||
return v
|
||||
}
|
||||
|
||||
// Write request to wire for QueryVersion
|
||||
// queryVersionRequest writes a QueryVersion request to a byte slice.
|
||||
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion byte, ClientMinorVersion byte) []byte {
|
||||
// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
|
||||
func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion byte) []byte {
|
||||
size := 8
|
||||
b := 0
|
||||
buf := make([]byte, size)
|
||||
@@ -433,7 +431,7 @@ 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()
|
||||
// If an error occurs, it can be retrieved using SelectInputCookie.Check.
|
||||
func SelectInputChecked(c *xgb.Conn, Drawable xproto.Drawable, EventMask uint32) SelectInputCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
@@ -451,8 +449,7 @@ func (cook SelectInputCookie) Check() error {
|
||||
return cook.Cookie.Check()
|
||||
}
|
||||
|
||||
// Write request to wire for SelectInput
|
||||
// selectInputRequest writes a SelectInput request to a byte slice.
|
||||
// selectInputRequest writes a SelectInput request to a byte slice for transfer.
|
||||
func selectInputRequest(c *xgb.Conn, Drawable xproto.Drawable, EventMask uint32) []byte {
|
||||
size := 12
|
||||
b := 0
|
||||
@@ -485,7 +482,7 @@ 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 {
|
||||
func SetAttributes(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height, BorderWidth uint16, Class, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) SetAttributesCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
@@ -497,8 +494,8 @@ 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 an error occurs, it can be retrieved using SetAttributesCookie.Check.
|
||||
func SetAttributesChecked(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height, BorderWidth uint16, Class, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) SetAttributesCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
if _, ok := c.Extensions["MIT-SCREEN-SAVER"]; !ok {
|
||||
@@ -515,9 +512,8 @@ func (cook SetAttributesCookie) Check() error {
|
||||
return cook.Cookie.Check()
|
||||
}
|
||||
|
||||
// Write request to wire for SetAttributes
|
||||
// setAttributesRequest writes a SetAttributes request to a byte slice.
|
||||
func setAttributesRequest(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) []byte {
|
||||
// setAttributesRequest writes a SetAttributes request to a byte slice for transfer.
|
||||
func setAttributesRequest(c *xgb.Conn, Drawable xproto.Drawable, X, Y int16, Width, Height, BorderWidth uint16, Class, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) []byte {
|
||||
size := xgb.Pad((28 + xgb.Pad((4 * xgb.PopCount(int(ValueMask))))))
|
||||
b := 0
|
||||
buf := make([]byte, size)
|
||||
@@ -591,7 +587,7 @@ func Suspend(c *xgb.Conn, Suspend bool) SuspendCookie {
|
||||
}
|
||||
|
||||
// SuspendChecked sends a checked request.
|
||||
// If an error occurs, it can be retrieved using SuspendCookie.Check()
|
||||
// If an error occurs, it can be retrieved using SuspendCookie.Check.
|
||||
func SuspendChecked(c *xgb.Conn, Suspend bool) SuspendCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
@@ -609,8 +605,7 @@ func (cook SuspendCookie) Check() error {
|
||||
return cook.Cookie.Check()
|
||||
}
|
||||
|
||||
// Write request to wire for Suspend
|
||||
// suspendRequest writes a Suspend request to a byte slice.
|
||||
// suspendRequest writes a Suspend request to a byte slice for transfer.
|
||||
func suspendRequest(c *xgb.Conn, Suspend bool) []byte {
|
||||
size := 8
|
||||
b := 0
|
||||
@@ -658,7 +653,7 @@ 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()
|
||||
// If an error occurs, it can be retrieved using UnsetAttributesCookie.Check.
|
||||
func UnsetAttributesChecked(c *xgb.Conn, Drawable xproto.Drawable) UnsetAttributesCookie {
|
||||
c.ExtLock.RLock()
|
||||
defer c.ExtLock.RUnlock()
|
||||
@@ -676,8 +671,7 @@ func (cook UnsetAttributesCookie) Check() error {
|
||||
return cook.Cookie.Check()
|
||||
}
|
||||
|
||||
// Write request to wire for UnsetAttributes
|
||||
// unsetAttributesRequest writes a UnsetAttributes request to a byte slice.
|
||||
// unsetAttributesRequest writes a UnsetAttributes request to a byte slice for transfer.
|
||||
func unsetAttributesRequest(c *xgb.Conn, Drawable xproto.Drawable) []byte {
|
||||
size := 8
|
||||
b := 0
|
||||
|
||||
Reference in New Issue
Block a user