| 1 |
<protocol name="gtk"> |
| 2 |
|
| 3 |
<interface name="gtk_shell1" version="7"> |
| 4 |
<description summary="gtk specific extensions"> |
| 5 |
gtk_shell is a protocol extension providing additional features for |
| 6 |
clients implementing it. |
| 7 |
</description> |
| 8 |
|
| 9 |
<enum name="capability"> |
| 10 |
<entry name="global_app_menu" value="1"/> |
| 11 |
<entry name="global_menu_bar" value="2"/> |
| 12 |
<entry name="desktop_icons" value="3"/> |
| 13 |
</enum> |
| 14 |
|
| 15 |
<event name="capabilities"> |
| 16 |
<arg name="capabilities" type="uint"/> |
| 17 |
</event> |
| 18 |
|
| 19 |
<request name="get_gtk_surface"> |
| 20 |
<arg name="gtk_surface" type="new_id" interface="gtk_surface1"/> |
| 21 |
<arg name="surface" type="object" interface="wl_surface"/> |
| 22 |
</request> |
| 23 |
|
| 24 |
<request name="set_startup_id"> |
| 25 |
<arg name="startup_id" type="string" allow-null="true"/> |
| 26 |
</request> |
| 27 |
|
| 28 |
<request name="system_bell"> |
| 29 |
<arg name="surface" type="object" interface="gtk_surface1" allow-null="true"/> |
| 30 |
</request> |
| 31 |
|
| 32 |
<!-- Version 3 additions --> |
| 33 |
<request name="notify_launch" since="3"> |
| 34 |
<arg name="startup_id" type="string"/> |
| 35 |
</request> |
| 36 |
|
| 37 |
<!-- Version 6 does not add new API, but asserts that surface offsets are implemented --> |
| 38 |
</interface> |
| 39 |
|
| 40 |
<interface name="gtk_surface1" version="7"> |
| 41 |
<request name="set_dbus_properties"> |
| 42 |
<arg name="application_id" type="string" allow-null="true"/> |
| 43 |
<arg name="app_menu_path" type="string" allow-null="true"/> |
| 44 |
<arg name="menubar_path" type="string" allow-null="true"/> |
| 45 |
<arg name="window_object_path" type="string" allow-null="true"/> |
| 46 |
<arg name="application_object_path" type="string" allow-null="true"/> |
| 47 |
<arg name="unique_bus_name" type="string" allow-null="true"/> |
| 48 |
</request> |
| 49 |
|
| 50 |
<request name="set_modal"/> |
| 51 |
<request name="unset_modal"/> |
| 52 |
|
| 53 |
<request name="present"> |
| 54 |
<arg name="time" type="uint"/> |
| 55 |
</request> |
| 56 |
|
| 57 |
<!-- Version 2 additions --> |
| 58 |
|
| 59 |
<enum name="state"> |
| 60 |
<entry name="tiled" value="1"/> |
| 61 |
|
| 62 |
<entry name="tiled_top" value="2" since="2" /> |
| 63 |
<entry name="tiled_right" value="3" since="2" /> |
| 64 |
<entry name="tiled_bottom" value="4" since="2" /> |
| 65 |
<entry name="tiled_left" value="5" since="2" /> |
| 66 |
</enum> |
| 67 |
|
| 68 |
<enum name="edge_constraint" since="2"> |
| 69 |
<entry name="resizable_top" value="1"/> |
| 70 |
<entry name="resizable_right" value="2"/> |
| 71 |
<entry name="resizable_bottom" value="3"/> |
| 72 |
<entry name="resizable_left" value="4"/> |
| 73 |
</enum> |
| 74 |
|
| 75 |
<event name="configure"> |
| 76 |
<arg name="states" type="array"/> |
| 77 |
</event> |
| 78 |
|
| 79 |
<event name="configure_edges" since="2"> |
| 80 |
<arg name="constraints" type="array"/> |
| 81 |
</event> |
| 82 |
|
| 83 |
<!-- Version 3 additions --> |
| 84 |
<request name="request_focus" since="3"> |
| 85 |
<arg name="startup_id" type="string" allow-null="true"/> |
| 86 |
</request> |
| 87 |
|
| 88 |
<!-- Version 4 additions --> |
| 89 |
<request name="release" type="destructor" since="4"/> |
| 90 |
|
| 91 |
<!-- Version 5 additions --> |
| 92 |
<enum name="gesture" since="5"> |
| 93 |
<entry name="double_click" value="1"/> |
| 94 |
<entry name="right_click" value="2"/> |
| 95 |
<entry name="middle_click" value="3"/> |
| 96 |
</enum> |
| 97 |
|
| 98 |
<enum name="error" since="5"> |
| 99 |
<entry name="invalid_gesture" value="0"/> |
| 100 |
</enum> |
| 101 |
|
| 102 |
<request name="titlebar_gesture" since="5"> |
| 103 |
<arg name="serial" type="uint"/> |
| 104 |
<arg name="seat" type="object" interface="wl_seat"/> |
| 105 |
<arg name="gesture" type="uint" enum="gesture"/> |
| 106 |
</request> |
| 107 |
|
| 108 |
<!-- Version 6 does not add new API, but asserts that surface offsets are implemented --> |
| 109 |
|
| 110 |
<request name="set_a11y_properties" since="7"> |
| 111 |
<arg name="a11y_dbus_name" type="string" /> |
| 112 |
<arg name="toplevel_object_path" type="string" /> |
| 113 |
</request> |
| 114 |
</interface> |
| 115 |
|
| 116 |
</protocol> |