1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_ECOREX_DISPLAY_CONNECTION_IMPL_ECORE_X_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_ECOREX_DISPLAY_CONNECTION_IMPL_ECORE_X_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.
22 #include <dali/internal/window-system/common/display-connection-impl.h>
23 #include <dali/internal/window-system/ubuntu-x11/ecore-x-types.h>
28 class DisplayConnection;
41 XDisplay* mDisplay; ///< X-display for rendering
46 * DisplayConnection implementation
48 class DisplayConnectionX11 : public Dali::Internal::Adaptor::DisplayConnection
53 * @brief Default constructor
55 DisplayConnectionX11();
58 * @brief Create an initialized DisplayConnection.
60 * @return A handle to a newly allocated DisplayConnection resource.
62 static DisplayConnection* New();
67 * @copydoc Dali::DisplayConnection::GetDisplay
72 * @copydoc Dali::DisplayConnection::ConsumeEvents
77 * @copydoc Dali::DisplayConnection::InitializeGraphics
79 bool InitializeGraphics();
82 * @copydoc Dali::Internal::Adaptor::DisplayConnection::SetSurfaceType
84 void SetSurfaceType( Integration::RenderSurface::Type type );
87 * @copydoc Dali::Internal::Adaptor::DisplayConnection::SetGraphicsInterface
89 void SetGraphicsInterface( GraphicsInterface& graphics );
96 virtual ~DisplayConnectionX11();
101 DisplayConnectionX11(const DisplayConnectionX11&) = delete;
104 DisplayConnectionX11& operator=(const DisplayConnectionX11& rhs) = delete;
108 GraphicsInterface* mGraphics; ///< The graphics interface
112 XDisplay* mDisplay; ///< X-display for rendering
116 } // namespace Adaptor
118 } // namespace internal
122 #endif // DALI_INTERNAL_WINDOWSYSTEM_ECOREX_DISPLAY_CONNECTION_IMPL_ECORE_X_H