/*
- * 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.
return Internal::TextLabel::New();
}
-TextLabel::TextLabel()
+TextLabel TextLabel::New( const std::string& text )
{
-}
+ TextLabel label = Internal::TextLabel::New();
+ label.SetProperty( TextLabel::Property::TEXT, text );
-TextLabel::TextLabel( const TextLabel& handle )
-: Control( handle )
-{
+ return label;
}
-TextLabel& TextLabel::operator=( const TextLabel& handle )
+TextLabel::TextLabel()
{
- if( &handle != this )
- {
- Control::operator=( handle );
- }
- return *this;
}
+TextLabel::TextLabel( const TextLabel& handle ) = default;
+
+TextLabel::TextLabel( TextLabel&& rhs ) = default;
+
+TextLabel& TextLabel::operator=( const TextLabel& handle ) = default;
+
+TextLabel& TextLabel::operator=( TextLabel&& rhs ) = default;
+
TextLabel::~TextLabel()
{
}