xfixes

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause, GooglePatentClause Imports: 10 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "xfixes.xml"

Index

Constants

View Source
const (
	// ExtName is the user-friendly name string of this X extension.
	ExtName = "XFixes"

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "XFIXES"
)
View Source
const (
	BarrierDirectionsPositiveX = 1
	BarrierDirectionsPositiveY = 2
	BarrierDirectionsNegativeX = 4
	BarrierDirectionsNegativeY = 8
)
View Source
const (
	ClientDisconnectFlagsDefault   = 0
	ClientDisconnectFlagsTerminate = 1
)
View Source
const (
	SaveSetMappingMap   = 0
	SaveSetMappingUnmap = 1
)
View Source
const (
	SaveSetModeInsert = 0
	SaveSetModeDelete = 1
)
View Source
const (
	SaveSetTargetNearest = 0
	SaveSetTargetRoot    = 1
)
View Source
const (
	SelectionEventSetSelectionOwner      = 0
	SelectionEventSelectionWindowDestroy = 1
	SelectionEventSelectionClientClose   = 2
)
View Source
const (
	SelectionEventMaskSetSelectionOwner      = 1
	SelectionEventMaskSelectionWindowDestroy = 2
	SelectionEventMaskSelectionClientClose   = 4
)
View Source
const BadBadRegion = 0

BadBadRegion is the error number for a BadBadRegion.

View Source
const CursorNotify = 1

CursorNotify is the event number for a CursorNotifyEvent.

View Source
const (
	CursorNotifyDisplayCursor = 0
)
View Source
const (
	CursorNotifyMaskDisplayCursor = 1
)
View Source
const (
	RegionNone = 0
)
View Source
const SelectionNotify = 0

SelectionNotify is the event number for a SelectionNotifyEvent.

Variables

This section is empty.

Functions

func ChangeCursor

func ChangeCursor(c *xgb.XConn, Source xproto.Cursor, Destination xproto.Cursor) error

ChangeCursor sends a checked request.

func ChangeCursorByName

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

ChangeCursorByName sends a checked request.

func ChangeCursorByNameUnchecked added in v1.1.0

func ChangeCursorByNameUnchecked(c *xgb.XConn, Src xproto.Cursor, Nbytes uint16, Name string) error

ChangeCursorByNameUnchecked sends an unchecked request.

func ChangeCursorUnchecked added in v1.1.0

func ChangeCursorUnchecked(c *xgb.XConn, Source xproto.Cursor, Destination xproto.Cursor) error

ChangeCursorUnchecked sends an unchecked request.

func ChangeSaveSet

func ChangeSaveSet(c *xgb.XConn, Mode byte, Target byte, Map byte, Window xproto.Window) error

ChangeSaveSet sends a checked request.

func ChangeSaveSetUnchecked added in v1.1.0

func ChangeSaveSetUnchecked(c *xgb.XConn, Mode byte, Target byte, Map byte, Window xproto.Window) error

ChangeSaveSetUnchecked sends an unchecked request.

func CopyRegion

func CopyRegion(c *xgb.XConn, Source Region, Destination Region) error

CopyRegion sends a checked request.

func CopyRegionUnchecked added in v1.1.0

func CopyRegionUnchecked(c *xgb.XConn, Source Region, Destination Region) error

CopyRegionUnchecked sends an unchecked request.

func CreatePointerBarrier

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

CreatePointerBarrier sends a checked request.

func CreatePointerBarrierUnchecked added in v1.1.0

func CreatePointerBarrierUnchecked(c *xgb.XConn, Barrier Barrier, Window xproto.Window, X1 uint16, Y1 uint16, X2 uint16, Y2 uint16, Directions uint32, NumDevices uint16, Devices []uint16) error

CreatePointerBarrierUnchecked sends an unchecked request.

func CreateRegion

func CreateRegion(c *xgb.XConn, Region Region, Rectangles []xproto.Rectangle) error

CreateRegion sends a checked request.

func CreateRegionFromBitmap

func CreateRegionFromBitmap(c *xgb.XConn, Region Region, Bitmap xproto.Pixmap) error

CreateRegionFromBitmap sends a checked request.

func CreateRegionFromBitmapUnchecked added in v1.1.0

func CreateRegionFromBitmapUnchecked(c *xgb.XConn, Region Region, Bitmap xproto.Pixmap) error

CreateRegionFromBitmapUnchecked sends an unchecked request.

func CreateRegionFromGC

func CreateRegionFromGC(c *xgb.XConn, Region Region, Gc xproto.Gcontext) error

CreateRegionFromGC sends a checked request.

func CreateRegionFromGCUnchecked added in v1.1.0

func CreateRegionFromGCUnchecked(c *xgb.XConn, Region Region, Gc xproto.Gcontext) error

CreateRegionFromGCUnchecked sends an unchecked request.

func CreateRegionFromPicture

func CreateRegionFromPicture(c *xgb.XConn, Region Region, Picture render.Picture) error

CreateRegionFromPicture sends a checked request.

func CreateRegionFromPictureUnchecked added in v1.1.0

func CreateRegionFromPictureUnchecked(c *xgb.XConn, Region Region, Picture render.Picture) error

CreateRegionFromPictureUnchecked sends an unchecked request.

func CreateRegionFromWindow

func CreateRegionFromWindow(c *xgb.XConn, Region Region, Window xproto.Window, Kind shape.Kind) error

CreateRegionFromWindow sends a checked request.

func CreateRegionFromWindowUnchecked added in v1.1.0

func CreateRegionFromWindowUnchecked(c *xgb.XConn, Region Region, Window xproto.Window, Kind shape.Kind) error

CreateRegionFromWindowUnchecked sends an unchecked request.

func CreateRegionUnchecked added in v1.1.0

func CreateRegionUnchecked(c *xgb.XConn, Region Region, Rectangles []xproto.Rectangle) error

CreateRegionUnchecked sends an unchecked request.

func DeletePointerBarrier

func DeletePointerBarrier(c *xgb.XConn, Barrier Barrier) error

DeletePointerBarrier sends a checked request.

func DeletePointerBarrierUnchecked added in v1.1.0

func DeletePointerBarrierUnchecked(c *xgb.XConn, Barrier Barrier) error

DeletePointerBarrierUnchecked sends an unchecked request.

func DestroyRegion

func DestroyRegion(c *xgb.XConn, Region Region) error

DestroyRegion sends a checked request.

func DestroyRegionUnchecked added in v1.1.0

func DestroyRegionUnchecked(c *xgb.XConn, Region Region) error

DestroyRegionUnchecked sends an unchecked request.

func ExpandRegion

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

ExpandRegion sends a checked request.

func ExpandRegionUnchecked added in v1.1.0

func ExpandRegionUnchecked(c *xgb.XConn, Source Region, Destination Region, Left uint16, Right uint16, Top uint16, Bottom uint16) error

ExpandRegionUnchecked sends an unchecked request.

func FetchRegionUnchecked

func FetchRegionUnchecked(c *xgb.XConn, Region Region) error

FetchRegionUnchecked sends an unchecked request.

func GetClientDisconnectModeUnchecked added in v1.1.0

func GetClientDisconnectModeUnchecked(c *xgb.XConn) error

GetClientDisconnectModeUnchecked sends an unchecked request.

func GetCursorImageAndNameUnchecked

func GetCursorImageAndNameUnchecked(c *xgb.XConn) error

GetCursorImageAndNameUnchecked sends an unchecked request.

func GetCursorImageUnchecked

func GetCursorImageUnchecked(c *xgb.XConn) error

GetCursorImageUnchecked sends an unchecked request.

func GetCursorNameUnchecked

func GetCursorNameUnchecked(c *xgb.XConn, Cursor xproto.Cursor) error

GetCursorNameUnchecked sends an unchecked request.

func HideCursor

func HideCursor(c *xgb.XConn, Window xproto.Window) error

HideCursor sends a checked request.

func HideCursorUnchecked added in v1.1.0

func HideCursorUnchecked(c *xgb.XConn, Window xproto.Window) error

HideCursorUnchecked sends an unchecked request.

func IntersectRegion

func IntersectRegion(c *xgb.XConn, Source1 Region, Source2 Region, Destination Region) error

IntersectRegion sends a checked request.

func IntersectRegionUnchecked added in v1.1.0

func IntersectRegionUnchecked(c *xgb.XConn, Source1 Region, Source2 Region, Destination Region) error

IntersectRegionUnchecked sends an unchecked request.

func InvertRegion

func InvertRegion(c *xgb.XConn, Source Region, Bounds xproto.Rectangle, Destination Region) error

InvertRegion sends a checked request.

func InvertRegionUnchecked added in v1.1.0

func InvertRegionUnchecked(c *xgb.XConn, Source Region, Bounds xproto.Rectangle, Destination Region) error

InvertRegionUnchecked sends an unchecked request.

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.XConn, ClientMajorVersion uint32, ClientMinorVersion uint32) error

QueryVersionUnchecked sends an unchecked request.

func RegionExtents

func RegionExtents(c *xgb.XConn, Source Region, Destination Region) error

RegionExtents sends a checked request.

func RegionExtentsUnchecked added in v1.1.0

func RegionExtentsUnchecked(c *xgb.XConn, Source Region, Destination Region) error

RegionExtentsUnchecked sends an unchecked request.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

Register will query the X server for XFixes extension support, and register relevant extension unmarshalers with the XConn.

func SelectCursorInput

func SelectCursorInput(c *xgb.XConn, Window xproto.Window, EventMask uint32) error

SelectCursorInput sends a checked request.

func SelectCursorInputUnchecked added in v1.1.0

func SelectCursorInputUnchecked(c *xgb.XConn, Window xproto.Window, EventMask uint32) error

SelectCursorInputUnchecked sends an unchecked request.

func SelectSelectionInput

func SelectSelectionInput(c *xgb.XConn, Window xproto.Window, Selection xproto.Atom, EventMask uint32) error

SelectSelectionInput sends a checked request.

func SelectSelectionInputUnchecked added in v1.1.0

func SelectSelectionInputUnchecked(c *xgb.XConn, Window xproto.Window, Selection xproto.Atom, EventMask uint32) error

SelectSelectionInputUnchecked sends an unchecked request.

func SetClientDisconnectMode added in v1.1.0

func SetClientDisconnectMode(c *xgb.XConn, DisconnectMode uint32) error

SetClientDisconnectMode sends a checked request.

func SetClientDisconnectModeUnchecked added in v1.1.0

func SetClientDisconnectModeUnchecked(c *xgb.XConn, DisconnectMode uint32) error

SetClientDisconnectModeUnchecked sends an unchecked request.

func SetCursorName

func SetCursorName(c *xgb.XConn, Cursor xproto.Cursor, Nbytes uint16, Name string) error

SetCursorName sends a checked request.

func SetCursorNameUnchecked added in v1.1.0

func SetCursorNameUnchecked(c *xgb.XConn, Cursor xproto.Cursor, Nbytes uint16, Name string) error

SetCursorNameUnchecked sends an unchecked request.

func SetGCClipRegion

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

SetGCClipRegion sends a checked request.

func SetGCClipRegionUnchecked added in v1.1.0

func SetGCClipRegionUnchecked(c *xgb.XConn, Gc xproto.Gcontext, Region Region, XOrigin int16, YOrigin int16) error

SetGCClipRegionUnchecked sends an unchecked request.

func SetPictureClipRegion

func SetPictureClipRegion(c *xgb.XConn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) error

SetPictureClipRegion sends a checked request.

func SetPictureClipRegionUnchecked added in v1.1.0

func SetPictureClipRegionUnchecked(c *xgb.XConn, Picture render.Picture, Region Region, XOrigin int16, YOrigin int16) error

SetPictureClipRegionUnchecked sends an unchecked request.

func SetRegion

func SetRegion(c *xgb.XConn, Region Region, Rectangles []xproto.Rectangle) error

SetRegion sends a checked request.

func SetRegionUnchecked added in v1.1.0

func SetRegionUnchecked(c *xgb.XConn, Region Region, Rectangles []xproto.Rectangle) error

SetRegionUnchecked sends an unchecked request.

func SetWindowShapeRegion

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

SetWindowShapeRegion sends a checked request.

func SetWindowShapeRegionUnchecked added in v1.1.0

func SetWindowShapeRegionUnchecked(c *xgb.XConn, Dest xproto.Window, DestKind shape.Kind, XOffset int16, YOffset int16, Region Region) error

SetWindowShapeRegionUnchecked sends an unchecked request.

func ShowCursor

func ShowCursor(c *xgb.XConn, Window xproto.Window) error

ShowCursor sends a checked request.

func ShowCursorUnchecked added in v1.1.0

func ShowCursorUnchecked(c *xgb.XConn, Window xproto.Window) error

ShowCursorUnchecked sends an unchecked request.

func SubtractRegion

func SubtractRegion(c *xgb.XConn, Source1 Region, Source2 Region, Destination Region) error

SubtractRegion sends a checked request.

func SubtractRegionUnchecked added in v1.1.0

func SubtractRegionUnchecked(c *xgb.XConn, Source1 Region, Source2 Region, Destination Region) error

SubtractRegionUnchecked sends an unchecked request.

func TranslateRegion

func TranslateRegion(c *xgb.XConn, Region Region, Dx int16, Dy int16) error

TranslateRegion sends a checked request.

func TranslateRegionUnchecked added in v1.1.0

func TranslateRegionUnchecked(c *xgb.XConn, Region Region, Dx int16, Dy int16) error

TranslateRegionUnchecked sends an unchecked request.

func UnionRegion

func UnionRegion(c *xgb.XConn, Source1 Region, Source2 Region, Destination Region) error

UnionRegion sends a checked request.

func UnionRegionUnchecked added in v1.1.0

func UnionRegionUnchecked(c *xgb.XConn, Source1 Region, Source2 Region, Destination Region) error

UnionRegionUnchecked sends an unchecked request.

func UnmarshalBadRegionError added in v1.1.0

func UnmarshalBadRegionError(buf []byte) (xgb.XError, error)

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

func UnmarshalCursorNotifyEvent added in v1.1.0

func UnmarshalCursorNotifyEvent(buf []byte) (xgb.XEvent, error)

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

func UnmarshalSelectionNotifyEvent added in v1.1.0

func UnmarshalSelectionNotifyEvent(buf []byte) (xgb.XEvent, error)

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

Types

type BadRegionError

type BadRegionError struct {
	Sequence uint16
	NiceName string
}

func (*BadRegionError) BadID added in v1.1.0

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

Error returns a rudimentary string representation of the BadBadRegion error.

func (*BadRegionError) SeqID added in v1.1.0

func (err *BadRegionError) SeqID() uint16

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

type Barrier

type Barrier uint32

func NewBarrierID added in v1.1.0

func NewBarrierID(c *xgb.XConn) Barrier

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) SeqID added in v1.1.0

func (v *CursorNotifyEvent) SeqID() uint16

SeqID returns the sequence id attached to the CursorNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

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: internal.Pad4(((int(Length) / 2) * 8))
}

FetchRegionReply represents the data returned from a FetchRegion request.

func FetchRegion

func FetchRegion(c *xgb.XConn, Region Region) (FetchRegionReply, error)

FetchRegion sends a checked request.

func (*FetchRegionReply) Unmarshal added in v1.1.0

func (v *FetchRegionReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a FetchRegionReply value.

type GetClientDisconnectModeReply added in v1.1.0

type GetClientDisconnectModeReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	DisconnectMode uint32
}

GetClientDisconnectModeReply represents the data returned from a GetClientDisconnectMode request.

func GetClientDisconnectMode added in v1.1.0

func GetClientDisconnectMode(c *xgb.XConn) (GetClientDisconnectModeReply, error)

GetClientDisconnectMode sends a checked request.

func (*GetClientDisconnectModeReply) Unmarshal added in v1.1.0

func (v *GetClientDisconnectModeReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetClientDisconnectModeReply value.

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
	CursorImage []uint32 // size: internal.Pad4(((int(Width) * int(Height)) * 4))
	Name        string   // size: internal.Pad4((int(Nbytes) * 1))
}

GetCursorImageAndNameReply represents the data returned from a GetCursorImageAndName request.

func GetCursorImageAndName

func GetCursorImageAndName(c *xgb.XConn) (GetCursorImageAndNameReply, error)

GetCursorImageAndName sends a checked request.

func (*GetCursorImageAndNameReply) Unmarshal added in v1.1.0

func (v *GetCursorImageAndNameReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetCursorImageAndNameReply value.

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: internal.Pad4(((int(Width) * int(Height)) * 4))
}

GetCursorImageReply represents the data returned from a GetCursorImage request.

func GetCursorImage

func GetCursorImage(c *xgb.XConn) (GetCursorImageReply, error)

GetCursorImage sends a checked request.

func (*GetCursorImageReply) Unmarshal added in v1.1.0

func (v *GetCursorImageReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetCursorImageReply value.

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: internal.Pad4((int(Nbytes) * 1))
}

GetCursorNameReply represents the data returned from a GetCursorName request.

func GetCursorName

func GetCursorName(c *xgb.XConn, Cursor xproto.Cursor) (GetCursorNameReply, error)

GetCursorName sends a checked request.

func (*GetCursorNameReply) Unmarshal added in v1.1.0

func (v *GetCursorNameReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetCursorNameReply value.

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.

func QueryVersion

func QueryVersion(c *xgb.XConn, ClientMajorVersion uint32, ClientMinorVersion uint32) (QueryVersionReply, error)

QueryVersion sends a checked request.

func (*QueryVersionReply) Unmarshal added in v1.1.0

func (v *QueryVersionReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a QueryVersionReply value.

type Region

type Region uint32

func NewRegionID added in v1.1.0

func NewRegionID(c *xgb.XConn) Region

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) SeqID added in v1.1.0

func (v *SelectionNotifyEvent) SeqID() uint16

SeqID returns the sequence id attached to the SelectionNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL