Add input region APIs
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / ubuntu-x11 / window-interface-ecore-x.h
1 #ifndef DALI_INTERNAL_ECORE_X_RENDER_SURFACE_H
2 #define DALI_INTERNAL_ECORE_X_RENDER_SURFACE_H
3
4 /*
5  * Copyright (c) 2021 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 <string>
23
24 #include <X11/Xlib.h>
25 #include <dali/internal/system/linux/dali-ecore-x.h>
26
27 // INTERNAL INCLUDES
28
29 namespace Dali
30 {
31 namespace Internal
32 {
33 namespace Adaptor
34 {
35 namespace ECore
36 {
37 namespace WindowInterface
38 {
39 /**
40  * X11 Window interface, to separate X11 calls within adaptor.
41  */
42
43 /**
44  * Gets the Ecore X Window
45  * @return window
46  */
47 Ecore_X_Window GetWindow();
48
49 /**
50   * Gets a specified X window property
51   * @param[in] property the required property id
52   * @param[in] xDataType the type
53   * @param[in] num the offset / index of the property
54   * @return string the property value
55   */
56 std::string GetWindowProperty(Ecore_X_Atom property, Ecore_X_Atom* xDataType, unsigned int num);
57
58 /**
59   * Send an X Event
60   * @param[in] display target display
61   * @param[in] window target window
62   * @param[in] propagate to propagate to other windows
63   * @parma[in] eventMask event mask
64   * @param[in] messageType Ecore_X_Atom message type
65   * @param[in] messageFormat format of message
66   * @param[in] msg message to send
67   */
68 void SendXEvent(Ecore_X_Display* display, Ecore_X_Window window, bool propagate, long int eventMask, Ecore_X_Atom messageType, int messageFormat, const char* msg);
69
70 } // namespace WindowInterface
71
72 } // namespace ECore
73
74 } // namespace Adaptor
75
76 } // namespace Internal
77
78 } // namespace Dali
79
80 #endif // DALI_INTERNAL_ECORE_X_RENDER_SURFACE_H