/*
- * 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.
namespace Dali
{
-
namespace Toolkit
{
-
TextField TextField::New()
{
return Internal::TextField::New();
}
+TextField TextField::New(ControlBehaviour additionalBehaviour)
+{
+ return Internal::TextField::New(static_cast<Toolkit::Internal::Control::ControlBehaviour>(additionalBehaviour));
+}
+
TextField::TextField()
{
}
-TextField::TextField( const TextField& handle )
-: Control( handle )
+TextField::TextField(const TextField& handle) = default;
+
+TextField::TextField(TextField&& rhs) = default;
+
+TextField& TextField::operator=(const TextField& handle) = default;
+
+TextField& TextField::operator=(TextField&& rhs) = default;
+
+TextField::~TextField()
+{
+}
+
+TextField TextField::DownCast(BaseHandle handle)
{
+ return Control::DownCast<TextField, Internal::TextField>(handle);
}
-TextField& TextField::operator=( const TextField& handle )
+TextField::TextChangedSignalType& TextField::TextChangedSignal()
{
- if( &handle != this )
- {
- Control::operator=( handle );
- }
- return *this;
+ return Dali::Toolkit::GetImpl(*this).TextChangedSignal();
}
-TextField::~TextField()
+TextField::MaxLengthReachedSignalType& TextField::MaxLengthReachedSignal()
{
+ return Dali::Toolkit::GetImpl(*this).MaxLengthReachedSignal();
}
-TextField TextField::DownCast( BaseHandle handle )
+TextField::InputStyleChangedSignalType& TextField::InputStyleChangedSignal()
{
- return Control::DownCast<TextField, Internal::TextField>(handle);
+ return Dali::Toolkit::GetImpl(*this).InputStyleChangedSignal();
}
-TextField::TextField( Internal::TextField& implementation )
+TextField::TextField(Internal::TextField& implementation)
: Control(implementation)
{
}
-TextField::TextField( Dali::Internal::CustomActor* internal )
-: Control( internal )
+TextField::TextField(Dali::Internal::CustomActor* internal)
+: Control(internal)
{
- VerifyCustomActorPointer<Internal::TextField>( internal );
+ VerifyCustomActorPointer<Internal::TextField>(internal);
}
} // namespace Toolkit