X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftext-controls%2Ftext-field.cpp;h=7a1c06454fcc5e17ed00d0d9d0c754744be94fbc;hb=00cd90546f090a69d910f676e0772db769caeaef;hp=fc5826151a6f0ff37cd328e06a92decaa5441de0;hpb=6ae9cd5f03bd0a8393eebf3cfb4508cab7fd3ede;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/text-controls/text-field.cpp b/dali-toolkit/public-api/controls/text-controls/text-field.cpp index fc58261..7a1c064 100644 --- a/dali-toolkit/public-api/controls/text-controls/text-field.cpp +++ b/dali-toolkit/public-api/controls/text-controls/text-field.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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,66 +23,63 @@ namespace Dali { - namespace Toolkit { - TextField TextField::New() { return Internal::TextField::New(); } -TextField::TextField() +TextField TextField::New(ControlBehaviour additionalBehaviour) { + return Internal::TextField::New(static_cast(additionalBehaviour)); } -TextField::TextField( const TextField& handle ) -: Control( handle ) +TextField::TextField() { } -TextField& TextField::operator=( const TextField& handle ) -{ - if( &handle != this ) - { - Control::operator=( handle ); - } - return *this; -} +TextField::TextField(const TextField& handle) = default; + +TextField::TextField(TextField&& rhs) noexcept = default; + +TextField& TextField::operator=(const TextField& handle) = default; + +TextField& TextField::operator=(TextField&& rhs) noexcept = default; TextField::~TextField() { } -TextField TextField::DownCast( BaseHandle handle ) +TextField TextField::DownCast(BaseHandle handle) { return Control::DownCast(handle); } TextField::TextChangedSignalType& TextField::TextChangedSignal() { - return Dali::Toolkit::GetImpl( *this ).TextChangedSignal(); + return Dali::Toolkit::GetImpl(*this).TextChangedSignal(); } TextField::MaxLengthReachedSignalType& TextField::MaxLengthReachedSignal() { - return Dali::Toolkit::GetImpl( *this ).MaxLengthReachedSignal(); + return Dali::Toolkit::GetImpl(*this).MaxLengthReachedSignal(); } TextField::InputStyleChangedSignalType& TextField::InputStyleChangedSignal() { - return Dali::Toolkit::GetImpl( *this ).InputStyleChangedSignal(); + return Dali::Toolkit::GetImpl(*this).InputStyleChangedSignal(); } -TextField::TextField( Internal::TextField& implementation ) +TextField::TextField(Internal::TextField& implementation) : Control(implementation) { } -TextField::TextField( Dali::Internal::CustomActor* internal ) -: Control( internal ) +TextField::TextField(Dali::Internal::CustomActor* internal) +: Control(internal) { - VerifyCustomActorPointer( internal ); + VerifyCustomActorPointer(internal); } } // namespace Toolkit