[dali_2.3.27] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / internal / system / windows / widget-controller-win.h
1 #ifndef DALI_WIDGET_CONTROLLER_WIN_H
2 #define DALI_WIDGET_CONTROLLER_WIN_H
3
4 /*
5  * Copyright (c) 2021 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 <dali/public-api/signals/connection-tracker.h>
23
24 // INTERNAL INCLUDES
25 #include <dali/internal/system/common/widget-controller.h>
26
27 namespace Dali
28 {
29 namespace Internal
30 {
31 namespace Adaptor
32 {
33 /**
34  * @brief Holds the Implementation for the internal WidgetImpl class
35  */
36 class WidgetImplWin : public Widget::Impl
37 {
38 public:
39   /**
40    * Constructor
41    */
42   WidgetImplWin();
43
44   /**
45    * Destructor
46    */
47   ~WidgetImplWin() override;
48
49 public:
50   /**
51    * Set content information to widget framework
52    */
53   void SetContentInfo(const std::string& contentInfo) override;
54
55   /**
56    * Check Widget is using key
57    */
58   bool IsKeyEventUsing() const override;
59
60   /**
61    * Set the flag that widget is using keyEvent
62    */
63   void SetUsingKeyEvent(bool flag) override;
64
65   /**
66    * Set the Information of widget
67    */
68   void SetInformation(Dali::Window window, const std::string& widgetId) override;
69
70   /**
71    * Get the window
72    */
73   Dali::Window GetWindow() const override;
74
75   /**
76    * Get the widget id
77    */
78   std::string GetWidgetId() const override;
79 };
80
81 } // namespace Adaptor
82
83 } // namespace Internal
84
85 } // namespace Dali
86
87 #endif // DALI_WIDGET_CONTROLLER_UBUNTU_H