1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_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.h>
23 #include <dali/public-api/object/base-object.h>
24 #include <dali/internal/graphics/gles20/egl-implementation.h>
32 class DisplayConnection;
40 * DisplayConnection implementation
42 class DisplayConnection : public Dali::BaseObject
47 * @brief Default constructor
49 DisplayConnection() = default;
52 * @brief Create an initialized DisplayConnection.
54 * @return A handle to a newly allocated DisplayConnection resource.
56 static DisplayConnection* New();
61 * @copydoc Dali::DisplayConnection::GetDisplay
63 virtual Any GetDisplay() = 0;
66 * @copydoc Dali::DisplayConnection::GetDpi
68 static void GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical);
71 * @copydoc Dali::DisplayConnection::GetDpi with native window
73 static void GetDpi(Any nativeWindow, unsigned int& dpiHorizontal, unsigned int& dpiVertical);
76 * @copydoc Dali::DisplayConnection::ConsumeEvents
78 virtual void ConsumeEvents() = 0;
81 * @copydoc Dali::DisplayConnection::InitializeEgl
83 virtual bool InitializeEgl(EglInterface& egl) = 0;
85 virtual void SetSurfaceType( RenderSurface::Type type ) = 0;
92 ~DisplayConnection() override = default;
97 DisplayConnection(const DisplayConnection&) = delete;
100 DisplayConnection& operator=(const DisplayConnection& rhs) = delete;
104 } // namespace Adaptor
106 } // namespace internal
110 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H