1 #ifndef DALI_INTERNAL_ECORE_X_RENDER_SURFACE_H
2 #define DALI_INTERNAL_ECORE_X_RENDER_SURFACE_H
5 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
25 #include <dali/internal/system/linux/dali-ecore-x.h>
37 namespace WindowInterface
40 * X11 Window interface, to separate X11 calls within adaptor.
44 * Gets the Ecore X Window
47 Ecore_X_Window GetWindow();
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
56 std::string GetWindowProperty(Ecore_X_Atom property, Ecore_X_Atom* xDataType, unsigned int num);
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
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);
70 } // namespace WindowInterface
74 } // namespace Adaptor
76 } // namespace Internal
80 #endif // DALI_INTERNAL_ECORE_X_RENDER_SURFACE_H