X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Factors%2Flayer.cpp;h=2f19079147990bdd16e7cbf04d8425f71062b521;hb=0b501ba800a263b97d99adf224fc42d0c2aa8b37;hp=38e965dbc65eb93056f3d35e6794007a1c8dd71f;hpb=b321cf7d4fe1e418f322ab5fd11709ad4767c83d;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/actors/layer.cpp b/dali/public-api/actors/layer.cpp index 38e965d..2f19079 100644 --- a/dali/public-api/actors/layer.cpp +++ b/dali/public-api/actors/layer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,12 +23,7 @@ namespace Dali { - -using Dali::Layer; - -Layer::Layer() -{ -} +Layer::Layer() = default; Layer Layer::New() { @@ -37,29 +32,20 @@ Layer Layer::New() return Layer(internal.Get()); } -Layer Layer::DownCast( BaseHandle handle ) +Layer Layer::DownCast(BaseHandle handle) { - return Layer( dynamic_cast(handle.GetObjectPtr()) ); + return Layer(dynamic_cast(handle.GetObjectPtr())); } -Layer::~Layer() -{ -} +Layer::~Layer() = default; -Layer::Layer(const Layer& copy) -: Actor(copy) -{ -} +Layer::Layer(const Layer& copy) = default; -Layer& Layer::operator=(const Layer& rhs) -{ - BaseHandle::operator=(rhs); - return *this; -} +Layer& Layer::operator=(const Layer& rhs) = default; -Layer::Layer( Layer&& rhs ) = default; +Layer::Layer(Layer&& rhs) noexcept = default; -Layer& Layer::operator=( Layer&& rhs ) = default; +Layer& Layer::operator=(Layer&& rhs) noexcept = default; void Layer::Raise() { @@ -71,14 +57,14 @@ void Layer::Lower() GetImplementation(*this).Lower(); } -void Layer::RaiseAbove( Layer target ) +void Layer::RaiseAbove(Layer target) { - GetImplementation(*this).RaiseAbove( GetImplementation( target ) ); + GetImplementation(*this).RaiseAbove(GetImplementation(target)); } -void Layer::LowerBelow( Layer target ) +void Layer::LowerBelow(Layer target) { - GetImplementation(*this).LowerBelow( GetImplementation( target ) ); + GetImplementation(*this).LowerBelow(GetImplementation(target)); } void Layer::RaiseToTop() @@ -91,14 +77,14 @@ void Layer::LowerToBottom() GetImplementation(*this).LowerToBottom(); } -void Layer::MoveAbove( Layer target ) +void Layer::MoveAbove(Layer target) { - GetImplementation(*this).MoveAbove( GetImplementation( target ) ); + GetImplementation(*this).MoveAbove(GetImplementation(target)); } -void Layer::MoveBelow( Layer target ) +void Layer::MoveBelow(Layer target) { - GetImplementation(*this).MoveBelow( GetImplementation( target ) ); + GetImplementation(*this).MoveBelow(GetImplementation(target)); } void Layer::SetSortFunction(SortFunctionType function)