1 #ifndef __DALI_INTERNAL_ECORE_X_DIPLAY_CONNECTION_H__
2 #define __DALI_INTERNAL_ECORE_X_DIPLAY_CONNECTION_H__
5 * Copyright (c) 2015 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.
23 #include <ecore-x-types.h>
26 #include <base/display-connection.h>
27 #include <dali/public-api/object/base-object.h>
28 #include <gl/egl-implementation.h>
34 class DisplayConnection;
43 * DisplayConnection implementation
45 class DisplayConnection : public Dali::BaseObject
50 * @brief Default constructor
55 * @brief Create an initialized DisplayConnection.
57 * @return A handle to a newly allocated DisplayConnection resource.
59 static DisplayConnection* New();
64 * @copydoc Dali::DisplayConnection::GetDisplay
69 * @copydoc Dali::DisplayConnection::GetDpi
71 static void GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical);
74 * @copydoc Dali::DisplayConnection::ConsumeEvents
79 * @copydoc Dali::DisplayConnection::InitializeEgl
81 bool InitializeEgl(EglInterface& egl);
88 virtual ~DisplayConnection();
93 DisplayConnection(const DisplayConnection&);
96 DisplayConnection& operator=(const DisplayConnection& rhs);
99 XDisplay* mDisplay; ///< X-display for rendering
102 } // namespace Adaptor
104 } // namespace internal
108 #endif // __DALI_INTERNAL_ECORE_X_DIPLAY_CONNECTION_H__