Documentation
¶
Overview ¶
Package xfixes is the X client API for the XFIXES extension.
Index ¶
- Constants
- func BadRegionErrorNew(buf []byte) xgb.Error
- func CursorNotifyEventNew(buf []byte) xgb.Event
- func Init(c *xgb.Conn) error
- func SelectionNotifyEventNew(buf []byte) xgb.Event
- type BadRegionError
- type ChangeCursorByNameCookie
- type ChangeCursorCookie
- type ChangeSaveSetCookie
- type CopyRegionCookie
- type CreateRegionCookie
- type CreateRegionFromBitmapCookie
- type CreateRegionFromGCCookie
- type CreateRegionFromPictureCookie
- type CreateRegionFromWindowCookie
- type CursorNotifyEvent
- type DestroyRegionCookie
- type ExpandRegionCookie
- type FetchRegionCookie
- type FetchRegionReply
- type GetCursorImageAndNameCookie
- type GetCursorImageAndNameReply
- type GetCursorImageCookie
- type GetCursorImageReply
- type GetCursorNameCookie
- type GetCursorNameReply
- type HideCursorCookie
- type IntersectRegionCookie
- type InvertRegionCookie
- type QueryVersionCookie
- type QueryVersionReply
- type Region
- type RegionExtentsCookie
- type SelectCursorInputCookie
- type SelectSelectionInputCookie
- type SelectionNotifyEvent
- type SetCursorNameCookie
- type SetGCClipRegionCookie
- type SetPictureClipRegionCookie
- func SetPictureClipRegion(c *xgb.Conn, buf []byte, Picture render.Picture, Region Region, XOrigin int16, ...) (SetPictureClipRegionCookie, []byte)
- func SetPictureClipRegionChecked(c *xgb.Conn, buf []byte, Picture render.Picture, Region Region, XOrigin int16, ...) (SetPictureClipRegionCookie, []byte)
- type SetRegionCookie
- type SetWindowShapeRegionCookie
- type ShowCursorCookie
- type SubtractRegionCookie
- type TranslateRegionCookie
- type UnionRegionCookie
Constants ¶
const ( SaveSetModeInsert = 0 SaveSetModeDelete = 1 )
const ( SaveSetTargetNearest = 0 SaveSetTargetRoot = 1 )
const ( SaveSetMappingMap = 0 SaveSetMappingUnmap = 1 )
const ( SelectionEventSetSelectionOwner = 0 SelectionEventSelectionWindowDestroy = 1 SelectionEventSelectionClientClose = 2 )
const ( SelectionEventMaskSetSelectionOwner = 1 SelectionEventMaskSelectionWindowDestroy = 2 SelectionEventMaskSelectionClientClose = 4 )
const BadBadRegion = 0
BadBadRegion is the error number for a BadBadRegion.
const CursorNotify = 1
CursorNotify is the event number for a CursorNotifyEvent.
const (
CursorNotifyDisplayCursor = 0
)
const (
CursorNotifyMaskDisplayCursor = 1
)
const (
RegionNone = 0
)
const SelectionNotify = 0
SelectionNotify is the event number for a SelectionNotifyEvent.
Variables ¶
This section is empty.
Functions ¶
func BadRegionErrorNew ¶
BadRegionErrorNew constructs a BadRegionError value that implements xgb.Error from a byte slice.
func CursorNotifyEventNew ¶
CursorNotifyEventNew constructs a CursorNotifyEvent value that implements xgb.Event from a byte slice.
func SelectionNotifyEventNew ¶
SelectionNotifyEventNew constructs a SelectionNotifyEvent value that implements xgb.Event from a byte slice.
Types ¶
type BadRegionError ¶
func (BadRegionError) BadId ¶
func (err BadRegionError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadBadRegion error. If no bad value exists, 0 is returned.
func (BadRegionError) Error ¶
func (err BadRegionError) Error() string
func (BadRegionError) SequenceId ¶
func (err BadRegionError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadRegion error. This is mostly used internally.
type ChangeCursorByNameCookie ¶
ChangeCursorByNameCookie is a cookie used only for ChangeCursorByName requests.
func ChangeCursorByName ¶
func ChangeCursorByName(c *xgb.Conn, buf []byte, Src xproto.Cursor, Nbytes uint16, Name string) (ChangeCursorByNameCookie, []byte)
ChangeCursorByName sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeCursorByNameChecked ¶
func ChangeCursorByNameChecked(c *xgb.Conn, buf []byte, Src xproto.Cursor, Nbytes uint16, Name string) (ChangeCursorByNameCookie, []byte)
ChangeCursorByNameChecked sends a checked request. If an error occurs, it can be retrieved using ChangeCursorByNameCookie.Check()
func (ChangeCursorByNameCookie) Check ¶
func (cook ChangeCursorByNameCookie) 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.
type ChangeCursorCookie ¶
ChangeCursorCookie is a cookie used only for ChangeCursor requests.
func ChangeCursor ¶
func ChangeCursor(c *xgb.Conn, buf []byte, Source xproto.Cursor, Destination xproto.Cursor) (ChangeCursorCookie, []byte)
ChangeCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeCursorChecked ¶
func ChangeCursorChecked(c *xgb.Conn, buf []byte, Source xproto.Cursor, Destination xproto.Cursor) (ChangeCursorCookie, []byte)
ChangeCursorChecked sends a checked request. If an error occurs, it can be retrieved using ChangeCursorCookie.Check()
func (ChangeCursorCookie) Check ¶
func (cook ChangeCursorCookie) 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.
type ChangeSaveSetCookie ¶
ChangeSaveSetCookie is a cookie used only for ChangeSaveSet requests.
func ChangeSaveSet ¶
func ChangeSaveSet(c *xgb.Conn, buf []byte, Mode byte, Target byte, Map byte, Window xproto.Window) (ChangeSaveSetCookie, []byte)
ChangeSaveSet sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ChangeSaveSetChecked ¶
func ChangeSaveSetChecked(c *xgb.Conn, buf []byte, Mode byte, Target byte, Map byte, Window xproto.Window) (ChangeSaveSetCookie, []byte)
ChangeSaveSetChecked sends a checked request. If an error occurs, it can be retrieved using ChangeSaveSetCookie.Check()
func (ChangeSaveSetCookie) Check ¶
func (cook ChangeSaveSetCookie) 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.
type CopyRegionCookie ¶
CopyRegionCookie is a cookie used only for CopyRegion requests.
func CopyRegion ¶
func CopyRegion(c *xgb.Conn, buf []byte, Source Region, Destination Region) (CopyRegionCookie, []byte)
CopyRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CopyRegionChecked ¶
func CopyRegionChecked(c *xgb.Conn, buf []byte, Source Region, Destination Region) (CopyRegionCookie, []byte)
CopyRegionChecked sends a checked request. If an error occurs, it can be retrieved using CopyRegionCookie.Check()
func (CopyRegionCookie) Check ¶
func (cook CopyRegionCookie) 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.
type CreateRegionCookie ¶
CreateRegionCookie is a cookie used only for CreateRegion requests.
func CreateRegion ¶
func CreateRegion(c *xgb.Conn, buf []byte, Region Region, Rectangles []xproto.Rectangle) (CreateRegionCookie, []byte)
CreateRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateRegionChecked ¶
func CreateRegionChecked(c *xgb.Conn, buf []byte, Region Region, Rectangles []xproto.Rectangle) (CreateRegionCookie, []byte)
CreateRegionChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionCookie.Check()
func (CreateRegionCookie) Check ¶
func (cook CreateRegionCookie) 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.
type CreateRegionFromBitmapCookie ¶
CreateRegionFromBitmapCookie is a cookie used only for CreateRegionFromBitmap requests.
func CreateRegionFromBitmap ¶
func CreateRegionFromBitmap(c *xgb.Conn, buf []byte, Region Region, Bitmap xproto.Pixmap) (CreateRegionFromBitmapCookie, []byte)
CreateRegionFromBitmap sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateRegionFromBitmapChecked ¶
func CreateRegionFromBitmapChecked(c *xgb.Conn, buf []byte, Region Region, Bitmap xproto.Pixmap) (CreateRegionFromBitmapCookie, []byte)
CreateRegionFromBitmapChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionFromBitmapCookie.Check()
func (CreateRegionFromBitmapCookie) Check ¶
func (cook CreateRegionFromBitmapCookie) 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.
type CreateRegionFromGCCookie ¶
CreateRegionFromGCCookie is a cookie used only for CreateRegionFromGC requests.
func CreateRegionFromGC ¶
func CreateRegionFromGC(c *xgb.Conn, buf []byte, Region Region, Gc xproto.Gcontext) (CreateRegionFromGCCookie, []byte)
CreateRegionFromGC sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateRegionFromGCChecked ¶
func CreateRegionFromGCChecked(c *xgb.Conn, buf []byte, Region Region, Gc xproto.Gcontext) (CreateRegionFromGCCookie, []byte)
CreateRegionFromGCChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionFromGCCookie.Check()
func (CreateRegionFromGCCookie) Check ¶
func (cook CreateRegionFromGCCookie) 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.
type CreateRegionFromPictureCookie ¶
CreateRegionFromPictureCookie is a cookie used only for CreateRegionFromPicture requests.
func CreateRegionFromPicture ¶
func CreateRegionFromPicture(c *xgb.Conn, buf []byte, Region Region, Picture render.Picture) (CreateRegionFromPictureCookie, []byte)
CreateRegionFromPicture sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateRegionFromPictureChecked ¶
func CreateRegionFromPictureChecked(c *xgb.Conn, buf []byte, Region Region, Picture render.Picture) (CreateRegionFromPictureCookie, []byte)
CreateRegionFromPictureChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionFromPictureCookie.Check()
func (CreateRegionFromPictureCookie) Check ¶
func (cook CreateRegionFromPictureCookie) 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.
type CreateRegionFromWindowCookie ¶
CreateRegionFromWindowCookie is a cookie used only for CreateRegionFromWindow requests.
func CreateRegionFromWindow ¶
func CreateRegionFromWindow(c *xgb.Conn, buf []byte, Region Region, Window xproto.Window, Kind shape.Kind) (CreateRegionFromWindowCookie, []byte)
CreateRegionFromWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateRegionFromWindowChecked ¶
func CreateRegionFromWindowChecked(c *xgb.Conn, buf []byte, Region Region, Window xproto.Window, Kind shape.Kind) (CreateRegionFromWindowCookie, []byte)
CreateRegionFromWindowChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionFromWindowCookie.Check()
func (CreateRegionFromWindowCookie) Check ¶
func (cook CreateRegionFromWindowCookie) 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.
type CursorNotifyEvent ¶
type CursorNotifyEvent struct { Sequence uint16 Subtype byte Window xproto.Window CursorSerial uint32 Timestamp xproto.Timestamp Name xproto.Atom }
func (CursorNotifyEvent) Bytes ¶
func (v CursorNotifyEvent) Bytes() []byte
Bytes writes a CursorNotifyEvent value to a byte slice.
func (CursorNotifyEvent) SequenceId ¶
func (v CursorNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the CursorNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (CursorNotifyEvent) String ¶
func (v CursorNotifyEvent) String() string
String is a rudimentary string representation of CursorNotifyEvent.
type DestroyRegionCookie ¶
DestroyRegionCookie is a cookie used only for DestroyRegion requests.
func DestroyRegion ¶
DestroyRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyRegionChecked ¶
DestroyRegionChecked sends a checked request. If an error occurs, it can be retrieved using DestroyRegionCookie.Check()
func (DestroyRegionCookie) Check ¶
func (cook DestroyRegionCookie) 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.
type ExpandRegionCookie ¶
ExpandRegionCookie is a cookie used only for ExpandRegion requests.
func ExpandRegion ¶
func ExpandRegion(c *xgb.Conn, buf []byte, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) (ExpandRegionCookie, []byte)
ExpandRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ExpandRegionChecked ¶
func ExpandRegionChecked(c *xgb.Conn, buf []byte, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) (ExpandRegionCookie, []byte)
ExpandRegionChecked sends a checked request. If an error occurs, it can be retrieved using ExpandRegionCookie.Check()
func (ExpandRegionCookie) Check ¶
func (cook ExpandRegionCookie) 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.
type FetchRegionCookie ¶
FetchRegionCookie is a cookie used only for FetchRegion requests.
func FetchRegion ¶
FetchRegion sends a checked request. If an error occurs, it will be returned with the reply by calling FetchRegionCookie.Reply()
func FetchRegionUnchecked ¶
FetchRegionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (FetchRegionCookie) Reply ¶
func (cook FetchRegionCookie) Reply() (*FetchRegionReply, error)
Reply blocks and returns the reply data for a FetchRegion request.
type FetchRegionReply ¶
type FetchRegionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Extents xproto.Rectangle // padding: 16 bytes Rectangles []xproto.Rectangle // size: xgb.Pad(((int(Length) / 2) * 8)) }
FetchRegionReply represents the data returned from a FetchRegion request.
type GetCursorImageAndNameCookie ¶
GetCursorImageAndNameCookie is a cookie used only for GetCursorImageAndName requests.
func GetCursorImageAndName ¶
func GetCursorImageAndName(c *xgb.Conn, buf []byte) (GetCursorImageAndNameCookie, []byte)
GetCursorImageAndName sends a checked request. If an error occurs, it will be returned with the reply by calling GetCursorImageAndNameCookie.Reply()
func GetCursorImageAndNameUnchecked ¶
func GetCursorImageAndNameUnchecked(c *xgb.Conn, buf []byte) (GetCursorImageAndNameCookie, []byte)
GetCursorImageAndNameUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (GetCursorImageAndNameCookie) Reply ¶
func (cook GetCursorImageAndNameCookie) Reply() (*GetCursorImageAndNameReply, error)
Reply blocks and returns the reply data for a GetCursorImageAndName request.
type GetCursorImageAndNameReply ¶
type GetCursorImageAndNameReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes X int16 Y int16 Width uint16 Height uint16 Xhot uint16 Yhot uint16 CursorSerial uint32 CursorAtom xproto.Atom Nbytes uint16 // padding: 2 bytes Name string // size: xgb.Pad((int(Nbytes) * 1)) CursorImage []uint32 // size: xgb.Pad(((int(Width) * int(Height)) * 4)) }
GetCursorImageAndNameReply represents the data returned from a GetCursorImageAndName request.
type GetCursorImageCookie ¶
GetCursorImageCookie is a cookie used only for GetCursorImage requests.
func GetCursorImage ¶
func GetCursorImage(c *xgb.Conn, buf []byte) (GetCursorImageCookie, []byte)
GetCursorImage sends a checked request. If an error occurs, it will be returned with the reply by calling GetCursorImageCookie.Reply()
func GetCursorImageUnchecked ¶
func GetCursorImageUnchecked(c *xgb.Conn, buf []byte) (GetCursorImageCookie, []byte)
GetCursorImageUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (GetCursorImageCookie) Reply ¶
func (cook GetCursorImageCookie) Reply() (*GetCursorImageReply, error)
Reply blocks and returns the reply data for a GetCursorImage request.
type GetCursorImageReply ¶
type GetCursorImageReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes X int16 Y int16 Width uint16 Height uint16 Xhot uint16 Yhot uint16 CursorSerial uint32 // padding: 8 bytes CursorImage []uint32 // size: xgb.Pad(((int(Width) * int(Height)) * 4)) }
GetCursorImageReply represents the data returned from a GetCursorImage request.
type GetCursorNameCookie ¶
GetCursorNameCookie is a cookie used only for GetCursorName requests.
func GetCursorName ¶
GetCursorName sends a checked request. If an error occurs, it will be returned with the reply by calling GetCursorNameCookie.Reply()
func GetCursorNameUnchecked ¶
func GetCursorNameUnchecked(c *xgb.Conn, buf []byte, Cursor xproto.Cursor) (GetCursorNameCookie, []byte)
GetCursorNameUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (GetCursorNameCookie) Reply ¶
func (cook GetCursorNameCookie) Reply() (*GetCursorNameReply, error)
Reply blocks and returns the reply data for a GetCursorName request.
type GetCursorNameReply ¶
type GetCursorNameReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Atom xproto.Atom Nbytes uint16 // padding: 18 bytes Name string // size: xgb.Pad((int(Nbytes) * 1)) }
GetCursorNameReply represents the data returned from a GetCursorName request.
type HideCursorCookie ¶
HideCursorCookie is a cookie used only for HideCursor requests.
func HideCursor ¶
HideCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func HideCursorChecked ¶
HideCursorChecked sends a checked request. If an error occurs, it can be retrieved using HideCursorCookie.Check()
func (HideCursorCookie) Check ¶
func (cook HideCursorCookie) 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.
type IntersectRegionCookie ¶
IntersectRegionCookie is a cookie used only for IntersectRegion requests.
func IntersectRegion ¶
func IntersectRegion(c *xgb.Conn, buf []byte, Source1 Region, Source2 Region, Destination Region) (IntersectRegionCookie, []byte)
IntersectRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func IntersectRegionChecked ¶
func IntersectRegionChecked(c *xgb.Conn, buf []byte, Source1 Region, Source2 Region, Destination Region) (IntersectRegionCookie, []byte)
IntersectRegionChecked sends a checked request. If an error occurs, it can be retrieved using IntersectRegionCookie.Check()
func (IntersectRegionCookie) Check ¶
func (cook IntersectRegionCookie) 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.
type InvertRegionCookie ¶
InvertRegionCookie is a cookie used only for InvertRegion requests.
func InvertRegion ¶
func InvertRegion(c *xgb.Conn, buf []byte, Source Region, Bounds xproto.Rectangle, Destination Region) (InvertRegionCookie, []byte)
InvertRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func InvertRegionChecked ¶
func InvertRegionChecked(c *xgb.Conn, buf []byte, Source Region, Bounds xproto.Rectangle, Destination Region) (InvertRegionCookie, []byte)
InvertRegionChecked sends a checked request. If an error occurs, it can be retrieved using InvertRegionCookie.Check()
func (InvertRegionCookie) Check ¶
func (cook InvertRegionCookie) 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.
type QueryVersionCookie ¶
QueryVersionCookie is a cookie used only for QueryVersion requests.
func QueryVersion ¶
func QueryVersion(c *xgb.Conn, buf []byte, ClientMajorVersion uint32, ClientMinorVersion uint32) (QueryVersionCookie, []byte)
QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersionUnchecked ¶
func QueryVersionUnchecked(c *xgb.Conn, buf []byte, ClientMajorVersion uint32, ClientMinorVersion uint32) (QueryVersionCookie, []byte)
QueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (QueryVersionCookie) Reply ¶
func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)
Reply blocks and returns the reply data for a QueryVersion request.
type QueryVersionReply ¶
type QueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes MajorVersion uint32 MinorVersion uint32 }
QueryVersionReply represents the data returned from a QueryVersion request.
type RegionExtentsCookie ¶
RegionExtentsCookie is a cookie used only for RegionExtents requests.
func RegionExtents ¶
func RegionExtents(c *xgb.Conn, buf []byte, Source Region, Destination Region) (RegionExtentsCookie, []byte)
RegionExtents sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func RegionExtentsChecked ¶
func RegionExtentsChecked(c *xgb.Conn, buf []byte, Source Region, Destination Region) (RegionExtentsCookie, []byte)
RegionExtentsChecked sends a checked request. If an error occurs, it can be retrieved using RegionExtentsCookie.Check()
func (RegionExtentsCookie) Check ¶
func (cook RegionExtentsCookie) 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.
type SelectCursorInputCookie ¶
SelectCursorInputCookie is a cookie used only for SelectCursorInput requests.
func SelectCursorInput ¶
func SelectCursorInput(c *xgb.Conn, buf []byte, Window xproto.Window, EventMask uint32) (SelectCursorInputCookie, []byte)
SelectCursorInput sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SelectCursorInputChecked ¶
func SelectCursorInputChecked(c *xgb.Conn, buf []byte, Window xproto.Window, EventMask uint32) (SelectCursorInputCookie, []byte)
SelectCursorInputChecked sends a checked request. If an error occurs, it can be retrieved using SelectCursorInputCookie.Check()
func (SelectCursorInputCookie) Check ¶
func (cook SelectCursorInputCookie) 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.
type SelectSelectionInputCookie ¶
SelectSelectionInputCookie is a cookie used only for SelectSelectionInput requests.
func SelectSelectionInput ¶
func SelectSelectionInput(c *xgb.Conn, buf []byte, Window xproto.Window, Selection xproto.Atom, EventMask uint32) (SelectSelectionInputCookie, []byte)
SelectSelectionInput sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SelectSelectionInputChecked ¶
func SelectSelectionInputChecked(c *xgb.Conn, buf []byte, Window xproto.Window, Selection xproto.Atom, EventMask uint32) (SelectSelectionInputCookie, []byte)
SelectSelectionInputChecked sends a checked request. If an error occurs, it can be retrieved using SelectSelectionInputCookie.Check()
func (SelectSelectionInputCookie) Check ¶
func (cook SelectSelectionInputCookie) 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.
type SelectionNotifyEvent ¶
type SelectionNotifyEvent struct { Sequence uint16 Subtype byte Window xproto.Window Owner xproto.Window Selection xproto.Atom Timestamp xproto.Timestamp SelectionTimestamp xproto.Timestamp }
func (SelectionNotifyEvent) Bytes ¶
func (v SelectionNotifyEvent) Bytes() []byte
Bytes writes a SelectionNotifyEvent value to a byte slice.
func (SelectionNotifyEvent) SequenceId ¶
func (v SelectionNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the SelectionNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (SelectionNotifyEvent) String ¶
func (v SelectionNotifyEvent) String() string
String is a rudimentary string representation of SelectionNotifyEvent.
type SetCursorNameCookie ¶
SetCursorNameCookie is a cookie used only for SetCursorName requests.
func SetCursorName ¶
func SetCursorName(c *xgb.Conn, buf []byte, Cursor xproto.Cursor, Nbytes uint16, Name string) (SetCursorNameCookie, []byte)
SetCursorName sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetCursorNameChecked ¶
func SetCursorNameChecked(c *xgb.Conn, buf []byte, Cursor xproto.Cursor, Nbytes uint16, Name string) (SetCursorNameCookie, []byte)
SetCursorNameChecked sends a checked request. If an error occurs, it can be retrieved using SetCursorNameCookie.Check()
func (SetCursorNameCookie) Check ¶
func (cook SetCursorNameCookie) 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.
type SetGCClipRegionCookie ¶
SetGCClipRegionCookie is a cookie used only for SetGCClipRegion requests.
func SetGCClipRegion ¶
func SetGCClipRegion(c *xgb.Conn, buf []byte, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) (SetGCClipRegionCookie, []byte)
SetGCClipRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetGCClipRegionChecked ¶
func SetGCClipRegionChecked(c *xgb.Conn, buf []byte, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) (SetGCClipRegionCookie, []byte)
SetGCClipRegionChecked sends a checked request. If an error occurs, it can be retrieved using SetGCClipRegionCookie.Check()
func (SetGCClipRegionCookie) Check ¶
func (cook SetGCClipRegionCookie) 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.
type SetPictureClipRegionCookie ¶
SetPictureClipRegionCookie is a cookie used only for SetPictureClipRegion requests.
func SetPictureClipRegion ¶
func SetPictureClipRegion(c *xgb.Conn, buf []byte, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) (SetPictureClipRegionCookie, []byte)
SetPictureClipRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetPictureClipRegionChecked ¶
func SetPictureClipRegionChecked(c *xgb.Conn, buf []byte, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) (SetPictureClipRegionCookie, []byte)
SetPictureClipRegionChecked sends a checked request. If an error occurs, it can be retrieved using SetPictureClipRegionCookie.Check()
func (SetPictureClipRegionCookie) Check ¶
func (cook SetPictureClipRegionCookie) 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.
type SetRegionCookie ¶
SetRegionCookie is a cookie used only for SetRegion requests.
func SetRegion ¶
func SetRegion(c *xgb.Conn, buf []byte, Region Region, Rectangles []xproto.Rectangle) (SetRegionCookie, []byte)
SetRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetRegionChecked ¶
func SetRegionChecked(c *xgb.Conn, buf []byte, Region Region, Rectangles []xproto.Rectangle) (SetRegionCookie, []byte)
SetRegionChecked sends a checked request. If an error occurs, it can be retrieved using SetRegionCookie.Check()
func (SetRegionCookie) Check ¶
func (cook SetRegionCookie) 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.
type SetWindowShapeRegionCookie ¶
SetWindowShapeRegionCookie is a cookie used only for SetWindowShapeRegion requests.
func SetWindowShapeRegion ¶
func SetWindowShapeRegion(c *xgb.Conn, buf []byte, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) (SetWindowShapeRegionCookie, []byte)
SetWindowShapeRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SetWindowShapeRegionChecked ¶
func SetWindowShapeRegionChecked(c *xgb.Conn, buf []byte, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) (SetWindowShapeRegionCookie, []byte)
SetWindowShapeRegionChecked sends a checked request. If an error occurs, it can be retrieved using SetWindowShapeRegionCookie.Check()
func (SetWindowShapeRegionCookie) Check ¶
func (cook SetWindowShapeRegionCookie) 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.
type ShowCursorCookie ¶
ShowCursorCookie is a cookie used only for ShowCursor requests.
func ShowCursor ¶
ShowCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ShowCursorChecked ¶
ShowCursorChecked sends a checked request. If an error occurs, it can be retrieved using ShowCursorCookie.Check()
func (ShowCursorCookie) Check ¶
func (cook ShowCursorCookie) 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.
type SubtractRegionCookie ¶
SubtractRegionCookie is a cookie used only for SubtractRegion requests.
func SubtractRegion ¶
func SubtractRegion(c *xgb.Conn, buf []byte, Source1 Region, Source2 Region, Destination Region) (SubtractRegionCookie, []byte)
SubtractRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func SubtractRegionChecked ¶
func SubtractRegionChecked(c *xgb.Conn, buf []byte, Source1 Region, Source2 Region, Destination Region) (SubtractRegionCookie, []byte)
SubtractRegionChecked sends a checked request. If an error occurs, it can be retrieved using SubtractRegionCookie.Check()
func (SubtractRegionCookie) Check ¶
func (cook SubtractRegionCookie) 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.
type TranslateRegionCookie ¶
TranslateRegionCookie is a cookie used only for TranslateRegion requests.
func TranslateRegion ¶
func TranslateRegion(c *xgb.Conn, buf []byte, Region Region, Dx int16, Dy int16) (TranslateRegionCookie, []byte)
TranslateRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func TranslateRegionChecked ¶
func TranslateRegionChecked(c *xgb.Conn, buf []byte, Region Region, Dx int16, Dy int16) (TranslateRegionCookie, []byte)
TranslateRegionChecked sends a checked request. If an error occurs, it can be retrieved using TranslateRegionCookie.Check()
func (TranslateRegionCookie) Check ¶
func (cook TranslateRegionCookie) 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.
type UnionRegionCookie ¶
UnionRegionCookie is a cookie used only for UnionRegion requests.
func UnionRegion ¶
func UnionRegion(c *xgb.Conn, buf []byte, Source1 Region, Source2 Region, Destination Region) (UnionRegionCookie, []byte)
UnionRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func UnionRegionChecked ¶
func UnionRegionChecked(c *xgb.Conn, buf []byte, Source1 Region, Source2 Region, Destination Region) (UnionRegionCookie, []byte)
UnionRegionChecked sends a checked request. If an error occurs, it can be retrieved using UnionRegionCookie.Check()
func (UnionRegionCookie) Check ¶
func (cook UnionRegionCookie) 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.