wtz-blur: Add wtz_blur_rectangle 57/314757/4
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 22 Jul 2024 08:36:06 +0000 (17:36 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 23 Jul 2024 05:56:03 +0000 (14:56 +0900)
Change-Id: I30f52d6b5206b7258f5cbc76fdba96feb6b6224c

protocol/tizen/wtz-blur.xml

index f8f7580..4dd6392 100644 (file)
       </description>
       <arg name="radius" type="uint" summary="blur radius"/>
     </request>
+
+    <request name="create_rectangle">
+      <description summary="get the blur rectangle">
+        Create a rectangle that indicates the area where a blur is applied.
+
+        The blur rectangle is specified in the surface-local coordinates.
+
+        The blur rectangle is double-buffered state, and will be applied on the
+        next wl_surface.commit.
+
+        If xr and xy are 0, it will be drawn as a rectangle without rounded corners.
+        The value of rx should be between 0 and w/2.
+        The value of ry should be between 0 and h/2.
+      </description>
+      <arg name="id" type="new_id" interface="wtz_blur_rectangle"
+        summary="the new blur round rectangle object"/>
+      <arg name="x" type="int" summary="local x coordinate"/>
+      <arg name="y" type="int" summary="local y coordinate"/>
+      <arg name="width" type="int" summary="rectangle width"/>
+      <arg name="height" type="int" summary="rectangle height"/>
+      <arg name="rx" type="int" summary="x radius of the rounded corner"/>
+      <arg name="ry" type="int" summary="x radius of the rounded corner"/>
+    </request>
+  </interface>
+
+  <interface name="wtz_blur_rectangle" version="1">
+    <description summary="rectangle for a blur object">
+      If the wtz_blur associated with the wtz_blur_round_rectangle is destroyed,
+      the wtz_blur_round_rectangle object becomes inert.
+    </description>
+    <request name="destroy" type="destructor">
+      <description summary="destroy the blur round rectangle object">
+        Destroy the blur rectangle object.
+
+        On the next wl_surface.commit, the blur rectangle object state is withdrawn.
+      </description>
+    </request>
   </interface>
 
 </protocol>