1 #ifndef __DALI_WIDGET_DATA_H__
2 #define __DALI_WIDGET_DATA_H__
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/public-api/object/base-handle.h>
28 namespace Internal DALI_INTERNAL
38 class DALI_IMPORT_API WidgetData : public BaseHandle
43 * @brief This is the constructor for WidgetApplications with a name.
45 * @param[in] instanceId for widget instance
46 * @param[in] args for widget instance
47 * @param[in] content for widget instance
48 * @param[in] window for widget instance
49 * @return A handle to the WidgetData
51 static WidgetData New( const char* instanceId, bundle* args, char* content );
54 * @brief The default constructor.
60 * @brief Copy Constructor.
61 * @param[in] WidgetData Handle to an object
63 WidgetData( const WidgetData& widgetData );
66 * @brief Assignment operator.
67 * @param[in] WidgetData Handle to an object
68 * @return A reference to this
70 WidgetData& operator=( const WidgetData& widgetData );
79 * @brief Get widget instance id
80 * @return Id of widget instance
82 const char* GetInstanceId();
85 * @brief Get widget instance arguments
86 * @return Bundle which contains widget instance arguments
91 * @brief Get widget instance content
92 * @return Content of widget instance
97 * @brief Get widget instance Window
98 * @return Window of widget instance
103 * @brief Set widget instance arguments
104 * @param[in] args arguments of widget instance
106 void SetArgs( bundle* args );
109 * @brief Set widget instance arguments
110 * @param[in] content content of widget instance
112 void SetContent( char* content );
115 * @brief Set widget instance arguments
116 * @param[in] window Window of widget instance
118 void SetWindow( Window window );
120 public: // Not intended for application developers
123 * @brief Internal constructor.
125 explicit DALI_INTERNAL WidgetData(Internal::Adaptor::WidgetData* widgetData);
131 #endif // ___DALI_WIDGET_DATA_H__