X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftext-controls%2Ftext-editor.cpp;h=331148d3beff1f21558a88234ec80cd16ffaff4c;hb=HEAD;hp=fa81f24953f77e1d6aef1ec32c671d153a08bf5a;hpb=aeef40d5dd70c7d878c7664986913ef2c6675a03;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/text-controls/text-editor.cpp b/dali-toolkit/public-api/controls/text-controls/text-editor.cpp index fa81f24..331148d 100644 --- a/dali-toolkit/public-api/controls/text-controls/text-editor.cpp +++ b/dali-toolkit/public-api/controls/text-controls/text-editor.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,56 +23,63 @@ namespace Dali { - namespace Toolkit { - TextEditor TextEditor::New() { return Internal::TextEditor::New(); } +TextEditor TextEditor::New(ControlBehaviour additionalBehaviour) +{ + return Internal::TextEditor::New(static_cast(additionalBehaviour)); +} + TextEditor::TextEditor() { } -TextEditor::TextEditor( const TextEditor& handle ) -: Control( handle ) +TextEditor::TextEditor(const TextEditor& handle) = default; + +TextEditor::TextEditor(TextEditor&& rhs) noexcept = default; + +TextEditor& TextEditor::operator=(const TextEditor& handle) = default; + +TextEditor& TextEditor::operator=(TextEditor&& rhs) noexcept = default; + +TextEditor::~TextEditor() { } -TextEditor& TextEditor::operator=( const TextEditor& handle ) +TextEditor TextEditor::DownCast(BaseHandle handle) { - if( &handle != this ) - { - Control::operator=( handle ); - } - return *this; + return Control::DownCast(handle); } -TextEditor::~TextEditor() +TextEditor::TextChangedSignalType& TextEditor::TextChangedSignal() { + return Dali::Toolkit::GetImpl(*this).TextChangedSignal(); } -TextEditor TextEditor::DownCast( BaseHandle handle ) +TextEditor::InputStyleChangedSignalType& TextEditor::InputStyleChangedSignal() { - return Control::DownCast( handle ); + return Dali::Toolkit::GetImpl(*this).InputStyleChangedSignal(); } -TextEditor::TextChangedSignalType& TextEditor::TextChangedSignal() +TextEditor::ScrollStateChangedSignalType& TextEditor::ScrollStateChangedSignal() { - return Dali::Toolkit::GetImpl( *this ).TextChangedSignal(); + return Dali::Toolkit::GetImpl(*this).ScrollStateChangedSignal(); } -TextEditor::TextEditor( Internal::TextEditor& implementation ) -: Control( implementation ) +TextEditor::TextEditor(Internal::TextEditor& implementation) +: Control(implementation) { } -TextEditor::TextEditor( Dali::Internal::CustomActor* internal ) -: Control( internal ) +TextEditor::TextEditor(Dali::Internal::CustomActor* internal) +: Control(internal) { - VerifyCustomActorPointer( internal ); + VerifyCustomActorPointer(internal); } } // namespace Toolkit