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 * @addtogroup dali_adaptor_framework
45 * @brief Widget class is the base class for custom widget.
47 * To make own Widget, user should inherit this class and its impl class.
51 class DALI_IMPORT_API Widget : public BaseHandle
56 * @brief Enumeration class for termination type of widget instance.
59 enum class Termination
61 PERMANENT, //< User deleted this widget from the viewer @SINCE_1_3_5
62 TEMPORARY, //< Widget is deleted because of other reasons (e.g. widget process is terminated temporarily by the system) @SINCE_1_3_5
68 * @brief This is the constructor for Widget.
70 * @return A handle to the Widget
75 * @brief The default constructor.
80 * @brief Copy Constructor.
82 * @param[in] Widget Handle to an object
84 Widget( const Widget& widget );
87 * @brief Assignment operator.
89 * @param[in] Widget Handle to an object
90 * @return A reference to this
92 Widget& operator=( const Widget& widget );
100 public: // Not intended for application developers
101 explicit Widget(Internal::Adaptor::Widget* widget);
109 #endif // DALI_WIDGET_H