damage

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: 8 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "damage.xml"

Index

Constants

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

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "DAMAGE"
)
View Source
const (
	ReportLevelRawRectangles   = 0
	ReportLevelDeltaRectangles = 1
	ReportLevelBoundingBox     = 2
	ReportLevelNonEmpty        = 3
)
View Source
const BadBadDamage = 0

BadBadDamage is the error number for a BadBadDamage.

View Source
const Notify = 0

Notify is the event number for a NotifyEvent.

Variables

This section is empty.

Functions

func Add

func Add(c *xgb.XConn, Drawable xproto.Drawable, Region xfixes.Region) error

Add sends a checked request.

func AddUnchecked added in v1.1.0

func AddUnchecked(c *xgb.XConn, Drawable xproto.Drawable, Region xfixes.Region) error

AddUnchecked sends an unchecked request.

func Create

func Create(c *xgb.XConn, Damage Damage, Drawable xproto.Drawable, Level byte) error

Create sends a checked request.

func CreateUnchecked added in v1.1.0

func CreateUnchecked(c *xgb.XConn, Damage Damage, Drawable xproto.Drawable, Level byte) error

CreateUnchecked sends an unchecked request.

func Destroy

func Destroy(c *xgb.XConn, Damage Damage) error

Destroy sends a checked request.

func DestroyUnchecked added in v1.1.0

func DestroyUnchecked(c *xgb.XConn, Damage Damage) error

DestroyUnchecked sends an unchecked request.

func QueryVersionUnchecked

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

QueryVersionUnchecked sends an unchecked request.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

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

func Subtract

func Subtract(c *xgb.XConn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) error

Subtract sends a checked request.

func SubtractUnchecked added in v1.1.0

func SubtractUnchecked(c *xgb.XConn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) error

SubtractUnchecked sends an unchecked request.

func UnmarshalBadDamageError added in v1.1.0

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

UnmarshalBadDamageError constructs a BadDamageError value that implements xgb.Error from a byte slice.

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 BadDamageError

type BadDamageError struct {
	Sequence uint16
	NiceName string
}

func (*BadDamageError) BadID added in v1.1.0

func (err *BadDamageError) BadID() uint32

BadID returns the 'BadValue' number if one exists for the BadBadDamage error. If no bad value exists, 0 is returned.

func (*BadDamageError) Error

func (err *BadDamageError) Error() string

Error returns a rudimentary string representation of the BadBadDamage error.

func (*BadDamageError) SeqID added in v1.1.0

func (err *BadDamageError) SeqID() uint16

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

type Damage

type Damage uint32

func NewDamageID added in v1.1.0

func NewDamageID(c *xgb.XConn) Damage

type NotifyEvent

type NotifyEvent struct {
	Sequence  uint16
	Level     byte
	Drawable  xproto.Drawable
	Damage    Damage
	Timestamp xproto.Timestamp
	Area      xproto.Rectangle
	Geometry  xproto.Rectangle
}

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 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.

Jump to

Keyboard shortcuts

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