Merge "Cache font description when a font is created from the file path." into devel...
[platform/core/uifw/dali-adaptor.git] / adaptors / integration-api / wayland / wl-types.h
1 #ifndef __DALI_WL_TYPES_H__
2 #define __DALI_WL_TYPES_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <wayland-client.h> // from wayland-devel package
23
24 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
25 #include <wayland-extension/xdg-shell-client-protocol.h>   // from wayland
26 #endif
27
28 namespace Dali
29 {
30
31 typedef ::wl_display WlDisplay;
32 typedef ::wl_surface WlSurface;
33 typedef ::wl_array WlArray;
34 typedef ::wl_output WlOutput;
35
36 typedef ::wl_shell WlShell;
37 typedef ::wl_shell_surface WlShellSurface;
38
39 typedef ::wl_registry WlRegistry;
40 typedef ::wl_compositor WlCompositor;
41 typedef ::wl_seat WlSeat;
42 typedef ::wl_pointer WlPointer;
43 typedef ::wl_keyboard WlKeyboard;
44 typedef ::wl_touch WlTouch;
45
46 typedef ::wl_seat_listener WlSeatListener;
47 typedef ::wl_pointer_listener WlPointerListener;
48 typedef ::wl_touch_listener WlTouchListener;
49 typedef ::wl_keyboard_listener WlKeyboardListener;
50
51 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
52 typedef ::xdg_shell WlXdgShell;
53 typedef ::xdg_surface WlXdgShellSurface;
54 #else
55 typedef void* WlXdgShell;
56 typedef void* WlXdgShellSurface;
57
58
59 #endif
60
61 } // namespace Dali
62
63 #endif /* __DALI_WL_TYPES_H__ */