1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_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.
22 #include <dali/internal/graphics/gles/egl-implementation.h>
23 #include <dali/internal/window-system/common/display-connection.h>
24 #include <dali/public-api/object/base-object.h>
28 class DisplayConnection;
35 * DisplayConnection implementation
37 class DisplayConnection : public Dali::BaseObject
41 * @brief Default constructor
43 DisplayConnection() = default;
46 * @brief Create an initialized DisplayConnection.
48 * @return A handle to a newly allocated DisplayConnection resource.
50 static DisplayConnection* New();
54 * @copydoc Dali::DisplayConnection::GetDisplay
56 virtual Any GetDisplay() = 0;
59 * @copydoc Dali::DisplayConnection::ConsumeEvents
61 virtual void ConsumeEvents() = 0;
64 * @copydoc Dali::DisplayConnection::InitializeGraphics
66 virtual bool InitializeGraphics() = 0;
69 * Sets the render surface type
70 * @param[in] type The render surface type
72 virtual void SetSurfaceType(Dali::RenderSurfaceInterface::Type type) = 0;
75 * Sets the graphics interface
76 * @param[in] graphics The graphics interface
78 virtual void SetGraphicsInterface(GraphicsInterface& graphics) = 0;
84 ~DisplayConnection() override = default;
88 DisplayConnection(const DisplayConnection&) = delete;
91 DisplayConnection& operator=(const DisplayConnection& rhs) = delete;
94 } // namespace Adaptor
96 } // namespace Internal
100 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H