xgb: github.com/BurntSushi/xgb/xfixes Index | Files

package xfixes

import "github.com/BurntSushi/xgb/xfixes"

Package xfixes is the X client API for the XFIXES extension.

Index

Package Files

xfixes.go

Constants

const (
    BarrierDirectionsPositiveX = 1
    BarrierDirectionsPositiveY = 2
    BarrierDirectionsNegativeX = 4
    BarrierDirectionsNegativeY = 8
)
const (
    SaveSetMappingMap   = 0
    SaveSetMappingUnmap = 1
)
const (
    SaveSetModeInsert = 0
    SaveSetModeDelete = 1
)
const (
    SaveSetTargetNearest = 0
    SaveSetTargetRoot    = 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.

func BadRegionErrorNew Uses

func BadRegionErrorNew(buf []byte) xgb.Error

BadRegionErrorNew constructs a BadRegionError value that implements xgb.Error from a byte slice.

func CursorNotifyEventNew Uses

func CursorNotifyEventNew(buf []byte) xgb.Event

CursorNotifyEventNew constructs a CursorNotifyEvent value that implements xgb.Event from a byte slice.

func Init Uses

func Init(c *xgb.Conn) error

Init must be called before using the XFIXES extension.

func SelectionNotifyEventNew Uses

func SelectionNotifyEventNew(buf []byte) xgb.Event

SelectionNotifyEventNew constructs a SelectionNotifyEvent value that implements xgb.Event from a byte slice.

type BadRegionError Uses

type BadRegionError struct {
    Sequence uint16
    NiceName string
}

func (BadRegionError) BadId Uses

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 Uses

func (err BadRegionError) Error() string

func (BadRegionError) SequenceId Uses

func (err BadRegionError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadBadRegion error. This is mostly used internally.

type Barrier Uses

type Barrier uint32

func NewBarrierId Uses

func NewBarrierId(c *xgb.Conn) (Barrier, error)

type ChangeCursorByNameCookie Uses

type ChangeCursorByNameCookie struct {
    *xgb.Cookie
}

ChangeCursorByNameCookie is a cookie used only for ChangeCursorByName requests.

func ChangeCursorByName Uses

func ChangeCursorByName(c *xgb.Conn, Src xproto.Cursor, Nbytes uint16, Name string) ChangeCursorByNameCookie

ChangeCursorByName sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeCursorByNameChecked Uses

func ChangeCursorByNameChecked(c *xgb.Conn, Src xproto.Cursor, Nbytes uint16, Name string) ChangeCursorByNameCookie

ChangeCursorByNameChecked sends a checked request. If an error occurs, it can be retrieved using ChangeCursorByNameCookie.Check()

func (ChangeCursorByNameCookie) Check Uses

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 Uses

type ChangeCursorCookie struct {
    *xgb.Cookie
}

ChangeCursorCookie is a cookie used only for ChangeCursor requests.

func ChangeCursor Uses

func ChangeCursor(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor) ChangeCursorCookie

ChangeCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeCursorChecked Uses

func ChangeCursorChecked(c *xgb.Conn, Source xproto.Cursor, Destination xproto.Cursor) ChangeCursorCookie

ChangeCursorChecked sends a checked request. If an error occurs, it can be retrieved using ChangeCursorCookie.Check()

func (ChangeCursorCookie) Check Uses

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 Uses

type ChangeSaveSetCookie struct {
    *xgb.Cookie
}

ChangeSaveSetCookie is a cookie used only for ChangeSaveSet requests.

func ChangeSaveSet Uses

func ChangeSaveSet(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.Window) ChangeSaveSetCookie

ChangeSaveSet sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeSaveSetChecked Uses

func ChangeSaveSetChecked(c *xgb.Conn, Mode byte, Target byte, Map byte, Window xproto.Window) ChangeSaveSetCookie

ChangeSaveSetChecked sends a checked request. If an error occurs, it can be retrieved using ChangeSaveSetCookie.Check()

func (ChangeSaveSetCookie) Check Uses

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 Uses

type CopyRegionCookie struct {
    *xgb.Cookie
}

CopyRegionCookie is a cookie used only for CopyRegion requests.

func CopyRegion Uses

func CopyRegion(c *xgb.Conn, Source Region, Destination Region) CopyRegionCookie

CopyRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CopyRegionChecked Uses

func CopyRegionChecked(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 (CopyRegionCookie) Check Uses

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 CreatePointerBarrierCookie Uses

type CreatePointerBarrierCookie struct {
    *xgb.Cookie
}

CreatePointerBarrierCookie is a cookie used only for CreatePointerBarrier requests.

func CreatePointerBarrier Uses

func CreatePointerBarrier(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1 uint16, Y1 uint16, X2 uint16, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) CreatePointerBarrierCookie

CreatePointerBarrier sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreatePointerBarrierChecked Uses

func CreatePointerBarrierChecked(c *xgb.Conn, Barrier Barrier, Window xproto.Window, X1 uint16, Y1 uint16, X2 uint16, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) CreatePointerBarrierCookie

CreatePointerBarrierChecked sends a checked request. If an error occurs, it can be retrieved using CreatePointerBarrierCookie.Check()

func (CreatePointerBarrierCookie) Check Uses

func (cook CreatePointerBarrierCookie) 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 Uses

type CreateRegionCookie struct {
    *xgb.Cookie
}

CreateRegionCookie is a cookie used only for CreateRegion requests.

func CreateRegion Uses

func CreateRegion(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) CreateRegionCookie

CreateRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreateRegionChecked Uses

func CreateRegionChecked(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) CreateRegionCookie

CreateRegionChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionCookie.Check()

func (CreateRegionCookie) Check Uses

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 Uses

type CreateRegionFromBitmapCookie struct {
    *xgb.Cookie
}

CreateRegionFromBitmapCookie is a cookie used only for CreateRegionFromBitmap requests.

func CreateRegionFromBitmap Uses

func CreateRegionFromBitmap(c *xgb.Conn, Region Region, Bitmap xproto.Pixmap) CreateRegionFromBitmapCookie

CreateRegionFromBitmap sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreateRegionFromBitmapChecked Uses

func CreateRegionFromBitmapChecked(c *xgb.Conn, Region Region, Bitmap xproto.Pixmap) CreateRegionFromBitmapCookie

CreateRegionFromBitmapChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionFromBitmapCookie.Check()

func (CreateRegionFromBitmapCookie) Check Uses

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 Uses

type CreateRegionFromGCCookie struct {
    *xgb.Cookie
}

CreateRegionFromGCCookie is a cookie used only for CreateRegionFromGC requests.

func CreateRegionFromGC Uses

func CreateRegionFromGC(c *xgb.Conn, Region Region, Gc xproto.Gcontext) CreateRegionFromGCCookie

CreateRegionFromGC sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreateRegionFromGCChecked Uses

func CreateRegionFromGCChecked(c *xgb.Conn, Region Region, Gc xproto.Gcontext) CreateRegionFromGCCookie

CreateRegionFromGCChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionFromGCCookie.Check()

func (CreateRegionFromGCCookie) Check Uses

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 Uses

type CreateRegionFromPictureCookie struct {
    *xgb.Cookie
}

CreateRegionFromPictureCookie is a cookie used only for CreateRegionFromPicture requests.

func CreateRegionFromPicture Uses

func CreateRegionFromPicture(c *xgb.Conn, Region Region, Picture render.Picture) CreateRegionFromPictureCookie

CreateRegionFromPicture sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreateRegionFromPictureChecked Uses

func CreateRegionFromPictureChecked(c *xgb.Conn, Region Region, Picture render.Picture) CreateRegionFromPictureCookie

CreateRegionFromPictureChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionFromPictureCookie.Check()

func (CreateRegionFromPictureCookie) Check Uses

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 Uses

type CreateRegionFromWindowCookie struct {
    *xgb.Cookie
}

CreateRegionFromWindowCookie is a cookie used only for CreateRegionFromWindow requests.

func CreateRegionFromWindow Uses

func CreateRegionFromWindow(c *xgb.Conn, Region Region, Window xproto.Window, Kind shape.Kind) CreateRegionFromWindowCookie

CreateRegionFromWindow sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreateRegionFromWindowChecked Uses

func CreateRegionFromWindowChecked(c *xgb.Conn, Region Region, Window xproto.Window, Kind shape.Kind) CreateRegionFromWindowCookie

CreateRegionFromWindowChecked sends a checked request. If an error occurs, it can be retrieved using CreateRegionFromWindowCookie.Check()

func (CreateRegionFromWindowCookie) Check Uses

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 Uses

type CursorNotifyEvent struct {
    Sequence     uint16
    Subtype      byte
    Window       xproto.Window
    CursorSerial uint32
    Timestamp    xproto.Timestamp
    Name         xproto.Atom
}

func (CursorNotifyEvent) Bytes Uses

func (v CursorNotifyEvent) Bytes() []byte

Bytes writes a CursorNotifyEvent value to a byte slice.

func (CursorNotifyEvent) SequenceId Uses

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 Uses

func (v CursorNotifyEvent) String() string

String is a rudimentary string representation of CursorNotifyEvent.

type DeletePointerBarrierCookie Uses

type DeletePointerBarrierCookie struct {
    *xgb.Cookie
}

DeletePointerBarrierCookie is a cookie used only for DeletePointerBarrier requests.

func DeletePointerBarrier Uses

func DeletePointerBarrier(c *xgb.Conn, Barrier Barrier) DeletePointerBarrierCookie

DeletePointerBarrier sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DeletePointerBarrierChecked Uses

func DeletePointerBarrierChecked(c *xgb.Conn, Barrier Barrier) DeletePointerBarrierCookie

DeletePointerBarrierChecked sends a checked request. If an error occurs, it can be retrieved using DeletePointerBarrierCookie.Check()

func (DeletePointerBarrierCookie) Check Uses

func (cook DeletePointerBarrierCookie) 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 DestroyRegionCookie Uses

type DestroyRegionCookie struct {
    *xgb.Cookie
}

DestroyRegionCookie is a cookie used only for DestroyRegion requests.

func DestroyRegion Uses

func DestroyRegion(c *xgb.Conn, Region Region) DestroyRegionCookie

DestroyRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DestroyRegionChecked Uses

func DestroyRegionChecked(c *xgb.Conn, Region Region) DestroyRegionCookie

DestroyRegionChecked sends a checked request. If an error occurs, it can be retrieved using DestroyRegionCookie.Check()

func (DestroyRegionCookie) Check Uses

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 Uses

type ExpandRegionCookie struct {
    *xgb.Cookie
}

ExpandRegionCookie is a cookie used only for ExpandRegion requests.

func ExpandRegion Uses

func ExpandRegion(c *xgb.Conn, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) ExpandRegionCookie

ExpandRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ExpandRegionChecked Uses

func ExpandRegionChecked(c *xgb.Conn, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) ExpandRegionCookie

ExpandRegionChecked sends a checked request. If an error occurs, it can be retrieved using ExpandRegionCookie.Check()

func (ExpandRegionCookie) Check Uses

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 Uses

type FetchRegionCookie struct {
    *xgb.Cookie
}

FetchRegionCookie is a cookie used only for FetchRegion requests.

func FetchRegion Uses

func FetchRegion(c *xgb.Conn, Region Region) FetchRegionCookie

FetchRegion sends a checked request. If an error occurs, it will be returned with the reply by calling FetchRegionCookie.Reply()

func FetchRegionUnchecked Uses

func FetchRegionUnchecked(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 (FetchRegionCookie) Reply Uses

func (cook FetchRegionCookie) Reply() (*FetchRegionReply, error)

Reply blocks and returns the reply data for a FetchRegion request.

type FetchRegionReply Uses

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 Uses

type GetCursorImageAndNameCookie struct {
    *xgb.Cookie
}

GetCursorImageAndNameCookie is a cookie used only for GetCursorImageAndName requests.

func GetCursorImageAndName Uses

func GetCursorImageAndName(c *xgb.Conn) GetCursorImageAndNameCookie

GetCursorImageAndName sends a checked request. If an error occurs, it will be returned with the reply by calling GetCursorImageAndNameCookie.Reply()

func GetCursorImageAndNameUnchecked Uses

func GetCursorImageAndNameUnchecked(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 (GetCursorImageAndNameCookie) Reply Uses

func (cook GetCursorImageAndNameCookie) Reply() (*GetCursorImageAndNameReply, error)

Reply blocks and returns the reply data for a GetCursorImageAndName request.

type GetCursorImageAndNameReply Uses

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))
    // alignment gap to multiple of 4
    CursorImage []uint32 // size: xgb.Pad(((int(Width) * int(Height)) * 4))
}

GetCursorImageAndNameReply represents the data returned from a GetCursorImageAndName request.

type GetCursorImageCookie Uses

type GetCursorImageCookie struct {
    *xgb.Cookie
}

GetCursorImageCookie is a cookie used only for GetCursorImage requests.

func GetCursorImage Uses

func GetCursorImage(c *xgb.Conn) GetCursorImageCookie

GetCursorImage sends a checked request. If an error occurs, it will be returned with the reply by calling GetCursorImageCookie.Reply()

func GetCursorImageUnchecked Uses

func GetCursorImageUnchecked(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 (GetCursorImageCookie) Reply Uses

func (cook GetCursorImageCookie) Reply() (*GetCursorImageReply, error)

Reply blocks and returns the reply data for a GetCursorImage request.

type GetCursorImageReply Uses

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 Uses

type GetCursorNameCookie struct {
    *xgb.Cookie
}

GetCursorNameCookie is a cookie used only for GetCursorName requests.

func GetCursorName Uses

func GetCursorName(c *xgb.Conn, Cursor xproto.Cursor) GetCursorNameCookie

GetCursorName sends a checked request. If an error occurs, it will be returned with the reply by calling GetCursorNameCookie.Reply()

func GetCursorNameUnchecked Uses

func GetCursorNameUnchecked(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 (GetCursorNameCookie) Reply Uses

func (cook GetCursorNameCookie) Reply() (*GetCursorNameReply, error)

Reply blocks and returns the reply data for a GetCursorName request.

type GetCursorNameReply Uses

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 Uses

type HideCursorCookie struct {
    *xgb.Cookie
}

HideCursorCookie is a cookie used only for HideCursor requests.

func HideCursor Uses

func HideCursor(c *xgb.Conn, Window xproto.Window) HideCursorCookie

HideCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func HideCursorChecked Uses

func HideCursorChecked(c *xgb.Conn, Window xproto.Window) HideCursorCookie

HideCursorChecked sends a checked request. If an error occurs, it can be retrieved using HideCursorCookie.Check()

func (HideCursorCookie) Check Uses

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 Uses

type IntersectRegionCookie struct {
    *xgb.Cookie
}

IntersectRegionCookie is a cookie used only for IntersectRegion requests.

func IntersectRegion Uses

func IntersectRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) IntersectRegionCookie

IntersectRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func IntersectRegionChecked Uses

func IntersectRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) IntersectRegionCookie

IntersectRegionChecked sends a checked request. If an error occurs, it can be retrieved using IntersectRegionCookie.Check()

func (IntersectRegionCookie) Check Uses

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 Uses

type InvertRegionCookie struct {
    *xgb.Cookie
}

InvertRegionCookie is a cookie used only for InvertRegion requests.

func InvertRegion Uses

func InvertRegion(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, Destination Region) InvertRegionCookie

InvertRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func InvertRegionChecked Uses

func InvertRegionChecked(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, Destination Region) InvertRegionCookie

InvertRegionChecked sends a checked request. If an error occurs, it can be retrieved using InvertRegionCookie.Check()

func (InvertRegionCookie) Check Uses

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 Uses

type QueryVersionCookie struct {
    *xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion Uses

func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie

QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()

func QueryVersionUnchecked Uses

func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie

QueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryVersionCookie) Reply Uses

func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)

Reply blocks and returns the reply data for a QueryVersion request.

type QueryVersionReply Uses

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 Region Uses

type Region uint32

func NewRegionId Uses

func NewRegionId(c *xgb.Conn) (Region, error)

type RegionExtentsCookie Uses

type RegionExtentsCookie struct {
    *xgb.Cookie
}

RegionExtentsCookie is a cookie used only for RegionExtents requests.

func RegionExtents Uses

func RegionExtents(c *xgb.Conn, Source Region, Destination Region) RegionExtentsCookie

RegionExtents sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func RegionExtentsChecked Uses

func RegionExtentsChecked(c *xgb.Conn, Source Region, Destination Region) RegionExtentsCookie

RegionExtentsChecked sends a checked request. If an error occurs, it can be retrieved using RegionExtentsCookie.Check()

func (RegionExtentsCookie) Check Uses

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 Uses

type SelectCursorInputCookie struct {
    *xgb.Cookie
}

SelectCursorInputCookie is a cookie used only for SelectCursorInput requests.

func SelectCursorInput Uses

func SelectCursorInput(c *xgb.Conn, Window xproto.Window, EventMask uint32) SelectCursorInputCookie

SelectCursorInput sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SelectCursorInputChecked Uses

func SelectCursorInputChecked(c *xgb.Conn, Window xproto.Window, EventMask uint32) SelectCursorInputCookie

SelectCursorInputChecked sends a checked request. If an error occurs, it can be retrieved using SelectCursorInputCookie.Check()

func (SelectCursorInputCookie) Check Uses

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 Uses

type SelectSelectionInputCookie struct {
    *xgb.Cookie
}

SelectSelectionInputCookie is a cookie used only for SelectSelectionInput requests.

func SelectSelectionInput Uses

func SelectSelectionInput(c *xgb.Conn, Window xproto.Window, Selection xproto.Atom, EventMask uint32) SelectSelectionInputCookie

SelectSelectionInput sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SelectSelectionInputChecked Uses

func SelectSelectionInputChecked(c *xgb.Conn, Window xproto.Window, Selection xproto.Atom, EventMask uint32) SelectSelectionInputCookie

SelectSelectionInputChecked sends a checked request. If an error occurs, it can be retrieved using SelectSelectionInputCookie.Check()

func (SelectSelectionInputCookie) Check Uses

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 Uses

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 Uses

func (v SelectionNotifyEvent) Bytes() []byte

Bytes writes a SelectionNotifyEvent value to a byte slice.

func (SelectionNotifyEvent) SequenceId Uses

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 Uses

func (v SelectionNotifyEvent) String() string

String is a rudimentary string representation of SelectionNotifyEvent.

type SetCursorNameCookie Uses

type SetCursorNameCookie struct {
    *xgb.Cookie
}

SetCursorNameCookie is a cookie used only for SetCursorName requests.

func SetCursorName Uses

func SetCursorName(c *xgb.Conn, Cursor xproto.Cursor, Nbytes uint16, Name string) SetCursorNameCookie

SetCursorName sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetCursorNameChecked Uses

func SetCursorNameChecked(c *xgb.Conn, Cursor xproto.Cursor, Nbytes uint16, Name string) SetCursorNameCookie

SetCursorNameChecked sends a checked request. If an error occurs, it can be retrieved using SetCursorNameCookie.Check()

func (SetCursorNameCookie) Check Uses

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 Uses

type SetGCClipRegionCookie struct {
    *xgb.Cookie
}

SetGCClipRegionCookie is a cookie used only for SetGCClipRegion requests.

func SetGCClipRegion Uses

func SetGCClipRegion(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) SetGCClipRegionCookie

SetGCClipRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetGCClipRegionChecked Uses

func SetGCClipRegionChecked(c *xgb.Conn, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) SetGCClipRegionCookie

SetGCClipRegionChecked sends a checked request. If an error occurs, it can be retrieved using SetGCClipRegionCookie.Check()

func (SetGCClipRegionCookie) Check Uses

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 Uses

type SetPictureClipRegionCookie struct {
    *xgb.Cookie
}

SetPictureClipRegionCookie is a cookie used only for SetPictureClipRegion requests.

func SetPictureClipRegion Uses

func SetPictureClipRegion(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) SetPictureClipRegionCookie

SetPictureClipRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetPictureClipRegionChecked Uses

func SetPictureClipRegionChecked(c *xgb.Conn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) SetPictureClipRegionCookie

SetPictureClipRegionChecked sends a checked request. If an error occurs, it can be retrieved using SetPictureClipRegionCookie.Check()

func (SetPictureClipRegionCookie) Check Uses

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 Uses

type SetRegionCookie struct {
    *xgb.Cookie
}

SetRegionCookie is a cookie used only for SetRegion requests.

func SetRegion Uses

func SetRegion(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) SetRegionCookie

SetRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetRegionChecked Uses

func SetRegionChecked(c *xgb.Conn, Region Region, Rectangles []xproto.Rectangle) SetRegionCookie

SetRegionChecked sends a checked request. If an error occurs, it can be retrieved using SetRegionCookie.Check()

func (SetRegionCookie) Check Uses

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 Uses

type SetWindowShapeRegionCookie struct {
    *xgb.Cookie
}

SetWindowShapeRegionCookie is a cookie used only for SetWindowShapeRegion requests.

func SetWindowShapeRegion Uses

func SetWindowShapeRegion(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) SetWindowShapeRegionCookie

SetWindowShapeRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetWindowShapeRegionChecked Uses

func SetWindowShapeRegionChecked(c *xgb.Conn, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) SetWindowShapeRegionCookie

SetWindowShapeRegionChecked sends a checked request. If an error occurs, it can be retrieved using SetWindowShapeRegionCookie.Check()

func (SetWindowShapeRegionCookie) Check Uses

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 Uses

type ShowCursorCookie struct {
    *xgb.Cookie
}

ShowCursorCookie is a cookie used only for ShowCursor requests.

func ShowCursor Uses

func ShowCursor(c *xgb.Conn, Window xproto.Window) ShowCursorCookie

ShowCursor sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ShowCursorChecked Uses

func ShowCursorChecked(c *xgb.Conn, Window xproto.Window) ShowCursorCookie

ShowCursorChecked sends a checked request. If an error occurs, it can be retrieved using ShowCursorCookie.Check()

func (ShowCursorCookie) Check Uses

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 Uses

type SubtractRegionCookie struct {
    *xgb.Cookie
}

SubtractRegionCookie is a cookie used only for SubtractRegion requests.

func SubtractRegion Uses

func SubtractRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) SubtractRegionCookie

SubtractRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SubtractRegionChecked Uses

func SubtractRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) SubtractRegionCookie

SubtractRegionChecked sends a checked request. If an error occurs, it can be retrieved using SubtractRegionCookie.Check()

func (SubtractRegionCookie) Check Uses

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 Uses

type TranslateRegionCookie struct {
    *xgb.Cookie
}

TranslateRegionCookie is a cookie used only for TranslateRegion requests.

func TranslateRegion Uses

func TranslateRegion(c *xgb.Conn, Region Region, Dx int16, Dy int16) TranslateRegionCookie

TranslateRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func TranslateRegionChecked Uses

func TranslateRegionChecked(c *xgb.Conn, Region Region, Dx int16, Dy int16) TranslateRegionCookie

TranslateRegionChecked sends a checked request. If an error occurs, it can be retrieved using TranslateRegionCookie.Check()

func (TranslateRegionCookie) Check Uses

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 Uses

type UnionRegionCookie struct {
    *xgb.Cookie
}

UnionRegionCookie is a cookie used only for UnionRegion requests.

func UnionRegion Uses

func UnionRegion(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) UnionRegionCookie

UnionRegion sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func UnionRegionChecked Uses

func UnionRegionChecked(c *xgb.Conn, Source1 Region, Source2 Region, Destination Region) UnionRegionCookie

UnionRegionChecked sends a checked request. If an error occurs, it can be retrieved using UnionRegionCookie.Check()

func (UnionRegionCookie) Check Uses

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.

Package xfixes imports 4 packages (graph) and is imported by 10 packages. Updated 2016-11-06. Refresh now. Tools for package owners.