[4.0] Create Widget Application
[platform/core/uifw/dali-adaptor.git] / adaptors / widget / widget.cpp
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include "widget.h"
20
21 // EXTERNAL INCLUDES
22 #include <dali/integration-api/debug.h>
23
24 // INTERNAL INCLUDES
25 #include "widget-impl.h"
26
27 namespace Dali
28 {
29
30 Widget Widget::New(const std::string& id)
31 {
32   return Internal::Adaptor::Widget::New(id);
33 }
34
35 Widget::~Widget()
36 {
37 }
38
39 Widget::Widget()
40 {
41 }
42
43 Widget::Widget(const Widget& widget)
44 : BaseHandle(widget)
45 {
46 }
47
48 Widget& Widget::operator=(const Widget& widget)
49 {
50   if( *this != widget )
51   {
52     BaseHandle::operator=( widget );
53   }
54   return *this;
55 }
56
57 Widget::WidgetInstanceCreateSignalType& Widget::CreateSignal()
58 {
59   return Internal::Adaptor::GetImplementation(*this).CreateSignal();
60 }
61
62 Widget::WidgetInstanceTerminateSignalType& Widget::TerminateSignal()
63 {
64   return Internal::Adaptor::GetImplementation(*this).TerminateSignal();
65 }
66
67 Widget::WidgetInstancePauseSignalType& Widget::PauseSignal()
68 {
69   return Internal::Adaptor::GetImplementation(*this).PauseSignal();
70 }
71
72 Widget::WidgetInstanceResumeSignalType& Widget::ResumeSignal()
73 {
74   return Internal::Adaptor::GetImplementation(*this).ResumeSignal();
75 }
76
77 Widget::WidgetInstanceResizeSignalType& Widget::ResizeSignal()
78 {
79   return Internal::Adaptor::GetImplementation(*this).ResizeSignal();
80 }
81
82 Widget::WidgetInstanceUpdateSignalType& Widget::UpdateSignal()
83 {
84   return Internal::Adaptor::GetImplementation(*this).UpdateSignal();
85 }
86
87 Widget::Widget(Internal::Adaptor::Widget* widget)
88 : BaseHandle(widget)
89 {
90 }
91
92 } // namespace Dali