2 * Copyright (c) 2016 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 <pepper-dali/public-api/compositor/compositor.h>
22 #include <pepper-dali/internal/compositor-impl.h>
30 Compositor Compositor::New( Application application, const std::string& name )
32 Internal::CompositorPtr internal = Internal::Compositor::New( application, name );
34 return Compositor( internal.Get() );
37 Compositor Compositor::DownCast( BaseHandle handle )
39 return Compositor( dynamic_cast< Internal::Compositor* >( handle.GetObjectPtr() ) );
42 Compositor::Compositor()
46 Compositor::Compositor( const Compositor& handle )
51 Compositor& Compositor::operator=( const Compositor& handle )
53 BaseHandle::operator=(handle);
57 Compositor::~Compositor()
61 Compositor::Compositor( Internal::Compositor* implementation )
62 : BaseHandle( implementation )
66 Compositor::CompositorSignalType& Compositor::ObjectViewAddedSignal()
68 return GetImplementation(*this).ObjectViewAddedSignal();
71 Compositor::CompositorSignalType& Compositor::ObjectViewDeletedSignal()
73 return GetImplementation(*this).ObjectViewDeletedSignal();
76 } // namespace Toolkit