Documentation
¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "damage.xml"
Index ¶
- Constants
- func Add(c *xgb.XConn, Drawable xproto.Drawable, Region xfixes.Region) error
- func AddUnchecked(c *xgb.XConn, Drawable xproto.Drawable, Region xfixes.Region) error
- func Create(c *xgb.XConn, Damage Damage, Drawable xproto.Drawable, Level byte) error
- func CreateUnchecked(c *xgb.XConn, Damage Damage, Drawable xproto.Drawable, Level byte) error
- func Destroy(c *xgb.XConn, Damage Damage) error
- func DestroyUnchecked(c *xgb.XConn, Damage Damage) error
- func QueryVersionUnchecked(c *xgb.XConn, ClientMajorVersion uint32, ClientMinorVersion uint32) error
- func Register(xconn *xgb.XConn) error
- func Subtract(c *xgb.XConn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) error
- func SubtractUnchecked(c *xgb.XConn, Damage Damage, Repair xfixes.Region, Parts xfixes.Region) error
- func UnmarshalBadDamageError(buf []byte) (xgb.XError, error)
- func UnmarshalNotifyEvent(buf []byte) (xgb.XEvent, error)
- type BadDamageError
- type Damage
- type NotifyEvent
- type QueryVersionReply
Constants ¶
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" )
const ( ReportLevelRawRectangles = 0 ReportLevelDeltaRectangles = 1 ReportLevelBoundingBox = 2 ReportLevelNonEmpty = 3 )
const BadBadDamage = 0
BadBadDamage is the error number for a BadBadDamage.
const Notify = 0
Notify is the event number for a NotifyEvent.
Variables ¶
This section is empty.
Functions ¶
func AddUnchecked ¶ added in v1.1.0
AddUnchecked sends an unchecked request.
func CreateUnchecked ¶ added in v1.1.0
CreateUnchecked sends an unchecked request.
func DestroyUnchecked ¶ added in v1.1.0
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 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
UnmarshalBadDamageError constructs a BadDamageError value that implements xgb.Error from a byte slice.
func UnmarshalNotifyEvent ¶ added in v1.1.0
UnmarshalNotifyEvent constructs a NotifyEvent value that implements xgb.Event from a byte slice.
Types ¶
type BadDamageError ¶
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.