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>
30 * @addtogroup dali_adaptor_framework
41 } // namespace Internal
44 * @brief Widget class is the base class for custom widget.
46 * To make own Widget, user should inherit this class and its impl class.
50 class DALI_ADAPTOR_API Widget : public BaseHandle
54 * @brief Enumeration class for termination type of widget instance.
57 enum class Termination
59 PERMANENT, //< User deleted this widget from the viewer @SINCE_1_3_5
60 TEMPORARY, //< Widget is deleted because of other reasons (e.g. widget process is terminated temporarily by the system) @SINCE_1_3_5
65 * @brief This is the constructor for Widget.
67 * @return A handle to the Widget
72 * @brief The default constructor.
78 * @brief Copy Constructor.
80 * @param[in] widget Handle to an object
82 Widget(const Widget& widget);
85 * @brief Assignment operator.
87 * @param[in] widget Handle to an object
88 * @return A reference to this
90 Widget& operator=(const Widget& widget);
93 * @brief Move constructor.
96 * @param[in] rhs A reference to the moved handle
98 Widget(Widget&& rhs) noexcept;
101 * @brief Move assignment operator.
104 * @param[in] rhs A reference to the moved handle
105 * @return A reference to this handle
107 Widget& operator=(Widget&& rhs) noexcept;
115 public: // Not intended for application developers
116 explicit Widget(Internal::Adaptor::Widget* widget);
124 #endif // DALI_WIDGET_H