X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-selection-toolbar.cpp;h=64515fc7caa8959646f889ffb487e46faa5e2671;hp=df103cfb330f73466e3222f7b484435496c8ead8;hb=HEAD;hpb=88e94c0533741de9664d32968a85f18db5a4c5dd diff --git a/dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.cpp b/dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.cpp index df103cf..deb9fe3 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.cpp +++ b/dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 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. @@ -25,10 +25,8 @@ using namespace Dali; namespace Dali { - namespace Toolkit { - TextSelectionToolbar TextSelectionToolbar::New() { return Internal::TextSelectionToolbar::New(); @@ -38,62 +36,59 @@ TextSelectionToolbar::TextSelectionToolbar() { } -TextSelectionToolbar::TextSelectionToolbar( const TextSelectionToolbar& handle ) -: Control( handle ) -{ -} +TextSelectionToolbar::TextSelectionToolbar(const TextSelectionToolbar& handle) = default; -TextSelectionToolbar& TextSelectionToolbar::operator=( const TextSelectionToolbar& handle ) -{ - if( &handle != this ) - { - Control::operator=( handle ); - } - return *this; -} +TextSelectionToolbar& TextSelectionToolbar::operator=(const TextSelectionToolbar& handle) = default; + +TextSelectionToolbar::TextSelectionToolbar(TextSelectionToolbar&& handle) = default; + +TextSelectionToolbar& TextSelectionToolbar::operator=(TextSelectionToolbar&& handle) = default; TextSelectionToolbar::~TextSelectionToolbar() { } -void TextSelectionToolbar::AddOption( Actor& option ) +void TextSelectionToolbar::AddOption(Actor& option) { GetImpl(*this).AddOption(option); } +void TextSelectionToolbar::AddDivider(Actor& divider) +{ + GetImpl(*this).AddDivider(divider); +} -void TextSelectionToolbar::AddDivider( Actor& divider ) +void TextSelectionToolbar::ResizeDividers(Size& size) { - GetImpl(*this).AddDivider( divider ); + GetImpl(*this).ResizeDividers(size); } -void TextSelectionToolbar::ResizeDividers( Size& size ) +void TextSelectionToolbar::RaiseAbove(Actor target) { - GetImpl(*this).ResizeDividers( size ); + GetImpl(*this).RaiseAbove(target); } -void TextSelectionToolbar::RaiseAbove( Layer target ) +void TextSelectionToolbar::ScrollTo(const Vector2& position) { - GetImpl(*this).RaiseAbove( target ); + GetImpl(*this).ScrollTo(position); } -TextSelectionToolbar TextSelectionToolbar::DownCast( BaseHandle handle ) +TextSelectionToolbar TextSelectionToolbar::DownCast(BaseHandle handle) { return Control::DownCast(handle); } -TextSelectionToolbar::TextSelectionToolbar( Internal::TextSelectionToolbar& implementation ) +TextSelectionToolbar::TextSelectionToolbar(Internal::TextSelectionToolbar& implementation) : Control(implementation) { } -TextSelectionToolbar::TextSelectionToolbar( Dali::Internal::CustomActor* internal ) -: Control( internal ) +TextSelectionToolbar::TextSelectionToolbar(Dali::Internal::CustomActor* internal) +: Control(internal) { - VerifyCustomActorPointer( internal ); + VerifyCustomActorPointer(internal); } - } // namespace Toolkit } // namespace Dali