没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论















Documentation 1.3
Wayland
The Wayland display server
Kristian Høgsberg

Wayland
Documentation 1.3 Wayland
The Wayland display server
Edition 1
Author Kristian Høgsberg krh@bitplanet.net
Copyright © 2012 Kristian Høgsberg, Intel Corporation
Permission to use, copy, modify, distribute, and sell this software and its documentation for any
purpose is hereby granted without fee, provided that the above copyright notice appear in all copies
and that both that copyright notice and this permission notice appear in supporting documentation,
and that the name of the copyright holders not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission. The copyright holders make no
representations about the suitability of this software for any purpose. It is provided "as is" without
express or implied warranty.
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
OF THIS SOFTWARE.
Wayland is a protocol for a compositor to talk to its clients as well as a C library implementation of that
protocol. The compositor can be a standalone display server running on Linux kernel modesetting
and evdev input devices, an X application, or a Wayland client itself. The clients can be traditional
applications, X servers (rootless or fullscreen) or other display servers.

iii
Preface v
Acknowledgments vii
1. Introduction 1
1.1. Motivation ..................................................................................................................... 1
1.2. The compositing manager as the display server ............................................................. 2
2. Types of Compositors 3
2.1. System Compositor ....................................................................................................... 3
2.2. Session Compositor ...................................................................................................... 3
2.3. Embedding Compositor ................................................................................................. 3
3. Wayland Architecture 5
3.1. X vs. Wayland Architecture ........................................................................................... 5
3.2. Wayland Rendering ....................................................................................................... 7
3.3. Hardware Enabling for Wayland .................................................................................... 7
4. Wayland Protocol and Model of Operation 9
4.1. Basic Principles ............................................................................................................ 9
4.2. Code Generation .......................................................................................................... 9
4.3. Wire Format ................................................................................................................. 9
4.4. Interfaces .................................................................................................................... 10
4.5. Versioning ................................................................................................................... 12
4.6. Connect Time ............................................................................................................. 13
4.7. Security and Authentication ......................................................................................... 13
4.8. Creating Objects ......................................................................................................... 13
4.9. Compositor ................................................................................................................. 13
4.10. Surfaces ................................................................................................................... 13
4.11. Input ......................................................................................................................... 13
4.12. Output ...................................................................................................................... 14
4.13. Data sharing between clients ..................................................................................... 14
A. Wayland Protocol Specification 17
A.1. wl_display - core global object .................................................................................... 17
A.2. wl_registry - global registry object ................................................................................ 19
A.3. wl_callback - callback object ....................................................................................... 20
A.4. wl_compositor - the compositor singleton ..................................................................... 20
A.5. wl_shm_pool - a shared memory pool ......................................................................... 20
A.6. wl_shm - shared memory support ................................................................................ 21
A.7. wl_buffer - content for a wl_surface ............................................................................. 26
A.8. wl_data_offer - offer to transfer data ............................................................................ 26
A.9. wl_data_source - offer to transfer data ......................................................................... 27
A.10. wl_data_device - data transfer device ........................................................................ 28
A.11. wl_data_device_manager - data transfer interface ...................................................... 31
A.12. wl_shell - create desktop-style surfaces ..................................................................... 31
A.13. wl_shell_surface - desktop-style metadata interface .................................................... 32
A.14. wl_surface - an onscreen surface .............................................................................. 38
A.15. wl_seat - group of input devices ................................................................................ 42
A.16. wl_pointer - pointer input device ................................................................................ 43
A.17. wl_keyboard - keyboard input device ......................................................................... 47
A.18. wl_touch - touchscreen input device .......................................................................... 49
A.19. wl_output - compositor output region ......................................................................... 51
A.20. wl_region - region interface ....................................................................................... 54
5. Wayland Library 57
5.1. Client API ................................................................................................................... 57

v
Preface
This document describes the (i) Wayland architecture, (ii) Wayland model of operation and (iii) its
library API. Also, the Wayland protocol specification is shown in the Appendix. This document is aimed
primarily at Wayland developers and those looking to program with it; it does not cover application
development.
There have been many contributors to this document and since this is only the first edition many errors
are expected to be found. We appreciate corrections.
Yours,
the Wayland open-source community
November 2012
剩余85页未读,继续阅读
资源评论

搬砖的日子~
- 粉丝: 2
- 资源: 11

上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制
