X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftext-controls%2Ftext-field.cpp;h=075a46860a96abc4a6acd1df5ec35d1c9e8ca0a1;hb=fb87251cfeff34418a36798700b81786e522018a;hp=53401375d77289cf810e25cc1ddc5fe8c17f58e7;hpb=ebb05c83defab9c07a991ea2f102085ecea3709d;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 5340137..075a468 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) 2015 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,10 +23,8 @@ namespace Dali { - namespace Toolkit { - TextField TextField::New() { return Internal::TextField::New(); @@ -36,43 +34,47 @@ TextField::TextField() { } -TextField::TextField( const TextField& handle ) -: Control( handle ) +TextField::TextField(const TextField& handle) = default; + +TextField::TextField(TextField&& rhs) = default; + +TextField& TextField::operator=(const TextField& handle) = default; + +TextField& TextField::operator=(TextField&& rhs) = default; + +TextField::~TextField() { } -TextField& TextField::operator=( const TextField& handle ) +TextField TextField::DownCast(BaseHandle handle) { - if( &handle != this ) - { - Control::operator=( handle ); - } - return *this; + return Control::DownCast(handle); } -TextField::~TextField() +TextField::TextChangedSignalType& TextField::TextChangedSignal() { + return Dali::Toolkit::GetImpl(*this).TextChangedSignal(); } -TextField TextField::DownCast( BaseHandle handle ) +TextField::MaxLengthReachedSignalType& TextField::MaxLengthReachedSignal() { - return Control::DownCast(handle); + return Dali::Toolkit::GetImpl(*this).MaxLengthReachedSignal(); } -TextField::MaxLengthReachedSignalType& TextField::MaxLengthReachedSignal() +TextField::InputStyleChangedSignalType& TextField::InputStyleChangedSignal() { - return Dali::Toolkit::GetImpl( *this ).MaxLengthReachedSignal(); + 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