Revert "[3.0] Add default value into window member data"
[platform/core/uifw/dali-adaptor.git] / adaptors / wayland / display-connection-impl.h
1 #ifndef __DALI_INTERNAL_ECORE_X_DIPLAY_CONNECTION_H__
2 #define __DALI_INTERNAL_ECORE_X_DIPLAY_CONNECTION_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 // EXTERNAL INCLUDES
22 #include <wayland-egl.h>
23 #include <Ecore_Wayland.h>
24 #include <ecore-wl-types.h>
25
26 // INTERNAL INCLUDES
27 #include <base/display-connection.h>
28 #include <dali/public-api/object/base-object.h>
29 #include <gl/egl-implementation.h>
30
31 namespace Dali
32 {
33
34 class RenderSurface;
35 class DisplayConnection;
36
37 namespace Internal
38 {
39
40 namespace Adaptor
41 {
42
43 /**
44  * DisplayConnection implementation
45  */
46 class DisplayConnection : public Dali::BaseObject
47 {
48 public:
49
50   /**
51    * @brief Default constructor
52    */
53   DisplayConnection();
54
55   /**
56    * @brief Create an initialized DisplayConnection.
57    *
58    * @return A handle to a newly allocated DisplayConnection resource.
59    */
60   static DisplayConnection* New();
61
62 public:
63
64   /**
65    * @copydoc Dali::DisplayConnection::GetDisplay
66    */
67   Any GetDisplay();
68
69   /**
70    * @copydoc Dali::DisplayConnection::GetDpi
71    */
72   static void GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical);
73
74   /**
75    * @copydoc Dali::DisplayConnection::ConsumeEvents
76    */
77   void ConsumeEvents();
78
79   /**
80    * @copydoc Dali::DisplayConnection::InitializeEgl
81    */
82   bool InitializeEgl(EglInterface& egl);
83
84 public:
85
86   /**
87    * Destructor
88    */
89   virtual ~DisplayConnection();
90
91 protected:
92
93   // Undefined
94   DisplayConnection(const DisplayConnection&);
95
96   // Undefined
97   DisplayConnection& operator=(const DisplayConnection& rhs);
98
99 private:
100   WlDisplay*   mDisplay;        ///< Wayland-display for rendering
101 };
102
103 } // namespace Adaptor
104
105 } // namespace internal
106
107 } // namespace Dali
108
109 #endif // __DALI_INTERNAL_ECORE_X_DIPLAY_CONNECTION_H__