Spannable: Add BoldSpan
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / text / spans / bold-span.cpp
1 /*
2  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17 // CLASS HEADER
18 #include <dali-toolkit/devel-api/text/spans/bold-span.h>
19
20 // INTERNAL INCLUDES
21 #include <dali-toolkit/internal/text/spannable/spans/bold-span-impl.h>
22
23 namespace Dali
24 {
25 namespace Toolkit
26 {
27 namespace Text
28 {
29
30 BoldSpan BoldSpan::New()
31 {
32   return Internal::BoldSpan::New();
33 }
34
35 BoldSpan::BoldSpan() = default;
36
37 BoldSpan::BoldSpan(const BoldSpan& rhs) = default;
38
39 BoldSpan::BoldSpan(BoldSpan&& rhs) = default;
40
41 BoldSpan& BoldSpan::operator=(const BoldSpan& rhs) = default;
42
43 BoldSpan& BoldSpan::operator=(BoldSpan&& rhs) = default;
44
45 BoldSpan::~BoldSpan() = default;
46
47 BoldSpan::BoldSpan(Internal::BoldSpan* internal)
48 : BaseSpan(internal)
49 {
50 }
51
52 BoldSpan BoldSpan::DownCast(BaseHandle handle)
53 {
54   return BoldSpan(dynamic_cast<Dali::Toolkit::Text::Internal::BoldSpan*>(handle.GetObjectPtr()));
55 }
56
57 } // namespace Text
58
59 } // namespace Toolkit
60
61 } // namespace Dali