/*
- * 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.
namespace Dali
{
-
namespace Toolkit
{
-
TextSelectionToolbar TextSelectionToolbar::New()
{
return Internal::TextSelectionToolbar::New();
{
}
-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 )
+void TextSelectionToolbar::AddDivider(Actor& divider)
+{
+ GetImpl(*this).AddDivider(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<TextSelectionToolbar, Internal::TextSelectionToolbar>(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::TextSelectionToolbar>( internal );
+ VerifyCustomActorPointer<Internal::TextSelectionToolbar>(internal);
}
-
} // namespace Toolkit
} // namespace Dali