summaryrefslogtreecommitdiff
path: root/examples/wayland/custom-shell/protocol/example-shell.xml
blob: ec01b6d6163e286f0504e291740cd6121758c989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="example_shell">
    <copyright>
 Copyright (C) 2021 The Qt Company Ltd.
 SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
    </copyright>

  <interface name="qt_example_shell_surface" version="1">
    <request name="destroy" type="destructor">
    </request>

    <request name="set_window_title">
        <arg name="window_title" type="string" />
    </request>

    <request name="set_minimized">
        <arg name="minimized" type="uint" />
    </request>
    <event name="minimize">
      <arg name="minimized" type="uint"/>
    </event>
  </interface>

  <interface name="qt_example_shell" version="1">
    <request name="surface_create">
      <arg name="surface" type="object" interface="wl_surface"/>
      <arg name="id" type="new_id" interface="qt_example_shell_surface"/>
    </request>
    <enum name="error">
      <entry name="role" value="0" summary="wl_surface already has a different role"/>
    </enum>
  </interface>

</protocol>