0.2.0-dev Download ZIP
74 lines ·2.9 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <protocol name="godot_embedding_compositor"> |
| 3 | |
| 4 | <copyright> |
| 5 | Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). |
| 6 | Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. |
| 7 | |
| 8 | Permission is hereby granted, free of charge, to any person obtaining a copy |
| 9 | of this software and associated documentation files (the "Software"), to deal |
| 10 | in the Software without restriction, including without limitation the rights |
| 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 12 | copies of the Software, and to permit persons to whom the Software is |
| 13 | furnished to do so, subject to the following conditions: |
| 14 | |
| 15 | The above copyright notice and this permission notice shall be included in all |
| 16 | copies or substantial portions of the Software. |
| 17 | |
| 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 24 | SOFTWARE. |
| 25 | </copyright> |
| 26 | |
| 27 | <interface name="godot_embedding_compositor" version="1"> |
| 28 | <description summary="Main control interface for embedding compositor"/> |
| 29 | |
| 30 | <event name="client"> |
| 31 | <description summary="A new client connected to the compositor"/> |
| 32 | <arg name="client" type="new_id" interface="godot_embedded_client"/> |
| 33 | <arg name="pid" type="int"/> |
| 34 | </event> |
| 35 | </interface> |
| 36 | |
| 37 | <interface name="godot_embedded_client" version="1"> |
| 38 | <description summary="A client connected to the embedded compositor."> |
| 39 | Clients have only a single embedded window at a time, subject to change. |
| 40 | </description> |
| 41 | |
| 42 | <request name="destroy" type="destructor"/> |
| 43 | |
| 44 | <request name="set_embedded_window_rect"> |
| 45 | <arg name="x" type="int"/> |
| 46 | <arg name="y" type="int"/> |
| 47 | <arg name="width" type="int"/> |
| 48 | <arg name="height" type="int"/> |
| 49 | </request> |
| 50 | |
| 51 | <request name="set_embedded_window_parent"> |
| 52 | <description summary="(Re)map onto an xdg_toplevel"/> |
| 53 | <arg name="parent" type="object" interface="xdg_toplevel" allow-null="true"/> |
| 54 | </request> |
| 55 | |
| 56 | <request name="focus_window"/> |
| 57 | |
| 58 | <request name="embedded_window_request_close"/> |
| 59 | |
| 60 | <event name="disconnected"> |
| 61 | <description summary="The client got disconnected from the compositor"> |
| 62 | This instance is no longer valid. The compositor shall ignore any |
| 63 | further request except destroy and stop emitting events for this object. |
| 64 | After this event, the client can safely destroy this object. |
| 65 | </description> |
| 66 | </event> |
| 67 | |
| 68 | <event name="window_embedded"/> |
| 69 | |
| 70 | <event name="window_focus_in"/> |
| 71 | |
| 72 | <event name="window_focus_out"/> |
| 73 | </interface> |
| 74 | </protocol> |