winit-kora 0.30.13

Cross-platform window creation library. (Playtron's Kora fork of winit)
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="corner_radius">
  <copyright><![CDATA[
    Copyright © 2024 Playtron

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the "Software"),
    to deal in the Software without restriction, including without limitation
    the rights to use, copy, modify, merge, publish, distribute, sublicense,
    and/or sell copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice (including the next
    paragraph) shall be included in all copies or substantial portions of the
    Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.
  ]]></copyright>

  <description summary="communicate corner radius of layer surfaces">
    This protocol provides a way for clients to communicate the
    corner radius of their layer shell surfaces, should they use rounded corners.

    This hint can then be used by the compositor to draw fitting blur outlines
    or prevent overdrawing of other server-side drawn interfaces.
  </description>

  <interface name="layer_corner_radius_manager_v1" version="1">
    <description summary="corner radius manager for layer surfaces">
      Manager for creating corner-radius objects for surfaces.
      This is designed for layer shell surfaces but works with any wl_surface.
    </description>

    <request name="destroy" type="destructor">
      <description summary="Destroy the global">
        Informs the server that the client will no longer use this global.
        Any previously created corner-radius objects remain valid until destroyed.
      </description>
    </request>

    <request name="get_corner_radius">
      <description summary="Create a new corner-radius object for a surface">
        Instantiate an interface extension for the given wl_surface to specify corner radius.

        If the given wl_surface already has a layer_corner_radius_surface_v1 object associated,
        the corner_radius_exists protocol error will be raised.
      </description>
      <arg name="id" type="new_id" interface="layer_corner_radius_surface_v1"
        summary="the new layer_corner_radius_surface_v1 object"/>
      <arg name="surface" type="object" interface="wl_surface"
        summary="the surface"/>
    </request>

    <enum name="error">
      <entry name="corner_radius_exists" value="0"
        summary="the surface already has a corner-radius object"/>
    </enum>
  </interface>

  <interface name="layer_corner_radius_surface_v1" version="1">
    <description summary="corner radius for a surface">
      The corner-radius object provides a way to specify a corner-radius
      for its associated surface.

      If the wl_surface associated with the layer_corner_radius_surface_v1
      object has been destroyed, this object becomes inert. Any further requests
      other than destroy will raise the surface_destroyed protocol error.
    </description>

    <request name="destroy" type="destructor">
      <description summary="Destroy the corner-radius object">
        Informs the server that the client will no longer be using this protocol
        object. The corner radius will be unset on the next commit.
      </description>
    </request>

    <request name="set_radius">
      <description summary="Set corner radius">
        This request sets the hinted corner radius values for the surface.

        The corner radius hint is double-buffered state and will be applied on
        the next wl_surface.commit.

        The value is given in logical space relative to the surface geometry.
      </description>
      <arg name="top_left" type="uint" summary="top-left corner radius"/>
      <arg name="top_right" type="uint" summary="top-right corner radius"/>
      <arg name="bottom_right" type="uint" summary="bottom-right corner radius"/>
      <arg name="bottom_left" type="uint" summary="bottom-left corner radius"/>
    </request>

    <request name="unset_radius">
      <description summary="Unset corner radius">
        Unsets any previously hinted corner radius values without invalidating the object for later use.
        Can be used by clients that possibly have temporary irregular shapes.
      </description>
    </request>

    <enum name="error">
      <entry name="surface_destroyed" value="0"
        summary="the associated surface object has been already destroyed"/>
    </enum>
  </interface>
</protocol>