2 * Copyright (c) 2022 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.h>
22 #include <dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.h>
30 TextSelectionToolbar TextSelectionToolbar::New()
32 return Internal::TextSelectionToolbar::New();
35 TextSelectionToolbar::TextSelectionToolbar()
39 TextSelectionToolbar::TextSelectionToolbar(const TextSelectionToolbar& handle) = default;
41 TextSelectionToolbar& TextSelectionToolbar::operator=(const TextSelectionToolbar& handle) = default;
43 TextSelectionToolbar::TextSelectionToolbar(TextSelectionToolbar&& handle) = default;
45 TextSelectionToolbar& TextSelectionToolbar::operator=(TextSelectionToolbar&& handle) = default;
47 TextSelectionToolbar::~TextSelectionToolbar()
51 void TextSelectionToolbar::AddOption(Actor& option)
53 GetImpl(*this).AddOption(option);
56 void TextSelectionToolbar::AddDivider(Actor& divider)
58 GetImpl(*this).AddDivider(divider);
61 void TextSelectionToolbar::ResizeDividers(Size& size)
63 GetImpl(*this).ResizeDividers(size);
66 void TextSelectionToolbar::RaiseAbove(Actor target)
68 GetImpl(*this).RaiseAbove(target);
71 void TextSelectionToolbar::ScrollTo(const Vector2& position)
73 GetImpl(*this).ScrollTo(position);
76 TextSelectionToolbar TextSelectionToolbar::DownCast(BaseHandle handle)
78 return Control::DownCast<TextSelectionToolbar, Internal::TextSelectionToolbar>(handle);
81 TextSelectionToolbar::TextSelectionToolbar(Internal::TextSelectionToolbar& implementation)
82 : Control(implementation)
86 TextSelectionToolbar::TextSelectionToolbar(Dali::Internal::CustomActor* internal)
89 VerifyCustomActorPointer<Internal::TextSelectionToolbar>(internal);
92 } // namespace Toolkit