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 const std::string& Compositor::GetName() const
39 return GetImplementation( *this ).GetName();
42 Compositor Compositor::DownCast( BaseHandle handle )
44 return Compositor( dynamic_cast< Internal::Compositor* >( handle.GetObjectPtr() ) );
47 Compositor::Compositor()
51 Compositor::Compositor( const Compositor& handle )
56 Compositor& Compositor::operator=( const Compositor& handle )
58 BaseHandle::operator=(handle);
62 Compositor::~Compositor()
66 Compositor::Compositor( Internal::Compositor* implementation )
67 : BaseHandle( implementation )
71 Compositor::CompositorSignalType& Compositor::ObjectViewAddedSignal()
73 return GetImplementation(*this).ObjectViewAddedSignal();
76 Compositor::CompositorSignalType& Compositor::ObjectViewDeletedSignal()
78 return GetImplementation(*this).ObjectViewDeletedSignal();
81 } // namespace Toolkit