summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronox <denkpadje@gmail.com>2021-01-03 19:52:39 +0100
committeronox <denkpadje@gmail.com>2021-01-05 19:37:16 +0100
commitd10d18f3d49374d2e3eb96d63511f32795aab5f7 (patch)
treed756db773792bb9d9b33285afeb8dd14fdc2493f
parentab3c1d56822eaeb0b788242612c0006aef509647 (diff)
downloadwayland-protocols-d10d18f3d49374d2e3eb96d63511f32795aab5f7.tar.gz
text-input: Add enum attributes to various arguments
Signed-off-by: onox <denkpadje@gmail.com>
-rw-r--r--unstable/text-input/text-input-unstable-v1.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/unstable/text-input/text-input-unstable-v1.xml b/unstable/text-input/text-input-unstable-v1.xml
index 29a217e..6ee2665 100644
--- a/unstable/text-input/text-input-unstable-v1.xml
+++ b/unstable/text-input/text-input-unstable-v1.xml
@@ -113,7 +113,7 @@
<arg name="anchor" type="uint"/>
</request>
- <enum name="content_hint">
+ <enum name="content_hint" bitfield="true">
<description summary="content hint">
Content hint is a bitmask to allow to modify the behavior of the text
input.
@@ -166,8 +166,8 @@
default hints (auto completion, auto correction, auto capitalization)
should be assumed.
</description>
- <arg name="hint" type="uint"/>
- <arg name="purpose" type="uint"/>
+ <arg name="hint" type="uint" enum="content_hint" />
+ <arg name="purpose" type="uint" enum="content_purpose" />
</request>
<request name="set_cursor_rectangle">
@@ -271,7 +271,7 @@
</description>
<arg name="index" type="uint"/>
<arg name="length" type="uint"/>
- <arg name="style" type="uint"/>
+ <arg name="style" type="uint" enum="preedit_style" />
</event>
<event name="preedit_cursor">
@@ -365,7 +365,7 @@
direction text is laid out properly.
</description>
<arg name="serial" type="uint" summary="serial of the latest known text input state"/>
- <arg name="direction" type="uint"/>
+ <arg name="direction" type="uint" enum="text_direction" />
</event>
</interface>