1 #ifndef DALI_TOOLKIT_TEXT_BACKEND_H
2 #define DALI_TOOLKIT_TEXT_BACKEND_H
5 * Copyright (c) 2021 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/public-api/object/base-handle.h>
25 #include <dali-toolkit/internal/text/rendering/text-renderer.h>
33 namespace Internal DALI_INTERNAL
39 * @brief Provides access to different text rendering backends.
41 class Backend : public BaseHandle
45 * @brief Retrieve a handle to the Backend instance.
47 * @return A handle to the Backend
52 * @brief Create a renderer from a particluar rendering type.
54 * @param[in] renderingType The type of rendering required.
55 * @return A handle to the newly created renderer.
57 RendererPtr NewRenderer(unsigned int renderingType);
60 * @brief Create an uninitialized TextAbstraction handle.
67 * This is non-virtual since derived Handle types must not contain data or virtual methods.
72 * @brief This copy constructor is required for (smart) pointer semantics.
74 * @param[in] handle A reference to the copied handle.
76 Backend(const Backend& handle);
79 * @brief This assignment operator is required for (smart) pointer semantics.
81 * @param [in] handle A reference to the copied handle.
82 * @return A reference to this.
84 Backend& operator=(const Backend& handle);
86 public: // Not intended for application developers
88 * @brief This constructor is used by Backend::Get().
90 * @param[in] backend A pointer to the internal backend object.
92 explicit DALI_INTERNAL Backend(Internal::Backend* backend);
97 } // namespace Toolkit
101 #endif // DALI_TOOLKIT_TEXT_BACKEND_H