From 15d140d7867e8e654ce917b8d6d1dbd45b3de3b8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 9 Feb 2023 17:31:37 -0800 Subject: [PATCH] Add documentation for DAMAGE extension Based on https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/blob/master/damageproto.txt Signed-off-by: Alan Coopersmith --- src/damage.xml | 106 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/src/damage.xml b/src/damage.xml index c04721d..930090a 100644 --- a/src/damage.xml +++ b/src/damage.xml @@ -51,7 +51,26 @@ authorization from the authors. + + The negotiated version of the DAMAGE extension + +This indicates the version of the DAMAGE extension chosen by the server. +It will always be less than or equal to the version offered by the client. + + The major version chosen by the server. + The minor version chosen by the server. + + + Negotiate the version of the DAMAGE extension + +This negotiates the version of the DAMAGE extension. It must precede any other +request using the DAMAGE extension. Failure to do so will cause a BadRequest +error for those requests. + + The major version supported by the client. + The minor version supported by the client. + @@ -59,21 +78,84 @@ authorization from the authors. + + Creates a Damage object to monitor changes to a drawable. + + + The ID of the drawable to be monitored. + The level of detail to be provided in Damage events. + + + Destroys a previously created Damage object. + +This destroys a Damage object and requests the X server stop reporting +the changes it was tracking. + + + + + Remove regions from a previously created Damage object. + +This updates the regions of damage recorded in a a Damage object. +See https://www.x.org/releases/current/doc/damageproto/damageproto.txt +for details. + + The ID you provided to `xcb_create_damage`. + + + Add a region to a previously created Damage object. + +This updates the regions of damage recorded in a a Damage object. +See https://www.x.org/releases/current/doc/damageproto/damageproto.txt +for details. + + The ID you provided to `xcb_create_damage`. + @@ -83,5 +165,29 @@ authorization from the authors. + + the contents of the monitored drawable have changed + + + + + + + +