5 * Copyright (c) 2020 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>
25 #include <dali/public-api/dali-adaptor-common.h>
31 * @addtogroup dali_adaptor_framework
47 * @brief Widget class is the base class for custom widget.
49 * To make own Widget, user should inherit this class and its impl class.
53 class DALI_ADAPTOR_API Widget : public BaseHandle
58 * @brief Enumeration class for termination type of widget instance.
61 enum class Termination
63 PERMANENT, //< User deleted this widget from the viewer @SINCE_1_3_5
64 TEMPORARY, //< Widget is deleted because of other reasons (e.g. widget process is terminated temporarily by the system) @SINCE_1_3_5
70 * @brief This is the constructor for Widget.
72 * @return A handle to the Widget
77 * @brief The default constructor.
83 * @brief Copy Constructor.
85 * @param[in] widget Handle to an object
87 Widget( const Widget& widget );
90 * @brief Assignment operator.
92 * @param[in] widget Handle to an object
93 * @return A reference to this
95 Widget& operator=( const Widget& widget );
98 * @brief Move constructor.
101 * @param[in] rhs A reference to the moved handle
103 Widget( Widget&& rhs );
106 * @brief Move assignment operator.
109 * @param[in] rhs A reference to the moved handle
110 * @return A reference to this handle
112 Widget& operator=( Widget&& rhs );
120 public: // Not intended for application developers
121 explicit Widget(Internal::Adaptor::Widget* widget);
129 #endif // DALI_WIDGET_H