e0bbc37e54953175e7e13998fabe39cb6c9e8112
[platform/core/uifw/dali-extension.git] / dali-extension / devel-api / evas-plugin / evas-plugin.cpp
1 /*
2  * Copyright (c) 2019 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 "evas-plugin.h"
20
21 // INTERNAL INCLUDES
22 #include <dali-extension/internal/evas-plugin/evas-plugin-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Extension
28 {
29
30 EvasPlugin EvasPlugin::New(Evas_Object* parentEvasObject, int width, int height, bool transparent)
31 {
32   Internal::EvasPluginPtr internal = Internal::EvasPlugin::New(parentEvasObject, width, height, transparent);
33   return EvasPlugin(internal.Get());
34 }
35
36 EvasPlugin::EvasPlugin()
37 {
38 }
39
40 EvasPlugin::EvasPlugin(const EvasPlugin& evasPlugin)
41 : BaseHandle(evasPlugin)
42 {
43 }
44
45 EvasPlugin& EvasPlugin::operator=(const EvasPlugin& evasPlugin)
46 {
47   if (*this != evasPlugin)
48   {
49     BaseHandle::operator=(evasPlugin);
50   }
51   return *this;
52 }
53
54 EvasPlugin::~EvasPlugin()
55 {
56 }
57
58 void EvasPlugin::Run()
59 {
60   Internal::GetImplementation(*this).Run();
61 }
62
63 void EvasPlugin::Pause()
64 {
65   Internal::GetImplementation(*this).Pause();
66 }
67
68 void EvasPlugin::Resume()
69 {
70   Internal::GetImplementation(*this).Resume();
71 }
72
73 void EvasPlugin::Stop()
74 {
75   Internal::GetImplementation(*this).Stop();
76 }
77
78 Evas_Object* EvasPlugin::GetDaliAccessEvasObject()
79 {
80   return Internal::GetImplementation(*this).GetDaliAccessEvasObject();
81 }
82
83 Evas_Object* EvasPlugin::GetDaliEvasObject()
84 {
85   return Internal::GetImplementation(*this).GetDaliEvasObject();
86 }
87
88 EvasPlugin::EvasPluginSignalType& EvasPlugin::InitSignal()
89 {
90   return Internal::GetImplementation(*this).InitSignal();
91 }
92
93 EvasPlugin::EvasPluginSignalType& EvasPlugin::TerminateSignal()
94 {
95   return Internal::GetImplementation(*this).TerminateSignal();
96 }
97
98 EvasPlugin::EvasPluginSignalType& EvasPlugin::PauseSignal()
99 {
100   return Internal::GetImplementation(*this).PauseSignal();
101 }
102
103 EvasPlugin::EvasPluginSignalType& EvasPlugin::ResumeSignal()
104 {
105   return Internal::GetImplementation(*this).ResumeSignal();
106 }
107
108 EvasPlugin::EvasPluginSignalType& EvasPlugin::ResizeSignal()
109 {
110   return Internal::GetImplementation(*this).ResizeSignal();
111 }
112
113 EvasPlugin::EvasPluginSignalType& EvasPlugin::FocusedSignal()
114 {
115   return Internal::GetImplementation(*this).FocusedSignal();
116 }
117
118 EvasPlugin::EvasPluginSignalType& EvasPlugin::UnFocusedSignal()
119 {
120   return Internal::GetImplementation(*this).UnFocusedSignal();
121 }
122
123 EvasPlugin::EvasPlugin(Internal::EvasPlugin* evasPlugin)
124 : BaseHandle(evasPlugin)
125 {
126 }
127
128 }  // namespace Extension
129
130 }  // namespace Dali