1 #ifndef DALI_TOOLKIT_TEXT_ITALICSPAN_H
2 #define DALI_TOOLKIT_TEXT_ITALICSPAN_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 ItalicSpan is a handle to an object that specifies the Italic font for range of characters.
38 class DALI_TOOLKIT_API ItalicSpan : public BaseSpan
42 * @brief Create an Initialized ItalicSpan.
44 * @return A handle to a newly allocated Dali resource.
46 static ItalicSpan New();
49 * @brief Creates an uninitialized ItalicSpan handle.
51 * Calling member functions with an uninitialized ItalicSpan handle is not allowed.
56 * @brief Copy constructor.
57 * @param[in] rhs A reference to the copied handle.
59 ItalicSpan(const ItalicSpan& rhs);
62 * @brief Move constructor.
63 * @param rhs A reference to the handle to move.
65 ItalicSpan(ItalicSpan&& rhs);
68 * @brief Assignment operator.
69 * @param[in] rhs A reference to the copied handle
70 * @return A reference to this
72 ItalicSpan& operator=(const ItalicSpan& rhs);
75 * @brief Move assignment operator.
76 * @param[in] rhs A reference to the moved handle.
77 * @return A reference to this.
79 ItalicSpan& operator=(ItalicSpan&& rhs);
82 * @brief Non virtual destructor.
87 * @brief Downcasts to a ItalicSpan handle.
88 * If handle is not a ItalicSpan, the returned handle is left uninitialized.
90 * @param[in] handle Handle to an object.
91 * @return ItalicSpan handle or an uninitialized handle.
93 static ItalicSpan DownCast(BaseHandle handle);
95 // Not intended for application developers.
97 * @brief This constructor is used internally to Create an initialized ItalicSpan handle.
99 * @param[in] italicSpan Pointer to internal ItalicSpan.
101 explicit DALI_INTERNAL ItalicSpan(Internal::ItalicSpan* italicSpan);
107 } // namespace Toolkit
111 #endif //DALI_TOOLKIT_TEXT_ITALICSPAN_H