mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-25 06:46:34 -04:00
protocol: add wl_surface errors enum for bad scale and transform values
This commit is contained in:
parent
3de6a1de3f
commit
0dd019925b
1 changed files with 15 additions and 0 deletions
|
|
@ -977,6 +977,14 @@
|
||||||
cursor images for pointers, drag icons, etc.
|
cursor images for pointers, drag icons, etc.
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
|
<enum name="error">
|
||||||
|
<description summary="wl_surface error values">
|
||||||
|
These errors can be emitted in response to wl_surface requests.
|
||||||
|
</description>
|
||||||
|
<entry name="invalid_scale" value="0" summary="buffer scale value is invalid"/>
|
||||||
|
<entry name="invalid_transform" value="1" summary="buffer transform value is invalid"/>
|
||||||
|
</enum>
|
||||||
|
|
||||||
<request name="destroy" type="destructor">
|
<request name="destroy" type="destructor">
|
||||||
<description summary="delete surface">
|
<description summary="delete surface">
|
||||||
Deletes the surface and invalidates its object ID.
|
Deletes the surface and invalidates its object ID.
|
||||||
|
|
@ -1229,6 +1237,10 @@
|
||||||
Note that if the transform value includes 90 or 270 degree rotation,
|
Note that if the transform value includes 90 or 270 degree rotation,
|
||||||
the width of the buffer will become the surface height and the height
|
the width of the buffer will become the surface height and the height
|
||||||
of the buffer will become the surface width.
|
of the buffer will become the surface width.
|
||||||
|
|
||||||
|
If transform is not one of the values from the
|
||||||
|
wl_output.transform enum the invalid_transform protocol error
|
||||||
|
is raised.
|
||||||
</description>
|
</description>
|
||||||
<arg name="transform" type="int"/>
|
<arg name="transform" type="int"/>
|
||||||
</request>
|
</request>
|
||||||
|
|
@ -1257,6 +1269,9 @@
|
||||||
Note that if the scale is larger than 1, then you have to attach
|
Note that if the scale is larger than 1, then you have to attach
|
||||||
a buffer that is larger (by a factor of scale in each dimension)
|
a buffer that is larger (by a factor of scale in each dimension)
|
||||||
than the desired surface size.
|
than the desired surface size.
|
||||||
|
|
||||||
|
If scale is not positive the invalid_scale protocol error is
|
||||||
|
raised.
|
||||||
</description>
|
</description>
|
||||||
<arg name="scale" type="int"/>
|
<arg name="scale" type="int"/>
|
||||||
</request>
|
</request>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue