Move GetDpi implementation to RenderSurface
[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) 2015 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 #include <dali/internal/graphics/gles20/egl-implementation.h>
25
26 #include <memory>
27
28 namespace Dali
29 {
30
31 class DisplayConnection;
32
33 namespace Internal
34 {
35 namespace Adaptor
36 {
37
38 /**
39  * DisplayConnection implementation
40  */
41 class DisplayConnection : public Dali::BaseObject
42 {
43 public:
44
45   /**
46    * @brief Default constructor
47    */
48   DisplayConnection() = default;
49
50   /**
51    * @brief Create an initialized DisplayConnection.
52    *
53    * @return A handle to a newly allocated DisplayConnection resource.
54    */
55   static DisplayConnection* New();
56
57 public:
58
59   /**
60    * @copydoc Dali::DisplayConnection::GetDisplay
61    */
62   virtual Any GetDisplay() = 0;
63
64   /**
65    * @copydoc Dali::DisplayConnection::ConsumeEvents
66    */
67   virtual void ConsumeEvents() = 0;
68
69   /**
70    * @copydoc Dali::DisplayConnection::InitializeEgl
71    */
72   virtual bool InitializeEgl(EglInterface& egl) = 0;
73
74   virtual void SetSurfaceType( RenderSurface::Type type ) = 0;
75
76 public:
77
78   /**
79    * Destructor
80    */
81   ~DisplayConnection() override = default;
82
83 protected:
84
85   // Undefined
86   DisplayConnection(const DisplayConnection&) = delete;
87
88   // Undefined
89   DisplayConnection& operator=(const DisplayConnection& rhs) = delete;
90
91 };
92
93 } // namespace Adaptor
94
95 } // namespace internal
96
97 } // namespace Dali
98
99 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H