shape

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: 6 Imported by: 1

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "shape.xml"

Index

Constants

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

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "SHAPE"
)
View Source
const (
	SkBounding = 0
	SkClip     = 1
	SkInput    = 2
)
View Source
const (
	SoSet       = 0
	SoUnion     = 1
	SoIntersect = 2
	SoSubtract  = 3
	SoInvert    = 4
)
View Source
const Notify = 0

Notify is the event number for a NotifyEvent.

Variables

This section is empty.

Functions

func Combine

func Combine(c *xgb.XConn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) error

Combine sends a checked request.

func CombineUnchecked added in v1.1.0

func CombineUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) error

CombineUnchecked sends an unchecked request.

func GetRectanglesUnchecked

func GetRectanglesUnchecked(c *xgb.XConn, Window xproto.Window, SourceKind Kind) error

GetRectanglesUnchecked sends an unchecked request.

func InputSelectedUnchecked

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

InputSelectedUnchecked sends an unchecked request.

func Mask

func Mask(c *xgb.XConn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) error

Mask sends a checked request.

func MaskUnchecked added in v1.1.0

func MaskUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) error

MaskUnchecked sends an unchecked request.

func Offset

func Offset(c *xgb.XConn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) error

Offset sends a checked request.

func OffsetUnchecked added in v1.1.0

func OffsetUnchecked(c *xgb.XConn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) error

OffsetUnchecked sends an unchecked request.

func QueryExtentsUnchecked

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

QueryExtentsUnchecked sends an unchecked request.

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.XConn) error

QueryVersionUnchecked sends an unchecked request.

func Rectangles

func Rectangles(c *xgb.XConn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) error

Rectangles sends a checked request.

func RectanglesUnchecked added in v1.1.0

func RectanglesUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) error

RectanglesUnchecked sends an unchecked request.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

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

func SelectInput

func SelectInput(c *xgb.XConn, DestinationWindow xproto.Window, Enable bool) error

SelectInput sends a checked request.

func SelectInputUnchecked added in v1.1.0

func SelectInputUnchecked(c *xgb.XConn, DestinationWindow xproto.Window, Enable bool) error

SelectInputUnchecked sends an unchecked request.

func UnmarshalNotifyEvent added in v1.1.0

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

UnmarshalNotifyEvent constructs a NotifyEvent value that implements xgb.Event from a byte slice.

Types

type GetRectanglesReply

type GetRectanglesReply struct {
	Sequence      uint16 // sequence number of the request for this reply
	Length        uint32 // number of bytes in this reply
	Ordering      byte
	RectanglesLen uint32
	// padding: 20 bytes
	Rectangles []xproto.Rectangle // size: internal.Pad4((int(RectanglesLen) * 8))
}

GetRectanglesReply represents the data returned from a GetRectangles request.

func GetRectangles

func GetRectangles(c *xgb.XConn, Window xproto.Window, SourceKind Kind) (GetRectanglesReply, error)

GetRectangles sends a checked request.

func (*GetRectanglesReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a GetRectanglesReply value.

type InputSelectedReply

type InputSelectedReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	Enabled  bool
}

InputSelectedReply represents the data returned from a InputSelected request.

func InputSelected

func InputSelected(c *xgb.XConn, DestinationWindow xproto.Window) (InputSelectedReply, error)

InputSelected sends a checked request.

func (*InputSelectedReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a InputSelectedReply value.

type Kind

type Kind byte

type NotifyEvent

type NotifyEvent struct {
	Sequence       uint16
	ShapeKind      Kind
	AffectedWindow xproto.Window
	ExtentsX       int16
	ExtentsY       int16
	ExtentsWidth   uint16
	ExtentsHeight  uint16
	ServerTime     xproto.Timestamp
	Shaped         bool
}

func (*NotifyEvent) Bytes

func (v *NotifyEvent) Bytes() []byte

Bytes writes a NotifyEvent value to a byte slice.

func (*NotifyEvent) SeqID added in v1.1.0

func (v *NotifyEvent) SeqID() uint16

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

type Op

type Op byte

type QueryExtentsReply

type QueryExtentsReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	BoundingShaped bool
	ClipShaped     bool
	// padding: 2 bytes
	BoundingShapeExtentsX      int16
	BoundingShapeExtentsY      int16
	BoundingShapeExtentsWidth  uint16
	BoundingShapeExtentsHeight uint16
	ClipShapeExtentsX          int16
	ClipShapeExtentsY          int16
	ClipShapeExtentsWidth      uint16
	ClipShapeExtentsHeight     uint16
}

QueryExtentsReply represents the data returned from a QueryExtents request.

func QueryExtents

func QueryExtents(c *xgb.XConn, DestinationWindow xproto.Window) (QueryExtentsReply, error)

QueryExtents sends a checked request.

func (*QueryExtentsReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a QueryExtentsReply 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 uint16
	MinorVersion uint16
}

QueryVersionReply represents the data returned from a QueryVersion request.

func QueryVersion

func QueryVersion(c *xgb.XConn) (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.

Jump to

Keyboard shortcuts

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