2 * Copyright (c) 2020 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 <dali/public-api/actors/layer.h>
22 #include <dali/internal/event/actors/layer-impl.h>
35 Internal::LayerPtr internal = Internal::Layer::New();
37 return Layer(internal.Get());
40 Layer Layer::DownCast( BaseHandle handle )
42 return Layer( dynamic_cast<Dali::Internal::Layer*>(handle.GetObjectPtr()) );
49 Layer::Layer(const Layer& copy)
54 Layer& Layer::operator=(const Layer& rhs)
56 BaseHandle::operator=(rhs);
60 Layer::Layer( Layer&& rhs ) = default;
62 Layer& Layer::operator=( Layer&& rhs ) = default;
66 GetImplementation(*this).Raise();
71 GetImplementation(*this).Lower();
74 void Layer::RaiseAbove( Layer target )
76 GetImplementation(*this).RaiseAbove( GetImplementation( target ) );
79 void Layer::LowerBelow( Layer target )
81 GetImplementation(*this).LowerBelow( GetImplementation( target ) );
84 void Layer::RaiseToTop()
86 GetImplementation(*this).RaiseToTop();
89 void Layer::LowerToBottom()
91 GetImplementation(*this).LowerToBottom();
94 void Layer::MoveAbove( Layer target )
96 GetImplementation(*this).MoveAbove( GetImplementation( target ) );
99 void Layer::MoveBelow( Layer target )
101 GetImplementation(*this).MoveBelow( GetImplementation( target ) );
104 void Layer::SetSortFunction(SortFunctionType function)
106 GetImplementation(*this).SetSortFunction(function);
109 Layer::Layer(Internal::Layer* internal)