1 #ifndef DALI_TOOLKIT_TEXT_BOLD_SPAN_H
2 #define DALI_TOOLKIT_TEXT_BOLD_SPAN_H
5 * Copyright (c) 2022 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali-toolkit/devel-api/text/spans/base-span.h>
30 namespace Internal DALI_INTERNAL
36 * @brief BoldSpan is a handle to an object that specifies the Bold for range of characters.
38 class DALI_TOOLKIT_API BoldSpan : public BaseSpan
42 * @brief Create an initialized BoldSpan.
44 * @return A handle to newly allocated Dali resource.
46 static BoldSpan New();
49 * @brief Creates an uninitialized BoldSpan handle.
51 * Calling member functions with an uninitialized BoldSpan handle is not allowed.
56 * @brief Copy constructor.
57 * @param[in] rhs A refrence to the copied handle.
59 BoldSpan(const BoldSpan& rhs);
62 * @brief Move constructor.
64 * @param[in] rhs A refrence to the move handle.
66 BoldSpan(BoldSpan&& rhs);
69 * @brief Assignment operator.
70 * @param[in] rhs A reference to the copied handle.
71 * @return A refrence to this.
73 BoldSpan& operator=(const BoldSpan& rhs);
76 * @brief Assignment operator.
77 * @param[in] rhs rhs A reference to the move handle.
78 * @return A refrence to this.
80 BoldSpan& operator=(BoldSpan&& rhs);
83 * @brief Non virtual destructor.
89 * @brief Downcasts to a BoldSpan handle.
90 * If handle is not a BoldSpan, the returned handle is left uninitialized.
92 * @param[in] handle Handle to an object.
93 * @return BoldSpan handle or an uninitialized handle
95 static BoldSpan DownCast(BaseHandle handle);
97 // Not intended for application developers
99 * @brief This constructor is used internally to create an initialized BoldSpan handle.
100 * @param[in] boldSpan Pointer to internal BoldSpan.
102 explicit DALI_INTERNAL BoldSpan(Internal::BoldSpan* boldSpan);
107 }// namespace Toolkit
111 #endif // DALI_TOOLKIT_TEXT_BOLDSPAN_H