Implement subsurfaces extension
[profile/ivi/qtwayland.git] / extensions / sub-surface-extension.xml
1 <!--
2 # /****************************************************************************
3 # **
4 # ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
5 # ** Contact: Nokia Corporation (qt-info@nokia.com)
6 # **
7 # ** This file is part of qt-compositor.
8 # **
9 # ****************************************************************************/
10 -->
11 <protocol name="sub_surface_extension">
12
13     <copyright>
14         Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
15         All rights reserved.
16         Contact: Nokia Corporation (qt-info@nokia.com)
17
18         This file is part of the plugins of the Qt Toolkit.
19
20         $QT_BEGIN_LICENSE:LGPL$
21         GNU Lesser General Public License Usage
22         This file may be used under the terms of the GNU Lesser General Public
23         License version 2.1 as published by the Free Software Foundation and
24         appearing in the file LICENSE.LGPL included in the packaging of this
25         file. Please review the following information to ensure the GNU Lesser
26         General Public License version 2.1 requirements will be met:
27         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
28
29         In addition, as a special exception, Nokia gives you certain additional
30         rights. These rights are described in the Nokia Qt LGPL Exception
31         version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
32
33         GNU General Public License Usage
34         Alternatively, this file may be used under the terms of the GNU General
35         Public License version 3.0 as published by the Free Software Foundation
36         and appearing in the file LICENSE.GPL included in the packaging of this
37         file. Please review the following information to ensure the GNU General
38         Public License version 3.0 requirements will be met:
39         http://www.gnu.org/copyleft/gpl.html.
40
41         Other Usage
42         Alternatively, this file may be used in accordance with the terms and
43         conditions contained in a signed written agreement between you and Nokia.
44
45
46
47
48
49         $QT_END_LICENSE$
50     </copyright>
51
52     <interface name="wl_sub_surface_extension" version="1">
53         <request name="get_sub_surface_aware_surface">
54             <arg name="id" type="new_id" interface="wl_sub_surface"/>
55             <arg name="surface" type="object" interface="wl_surface"/>
56         </request>
57     </interface>
58
59     <interface name="wl_sub_surface" version="1">
60         <request name="attach_sub_surface">
61             <arg name="sub_surface" type="object" interface="wl_sub_surface"/>
62             <arg name="x" type="int"/>
63             <arg name="y" type="int"/>
64         </request>
65
66         <request name="move_sub_surface">
67             <arg name="sub_surface" type="object" interface="wl_sub_surface"/>
68             <arg name="x" type="int"/>
69             <arg name="y" type="int"/>
70         </request>
71
72         <request name="raise">
73             <arg name="sub_surface" type="object" interface="wl_sub_surface"/>
74         </request>
75
76         <request name="lower">
77             <arg name="sub_surface" type="object" interface="wl_sub_surface"/>
78         </request>
79     </interface>
80 </protocol>