[dali_2.3.39] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / display-connection-impl.h
1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H
3
4 /*
5  * Copyright (c) 2024 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/window-system/common/display-connection.h>
23 #include <dali/public-api/object/base-object.h>
24
25 namespace Dali
26 {
27 class DisplayConnection;
28
29 namespace Internal::Adaptor
30 {
31 /**
32  * DisplayConnection implementation
33  */
34 class DisplayConnection : public Dali::BaseObject
35 {
36 public:
37   /**
38    * @brief Default constructor
39    */
40   DisplayConnection() = default;
41
42 public:
43   /**
44    * @copydoc Dali::DisplayConnection::GetDisplay
45    */
46   virtual Any GetDisplay() = 0;
47
48   /**
49    * @brief Get display for the graphics backend
50    *
51    * @return EGLNativeDisplayType or vulkan display type
52    */
53   virtual Any GetNativeGraphicsDisplay() = 0;
54
55   /**
56    * @copydoc Dali::DisplayConnection::ConsumeEvents
57    */
58   virtual void ConsumeEvents() = 0;
59
60   /**
61    * Sets the render surface type
62    * @param[in] type The render surface type
63    */
64   virtual void SetSurfaceType(Dali::Integration::RenderSurfaceInterface::Type type) = 0;
65
66 public:
67   /**
68    * Destructor
69    */
70   ~DisplayConnection() override = default;
71
72   // Undefined
73   DisplayConnection(const DisplayConnection&) = delete;
74
75   // Undefined
76   DisplayConnection& operator=(const DisplayConnection& rhs) = delete;
77 };
78
79 } // namespace Internal::Adaptor
80
81 } // namespace Dali
82
83 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H