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