2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include "evas-plugin.h"
22 #include <dali-extension/internal/evas-plugin/evas-plugin-impl.h>
30 EvasPlugin EvasPlugin::New(Evas_Object* parentEvasObject, int width, int height, bool transparent)
32 Internal::EvasPluginPtr internal = Internal::EvasPlugin::New(parentEvasObject, width, height, transparent);
33 return EvasPlugin(internal.Get());
36 EvasPlugin::EvasPlugin()
40 EvasPlugin::EvasPlugin(const EvasPlugin& evasPlugin)
41 : BaseHandle(evasPlugin)
45 EvasPlugin& EvasPlugin::operator=(const EvasPlugin& evasPlugin)
47 if (*this != evasPlugin)
49 BaseHandle::operator=(evasPlugin);
54 EvasPlugin::~EvasPlugin()
58 void EvasPlugin::Run()
60 Internal::GetImplementation(*this).Run();
63 void EvasPlugin::Pause()
65 Internal::GetImplementation(*this).Pause();
68 void EvasPlugin::Resume()
70 Internal::GetImplementation(*this).Resume();
73 void EvasPlugin::Stop()
75 Internal::GetImplementation(*this).Stop();
78 Evas_Object* EvasPlugin::GetDaliAccessEvasObject()
80 return Internal::GetImplementation(*this).GetDaliAccessEvasObject();
83 Evas_Object* EvasPlugin::GetDaliEvasObject()
85 return Internal::GetImplementation(*this).GetDaliEvasObject();
88 EvasPlugin::EvasPluginSignalType& EvasPlugin::InitSignal()
90 return Internal::GetImplementation(*this).InitSignal();
93 EvasPlugin::EvasPluginSignalType& EvasPlugin::TerminateSignal()
95 return Internal::GetImplementation(*this).TerminateSignal();
98 EvasPlugin::EvasPluginSignalType& EvasPlugin::PauseSignal()
100 return Internal::GetImplementation(*this).PauseSignal();
103 EvasPlugin::EvasPluginSignalType& EvasPlugin::ResumeSignal()
105 return Internal::GetImplementation(*this).ResumeSignal();
108 EvasPlugin::EvasPluginSignalType& EvasPlugin::ResizeSignal()
110 return Internal::GetImplementation(*this).ResizeSignal();
113 EvasPlugin::EvasPluginSignalType& EvasPlugin::FocusedSignal()
115 return Internal::GetImplementation(*this).FocusedSignal();
118 EvasPlugin::EvasPluginSignalType& EvasPlugin::UnFocusedSignal()
120 return Internal::GetImplementation(*this).UnFocusedSignal();
123 EvasPlugin::EvasPlugin(Internal::EvasPlugin* evasPlugin)
124 : BaseHandle(evasPlugin)
128 } // namespace Extension