func Init(c *xgb.Conn) error
Init must be called before using the SELinux extension.
func ListItemListBytes(buf []byte, list []ListItem) int
ListItemListBytes writes a list of ListItem values to a byte slice.
func ListItemListSize(list []ListItem) int
ListItemListSize computes the size (bytes) of a list of ListItem values.
func ListItemRead(buf []byte, v *ListItem) int
ListItemRead reads a byte slice into a ListItem value.
func ListItemReadList(buf []byte, dest []ListItem) int
ListItemReadList reads a byte slice into a list of ListItem values.
GetClientContextCookie is a cookie used only for GetClientContext requests.
type GetClientContextCookie struct { *xgb.Cookie }
func GetClientContext(c *xgb.Conn, Resource uint32) GetClientContextCookie
GetClientContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetClientContextCookie.Reply()
func GetClientContextUnchecked(c *xgb.Conn, Resource uint32) GetClientContextCookie
GetClientContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetClientContextCookie) Reply() (*GetClientContextReply, error)
Reply blocks and returns the reply data for a GetClientContext request.
GetClientContextReply represents the data returned from a GetClientContext request.
type GetClientContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetDeviceContextCookie is a cookie used only for GetDeviceContext requests.
type GetDeviceContextCookie struct { *xgb.Cookie }
func GetDeviceContext(c *xgb.Conn, Device uint32) GetDeviceContextCookie
GetDeviceContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceContextCookie.Reply()
func GetDeviceContextUnchecked(c *xgb.Conn, Device uint32) GetDeviceContextCookie
GetDeviceContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetDeviceContextCookie) Reply() (*GetDeviceContextReply, error)
Reply blocks and returns the reply data for a GetDeviceContext request.
GetDeviceContextReply represents the data returned from a GetDeviceContext request.
type GetDeviceContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetDeviceCreateContextCookie is a cookie used only for GetDeviceCreateContext requests.
type GetDeviceCreateContextCookie struct { *xgb.Cookie }
func GetDeviceCreateContext(c *xgb.Conn) GetDeviceCreateContextCookie
GetDeviceCreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetDeviceCreateContextCookie.Reply()
func GetDeviceCreateContextUnchecked(c *xgb.Conn) GetDeviceCreateContextCookie
GetDeviceCreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetDeviceCreateContextCookie) Reply() (*GetDeviceCreateContextReply, error)
Reply blocks and returns the reply data for a GetDeviceCreateContext request.
GetDeviceCreateContextReply represents the data returned from a GetDeviceCreateContext request.
type GetDeviceCreateContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetPropertyContextCookie is a cookie used only for GetPropertyContext requests.
type GetPropertyContextCookie struct { *xgb.Cookie }
func GetPropertyContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie
GetPropertyContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyContextCookie.Reply()
func GetPropertyContextUnchecked(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyContextCookie
GetPropertyContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetPropertyContextCookie) Reply() (*GetPropertyContextReply, error)
Reply blocks and returns the reply data for a GetPropertyContext request.
GetPropertyContextReply represents the data returned from a GetPropertyContext request.
type GetPropertyContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetPropertyCreateContextCookie is a cookie used only for GetPropertyCreateContext requests.
type GetPropertyCreateContextCookie struct { *xgb.Cookie }
func GetPropertyCreateContext(c *xgb.Conn) GetPropertyCreateContextCookie
GetPropertyCreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyCreateContextCookie.Reply()
func GetPropertyCreateContextUnchecked(c *xgb.Conn) GetPropertyCreateContextCookie
GetPropertyCreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetPropertyCreateContextCookie) Reply() (*GetPropertyCreateContextReply, error)
Reply blocks and returns the reply data for a GetPropertyCreateContext request.
GetPropertyCreateContextReply represents the data returned from a GetPropertyCreateContext request.
type GetPropertyCreateContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetPropertyDataContextCookie is a cookie used only for GetPropertyDataContext requests.
type GetPropertyDataContextCookie struct { *xgb.Cookie }
func GetPropertyDataContext(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie
GetPropertyDataContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyDataContextCookie.Reply()
func GetPropertyDataContextUnchecked(c *xgb.Conn, Window xproto.Window, Property xproto.Atom) GetPropertyDataContextCookie
GetPropertyDataContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetPropertyDataContextCookie) Reply() (*GetPropertyDataContextReply, error)
Reply blocks and returns the reply data for a GetPropertyDataContext request.
GetPropertyDataContextReply represents the data returned from a GetPropertyDataContext request.
type GetPropertyDataContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetPropertyUseContextCookie is a cookie used only for GetPropertyUseContext requests.
type GetPropertyUseContextCookie struct { *xgb.Cookie }
func GetPropertyUseContext(c *xgb.Conn) GetPropertyUseContextCookie
GetPropertyUseContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetPropertyUseContextCookie.Reply()
func GetPropertyUseContextUnchecked(c *xgb.Conn) GetPropertyUseContextCookie
GetPropertyUseContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetPropertyUseContextCookie) Reply() (*GetPropertyUseContextReply, error)
Reply blocks and returns the reply data for a GetPropertyUseContext request.
GetPropertyUseContextReply represents the data returned from a GetPropertyUseContext request.
type GetPropertyUseContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetSelectionContextCookie is a cookie used only for GetSelectionContext requests.
type GetSelectionContextCookie struct { *xgb.Cookie }
func GetSelectionContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie
GetSelectionContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionContextCookie.Reply()
func GetSelectionContextUnchecked(c *xgb.Conn, Selection xproto.Atom) GetSelectionContextCookie
GetSelectionContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetSelectionContextCookie) Reply() (*GetSelectionContextReply, error)
Reply blocks and returns the reply data for a GetSelectionContext request.
GetSelectionContextReply represents the data returned from a GetSelectionContext request.
type GetSelectionContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetSelectionCreateContextCookie is a cookie used only for GetSelectionCreateContext requests.
type GetSelectionCreateContextCookie struct { *xgb.Cookie }
func GetSelectionCreateContext(c *xgb.Conn) GetSelectionCreateContextCookie
GetSelectionCreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionCreateContextCookie.Reply()
func GetSelectionCreateContextUnchecked(c *xgb.Conn) GetSelectionCreateContextCookie
GetSelectionCreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetSelectionCreateContextCookie) Reply() (*GetSelectionCreateContextReply, error)
Reply blocks and returns the reply data for a GetSelectionCreateContext request.
GetSelectionCreateContextReply represents the data returned from a GetSelectionCreateContext request.
type GetSelectionCreateContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetSelectionDataContextCookie is a cookie used only for GetSelectionDataContext requests.
type GetSelectionDataContextCookie struct { *xgb.Cookie }
func GetSelectionDataContext(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie
GetSelectionDataContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionDataContextCookie.Reply()
func GetSelectionDataContextUnchecked(c *xgb.Conn, Selection xproto.Atom) GetSelectionDataContextCookie
GetSelectionDataContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetSelectionDataContextCookie) Reply() (*GetSelectionDataContextReply, error)
Reply blocks and returns the reply data for a GetSelectionDataContext request.
GetSelectionDataContextReply represents the data returned from a GetSelectionDataContext request.
type GetSelectionDataContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetSelectionUseContextCookie is a cookie used only for GetSelectionUseContext requests.
type GetSelectionUseContextCookie struct { *xgb.Cookie }
func GetSelectionUseContext(c *xgb.Conn) GetSelectionUseContextCookie
GetSelectionUseContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetSelectionUseContextCookie.Reply()
func GetSelectionUseContextUnchecked(c *xgb.Conn) GetSelectionUseContextCookie
GetSelectionUseContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetSelectionUseContextCookie) Reply() (*GetSelectionUseContextReply, error)
Reply blocks and returns the reply data for a GetSelectionUseContext request.
GetSelectionUseContextReply represents the data returned from a GetSelectionUseContext request.
type GetSelectionUseContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetWindowContextCookie is a cookie used only for GetWindowContext requests.
type GetWindowContextCookie struct { *xgb.Cookie }
func GetWindowContext(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie
GetWindowContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetWindowContextCookie.Reply()
func GetWindowContextUnchecked(c *xgb.Conn, Window xproto.Window) GetWindowContextCookie
GetWindowContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetWindowContextCookie) Reply() (*GetWindowContextReply, error)
Reply blocks and returns the reply data for a GetWindowContext request.
GetWindowContextReply represents the data returned from a GetWindowContext request.
type GetWindowContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
GetWindowCreateContextCookie is a cookie used only for GetWindowCreateContext requests.
type GetWindowCreateContextCookie struct { *xgb.Cookie }
func GetWindowCreateContext(c *xgb.Conn) GetWindowCreateContextCookie
GetWindowCreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling GetWindowCreateContextCookie.Reply()
func GetWindowCreateContextUnchecked(c *xgb.Conn) GetWindowCreateContextCookie
GetWindowCreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook GetWindowCreateContextCookie) Reply() (*GetWindowCreateContextReply, error)
Reply blocks and returns the reply data for a GetWindowCreateContext request.
GetWindowCreateContextReply represents the data returned from a GetWindowCreateContext request.
type GetWindowCreateContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ContextLen uint32 // padding: 20 bytes Context string // size: xgb.Pad((int(ContextLen) * 1)) }
type ListItem struct { Name xproto.Atom ObjectContextLen uint32 DataContextLen uint32 ObjectContext string // size: xgb.Pad((int(ObjectContextLen) * 1)) DataContext string // size: xgb.Pad((int(DataContextLen) * 1)) }
func (v ListItem) Bytes() []byte
Bytes writes a ListItem value to a byte slice.
ListPropertiesCookie is a cookie used only for ListProperties requests.
type ListPropertiesCookie struct { *xgb.Cookie }
func ListProperties(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie
ListProperties sends a checked request. If an error occurs, it will be returned with the reply by calling ListPropertiesCookie.Reply()
func ListPropertiesUnchecked(c *xgb.Conn, Window xproto.Window) ListPropertiesCookie
ListPropertiesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListPropertiesCookie) Reply() (*ListPropertiesReply, error)
Reply blocks and returns the reply data for a ListProperties request.
ListPropertiesReply represents the data returned from a ListProperties request.
type ListPropertiesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes PropertiesLen uint32 // padding: 20 bytes Properties []ListItem // size: ListItemListSize(Properties) }
ListSelectionsCookie is a cookie used only for ListSelections requests.
type ListSelectionsCookie struct { *xgb.Cookie }
func ListSelections(c *xgb.Conn) ListSelectionsCookie
ListSelections sends a checked request. If an error occurs, it will be returned with the reply by calling ListSelectionsCookie.Reply()
func ListSelectionsUnchecked(c *xgb.Conn) ListSelectionsCookie
ListSelectionsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook ListSelectionsCookie) Reply() (*ListSelectionsReply, error)
Reply blocks and returns the reply data for a ListSelections request.
ListSelectionsReply represents the data returned from a ListSelections request.
type ListSelectionsReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes SelectionsLen uint32 // padding: 20 bytes Selections []ListItem // size: ListItemListSize(Selections) }
QueryVersionCookie is a cookie used only for QueryVersion requests.
type QueryVersionCookie struct { *xgb.Cookie }
func QueryVersion(c *xgb.Conn, ClientMajor byte, ClientMinor 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, ClientMajor byte, ClientMinor 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 ServerMajor uint16 ServerMinor uint16 }
SetDeviceContextCookie is a cookie used only for SetDeviceContext requests.
type SetDeviceContextCookie struct { *xgb.Cookie }
func SetDeviceContext(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie
SetDeviceContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetDeviceContextChecked(c *xgb.Conn, Device uint32, ContextLen uint32, Context string) SetDeviceContextCookie
SetDeviceContextChecked sends a checked request. If an error occurs, it can be retrieved using SetDeviceContextCookie.Check()
func (cook SetDeviceContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetDeviceCreateContextCookie is a cookie used only for SetDeviceCreateContext requests.
type SetDeviceCreateContextCookie struct { *xgb.Cookie }
func SetDeviceCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie
SetDeviceCreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetDeviceCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetDeviceCreateContextCookie
SetDeviceCreateContextChecked sends a checked request. If an error occurs, it can be retrieved using SetDeviceCreateContextCookie.Check()
func (cook SetDeviceCreateContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetPropertyCreateContextCookie is a cookie used only for SetPropertyCreateContext requests.
type SetPropertyCreateContextCookie struct { *xgb.Cookie }
func SetPropertyCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie
SetPropertyCreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPropertyCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyCreateContextCookie
SetPropertyCreateContextChecked sends a checked request. If an error occurs, it can be retrieved using SetPropertyCreateContextCookie.Check()
func (cook SetPropertyCreateContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetPropertyUseContextCookie is a cookie used only for SetPropertyUseContext requests.
type SetPropertyUseContextCookie struct { *xgb.Cookie }
func SetPropertyUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie
SetPropertyUseContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPropertyUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetPropertyUseContextCookie
SetPropertyUseContextChecked sends a checked request. If an error occurs, it can be retrieved using SetPropertyUseContextCookie.Check()
func (cook SetPropertyUseContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetSelectionCreateContextCookie is a cookie used only for SetSelectionCreateContext requests.
type SetSelectionCreateContextCookie struct { *xgb.Cookie }
func SetSelectionCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie
SetSelectionCreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetSelectionCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionCreateContextCookie
SetSelectionCreateContextChecked sends a checked request. If an error occurs, it can be retrieved using SetSelectionCreateContextCookie.Check()
func (cook SetSelectionCreateContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetSelectionUseContextCookie is a cookie used only for SetSelectionUseContext requests.
type SetSelectionUseContextCookie struct { *xgb.Cookie }
func SetSelectionUseContext(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie
SetSelectionUseContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetSelectionUseContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetSelectionUseContextCookie
SetSelectionUseContextChecked sends a checked request. If an error occurs, it can be retrieved using SetSelectionUseContextCookie.Check()
func (cook SetSelectionUseContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
SetWindowCreateContextCookie is a cookie used only for SetWindowCreateContext requests.
type SetWindowCreateContextCookie struct { *xgb.Cookie }
func SetWindowCreateContext(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie
SetWindowCreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetWindowCreateContextChecked(c *xgb.Conn, ContextLen uint32, Context string) SetWindowCreateContextCookie
SetWindowCreateContextChecked sends a checked request. If an error occurs, it can be retrieved using SetWindowCreateContextCookie.Check()
func (cook SetWindowCreateContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.