X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-selection-popup.cpp;h=cfc5e43e9bf8ef5f7d8c114dc8998b2605adcf6f;hb=1d82abb8a1a514ce0af63004706135fb7883f89b;hp=7cf97dae86d1a6337ad7c465042f51e2b4fcb5ef;hpb=c8bceb828f2e65e82dd0f22bdb964ab7e04882a0;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.cpp b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.cpp index 7cf97da..cfc5e43 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.cpp +++ b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.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. @@ -25,34 +25,27 @@ using namespace Dali; namespace Dali { - namespace Toolkit { - -TextSelectionPopup TextSelectionPopup::New() -{ - return Internal::TextSelectionPopup::New(); -} - -TextSelectionPopup TextSelectionPopup::New( Buttons enabledButtons ) +TextSelectionPopup TextSelectionPopup::New(TextSelectionPopupCallbackInterface* callbackInterface) { - return Internal::TextSelectionPopup::New( enabledButtons ); + return Internal::TextSelectionPopup::New(callbackInterface); } TextSelectionPopup::TextSelectionPopup() { } -TextSelectionPopup::TextSelectionPopup( const TextSelectionPopup& handle ) -: Control( handle ) +TextSelectionPopup::TextSelectionPopup(const TextSelectionPopup& handle) +: Control(handle) { } -TextSelectionPopup& TextSelectionPopup::operator=( const TextSelectionPopup& handle ) +TextSelectionPopup& TextSelectionPopup::operator=(const TextSelectionPopup& handle) { - if( &handle != this ) + if(&handle != this) { - Control::operator=( handle ); + Control::operator=(handle); } return *this; } @@ -61,22 +54,41 @@ TextSelectionPopup::~TextSelectionPopup() { } -TextSelectionPopup TextSelectionPopup::DownCast( BaseHandle handle ) +TextSelectionPopup TextSelectionPopup::DownCast(BaseHandle handle) { return Control::DownCast(handle); } -TextSelectionPopup::TextSelectionPopup( Internal::TextSelectionPopup& implementation ) -: Control(implementation) +void TextSelectionPopup::EnableButtons(Toolkit::TextSelectionPopup::Buttons buttonsToEnable) +{ + GetImpl(*this).EnableButtons(buttonsToEnable); +} + +void TextSelectionPopup::RaiseAbove(Layer target) { + GetImpl(*this).RaiseAbove(target); } -TextSelectionPopup::TextSelectionPopup( Dali::Internal::CustomActor* internal ) -: Control( internal ) +void TextSelectionPopup::ShowPopup() { - VerifyCustomActorPointer( internal ); + GetImpl(*this).ShowPopup(); } +void TextSelectionPopup::HidePopup() +{ + GetImpl(*this).HidePopup(); +} + +TextSelectionPopup::TextSelectionPopup(Internal::TextSelectionPopup& implementation) +: Control(implementation) +{ +} + +TextSelectionPopup::TextSelectionPopup(Dali::Internal::CustomActor* internal) +: Control(internal) +{ + VerifyCustomActorPointer(internal); +} } // namespace Toolkit