shape

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by xtgen; DO NOT EDIT.

Code generated by xtgen; DO NOT EDIT.

Code generated by xtgen; DO NOT EDIT.

Code generated by xtgen; DO NOT EDIT.

Index

Constants

View Source
const KindNotify = xturbo.EventKind(xturbo.ExtShape) << 8

KindNotify identifies Notify events in xturbo.Event.Kind.

Variables

This section is empty.

Functions

func Combine

func Combine(b *xturbo.Buf, operation So, destinationKind Sk, sourceKind Sk, destinationWindow xproto.Window, xOffset int16, yOffset int16, sourceWindow xproto.Window) xturbo.Seq

func GetRectangles

func GetRectangles(b *xturbo.Buf, window xproto.Window, sourceKind Sk) xturbo.Seq

func InputSelected

func InputSelected(b *xturbo.Buf, destinationWindow xproto.Window) xturbo.Seq

func Mask

func Mask(b *xturbo.Buf, operation So, destinationKind Sk, destinationWindow xproto.Window, xOffset int16, yOffset int16, sourceBitmap xproto.Pixmap) xturbo.Seq

func Offset

func Offset(b *xturbo.Buf, destinationKind Sk, destinationWindow xproto.Window, xOffset int16, yOffset int16) xturbo.Seq

func QueryExtents

func QueryExtents(b *xturbo.Buf, destinationWindow xproto.Window) xturbo.Seq

func QueryVersion

func QueryVersion(b *xturbo.Buf) xturbo.Seq

func Rectangles

func Rectangles(b *xturbo.Buf, operation So, destinationKind Sk, ordering xproto.ClipOrdering, destinationWindow xproto.Window, xOffset int16, yOffset int16, rectangles []xproto.Rectangle) xturbo.Seq

func SelectInput

func SelectInput(b *xturbo.Buf, destinationWindow xproto.Window, enable bool) xturbo.Seq

Types

type GetRectanglesReply

type GetRectanglesReply struct {
	// contains filtered or unexported fields
}

GetRectanglesReply is a zero-copy view over a GetRectangles reply; offsets count from reply byte 0. It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep.

func ParseGetRectanglesReply

func ParseGetRectanglesReply(raw []byte) (GetRectanglesReply, bool)

ParseGetRectanglesReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check.

func (GetRectanglesReply) Ordering

func (r GetRectanglesReply) Ordering() xproto.ClipOrdering

func (GetRectanglesReply) Raw

func (r GetRectanglesReply) Raw() []byte

func (GetRectanglesReply) Rectangles

func (r GetRectanglesReply) Rectangles() RectangleList

func (GetRectanglesReply) RectanglesLen

func (r GetRectanglesReply) RectanglesLen() uint32

type InputSelectedReply

type InputSelectedReply struct {
	// contains filtered or unexported fields
}

InputSelectedReply is a zero-copy view over a InputSelected reply; offsets count from reply byte 0. It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep.

func ParseInputSelectedReply

func ParseInputSelectedReply(raw []byte) (InputSelectedReply, bool)

ParseInputSelectedReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check.

func (InputSelectedReply) Enabled

func (r InputSelectedReply) Enabled() bool

func (InputSelectedReply) Raw

func (r InputSelectedReply) Raw() []byte

type Kind

type Kind uint8

type NotifyEvent

type NotifyEvent struct {
	// contains filtered or unexported fields
}

NotifyEvent is a view over a Notify event's 32 bytes. Getters read the copied Event.Raw, so a view stays valid as long as the Event value it was taken from.

func NotifyOf

func NotifyOf(ev *xturbo.Event) NotifyEvent

NotifyOf views ev as Notify without checking ev.Kind: a wrong kind yields garbage, never a panic.

func (NotifyEvent) AffectedWindow

func (e NotifyEvent) AffectedWindow() xproto.Window

func (NotifyEvent) ExtentsHeight

func (e NotifyEvent) ExtentsHeight() uint16

func (NotifyEvent) ExtentsWidth

func (e NotifyEvent) ExtentsWidth() uint16

func (NotifyEvent) ExtentsX

func (e NotifyEvent) ExtentsX() int16

func (NotifyEvent) ExtentsY

func (e NotifyEvent) ExtentsY() int16

func (NotifyEvent) Raw

func (e NotifyEvent) Raw() *[32]byte

func (NotifyEvent) ServerTime

func (e NotifyEvent) ServerTime() xproto.Timestamp

func (NotifyEvent) ShapeKind

func (e NotifyEvent) ShapeKind() Sk

func (NotifyEvent) Shaped

func (e NotifyEvent) Shaped() bool

type Op

type Op uint8

type QueryExtentsReply

type QueryExtentsReply struct {
	// contains filtered or unexported fields
}

QueryExtentsReply is a zero-copy view over a QueryExtents reply; offsets count from reply byte 0. It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep.

func ParseQueryExtentsReply

func ParseQueryExtentsReply(raw []byte) (QueryExtentsReply, bool)

ParseQueryExtentsReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check.

func (QueryExtentsReply) BoundingShapeExtentsHeight

func (r QueryExtentsReply) BoundingShapeExtentsHeight() uint16

func (QueryExtentsReply) BoundingShapeExtentsWidth

func (r QueryExtentsReply) BoundingShapeExtentsWidth() uint16

func (QueryExtentsReply) BoundingShapeExtentsX

func (r QueryExtentsReply) BoundingShapeExtentsX() int16

func (QueryExtentsReply) BoundingShapeExtentsY

func (r QueryExtentsReply) BoundingShapeExtentsY() int16

func (QueryExtentsReply) BoundingShaped

func (r QueryExtentsReply) BoundingShaped() bool

func (QueryExtentsReply) ClipShapeExtentsHeight

func (r QueryExtentsReply) ClipShapeExtentsHeight() uint16

func (QueryExtentsReply) ClipShapeExtentsWidth

func (r QueryExtentsReply) ClipShapeExtentsWidth() uint16

func (QueryExtentsReply) ClipShapeExtentsX

func (r QueryExtentsReply) ClipShapeExtentsX() int16

func (QueryExtentsReply) ClipShapeExtentsY

func (r QueryExtentsReply) ClipShapeExtentsY() int16

func (QueryExtentsReply) ClipShaped

func (r QueryExtentsReply) ClipShaped() bool

func (QueryExtentsReply) Raw

func (r QueryExtentsReply) Raw() []byte

type QueryVersionReply

type QueryVersionReply struct {
	// contains filtered or unexported fields
}

QueryVersionReply is a zero-copy view over a QueryVersion reply; offsets count from reply byte 0. It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep.

func ParseQueryVersionReply

func ParseQueryVersionReply(raw []byte) (QueryVersionReply, bool)

ParseQueryVersionReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check.

func (QueryVersionReply) MajorVersion

func (r QueryVersionReply) MajorVersion() uint16

func (QueryVersionReply) MinorVersion

func (r QueryVersionReply) MinorVersion() uint16

func (QueryVersionReply) Raw

func (r QueryVersionReply) Raw() []byte

type RectangleList

type RectangleList struct {
	// contains filtered or unexported fields
}

RectangleList is a borrowed view over a wire list of xproto.Rectangle. It shares the lifetime of the bytes it was taken from; copy what you keep.

func (RectangleList) At

func (RectangleList) Len

func (l RectangleList) Len() int

type Sk

type Sk uint8
const SkBounding Sk = 0
const SkClip Sk = 1
const SkInput Sk = 2

type So

type So uint8
const SoIntersect So = 2
const SoInvert So = 4
const SoSet So = 0
const SoSubtract So = 3
const SoUnion So = 1

Source Files

  • events_generated.go
  • replies_generated.go
  • requests_generated.go
  • types_generated.go

Jump to

Keyboard shortcuts

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