damage

package
v0.0.0-...-7ad2634 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportLevelRawRectangles   = 0
	ReportLevelDeltaRectangles = 1
	ReportLevelBoundingBox     = 2
	ReportLevelNonEmpty        = 3
)

enum ReportLevel

View Source
const AddOpcode = 4
View Source
const BadDamageErrorCode = 0
View Source
const CreateOpcode = 1
View Source
const DestroyOpcode = 2
View Source
const MajorVersion = 1

_ns.ext_name: Damage

View Source
const MinorVersion = 1
View Source
const NotifyEventCode = 0
View Source
const QueryVersionOpcode = 0
View Source
const SubtractOpcode = 3

Variables

This section is empty.

Functions

func Create

func Create(conn *x.Conn, damage Damage, drawable x.Drawable, level uint8)

func CreateChecked

func CreateChecked(conn *x.Conn, damage Damage, drawable x.Drawable, level uint8) x.VoidCookie

func Destroy

func Destroy(conn *x.Conn, damage Damage)

func DestroyChecked

func DestroyChecked(conn *x.Conn, damage Damage) x.VoidCookie

func Ext

func Ext() *x.Extension

Types

type Damage

type Damage uint32

simple ('xcb', 'Damage', 'DAMAGE')

type NotifyEvent

type NotifyEvent struct {
	Level     uint8
	Sequence  uint16
	Drawable  x.Drawable
	Damage    Damage
	Timestamp x.Timestamp
	Area      x.Rectangle
	Geometry  x.Rectangle
}

func NewNotifyEvent

func NewNotifyEvent(data []byte) (*NotifyEvent, error)

type QueryVersionCookie

type QueryVersionCookie x.SeqNum

func QueryVersion

func QueryVersion(conn *x.Conn, majorVersion, minorVersion uint32) QueryVersionCookie

func (QueryVersionCookie) Reply

func (cookie QueryVersionCookie) Reply(conn *x.Conn) (*QueryVersionReply, error)

type QueryVersionReply

type QueryVersionReply struct {
	MajorVersion uint32
	MinorVersion uint32
}

Jump to

Keyboard shortcuts

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