func Init(c *xgb.Conn) error
Init must be called before using the XINERAMA extension.
func ScreenInfoListBytes(buf []byte, list []ScreenInfo) int
ScreenInfoListBytes writes a list of ScreenInfo values to a byte slice.
func ScreenInfoRead(buf []byte, v *ScreenInfo) int
ScreenInfoRead reads a byte slice into a ScreenInfo value.
func ScreenInfoReadList(buf []byte, dest []ScreenInfo) int
ScreenInfoReadList reads a byte slice into a list of ScreenInfo values.
GetScreenCountCookie is a cookie used only for GetScreenCount requests.
type GetScreenCountCookie struct { *xgb.Cookie }
func GetScreenCount(c *xgb.Conn, Window xproto.Window) GetScreenCountCookie
GetScreenCount sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenCountCookie.Reply()
func GetScreenCountUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenCountCookie
GetScreenCountUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetScreenCountCookie) Reply() (*GetScreenCountReply, error)
Reply blocks and returns the reply data for a GetScreenCount request.
GetScreenCountReply represents the data returned from a GetScreenCount request.
type GetScreenCountReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply ScreenCount byte Window xproto.Window }
GetScreenSizeCookie is a cookie used only for GetScreenSize requests.
type GetScreenSizeCookie struct { *xgb.Cookie }
func GetScreenSize(c *xgb.Conn, Window xproto.Window, Screen uint32) GetScreenSizeCookie
GetScreenSize sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenSizeCookie.Reply()
func GetScreenSizeUnchecked(c *xgb.Conn, Window xproto.Window, Screen uint32) GetScreenSizeCookie
GetScreenSizeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetScreenSizeCookie) Reply() (*GetScreenSizeReply, error)
Reply blocks and returns the reply data for a GetScreenSize request.
GetScreenSizeReply represents the data returned from a GetScreenSize request.
type GetScreenSizeReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Width uint32 Height uint32 Window xproto.Window Screen uint32 }
GetStateCookie is a cookie used only for GetState requests.
type GetStateCookie struct { *xgb.Cookie }
func GetState(c *xgb.Conn, Window xproto.Window) GetStateCookie
GetState sends a checked request. If an error occurs, it will be returned with the reply by calling GetStateCookie.Reply()
func GetStateUnchecked(c *xgb.Conn, Window xproto.Window) GetStateCookie
GetStateUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetStateCookie) Reply() (*GetStateReply, error)
Reply blocks and returns the reply data for a GetState request.
GetStateReply represents the data returned from a GetState request.
type GetStateReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply State byte Window xproto.Window }
IsActiveCookie is a cookie used only for IsActive requests.
type IsActiveCookie struct { *xgb.Cookie }
func IsActive(c *xgb.Conn) IsActiveCookie
IsActive sends a checked request. If an error occurs, it will be returned with the reply by calling IsActiveCookie.Reply()
func IsActiveUnchecked(c *xgb.Conn) IsActiveCookie
IsActiveUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook IsActiveCookie) Reply() (*IsActiveReply, error)
Reply blocks and returns the reply data for a IsActive request.
IsActiveReply represents the data returned from a IsActive request.
type IsActiveReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes State uint32 }
QueryScreensCookie is a cookie used only for QueryScreens requests.
type QueryScreensCookie struct { *xgb.Cookie }
func QueryScreens(c *xgb.Conn) QueryScreensCookie
QueryScreens sends a checked request. If an error occurs, it will be returned with the reply by calling QueryScreensCookie.Reply()
func QueryScreensUnchecked(c *xgb.Conn) QueryScreensCookie
QueryScreensUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryScreensCookie) Reply() (*QueryScreensReply, error)
Reply blocks and returns the reply data for a QueryScreens request.
QueryScreensReply represents the data returned from a QueryScreens request.
type QueryScreensReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Number uint32 // padding: 20 bytes ScreenInfo []ScreenInfo // size: xgb.Pad((int(Number) * 8)) }
QueryVersionCookie is a cookie used only for QueryVersion requests.
type QueryVersionCookie struct { *xgb.Cookie }
func QueryVersion(c *xgb.Conn, Major byte, Minor byte) QueryVersionCookie
QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersionUnchecked(c *xgb.Conn, Major byte, Minor byte) QueryVersionCookie
QueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
Reply blocks and returns the reply data for a QueryVersion request.
QueryVersionReply represents the data returned from a QueryVersion request.
type QueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Major uint16 Minor uint16 }
type ScreenInfo struct { XOrg int16 YOrg int16 Width uint16 Height uint16 }
func (v ScreenInfo) Bytes() []byte
Bytes writes a ScreenInfo value to a byte slice.