1 #ifndef __DALI_TOOLKIT_TEXT_BACKEND_H__
2 #define __DALI_TOOLKIT_TEXT_BACKEND_H__
5 * Copyright (c) 2015 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>
36 namespace Internal DALI_INTERNAL
42 * @brief Provides access to different text rendering backends.
44 class Backend : public BaseHandle
49 * @brief Retrieve a handle to the Backend instance.
51 * @return A handle to the Backend
56 * @brief Create a renderer from a particluar rendering type.
58 * @param[in] renderingType The type of rendering required.
59 * @return A handle to the newly created renderer.
61 RendererPtr NewRenderer( unsigned int renderingType );
64 * @brief Create an uninitialized TextAbstraction handle.
71 * This is non-virtual since derived Handle types must not contain data or virtual methods.
76 * @brief This copy constructor is required for (smart) pointer semantics.
78 * @param[in] handle A reference to the copied handle.
80 Backend( const Backend& handle );
83 * @brief This assignment operator is required for (smart) pointer semantics.
85 * @param [in] handle A reference to the copied handle.
86 * @return A reference to this.
88 Backend& operator=( const Backend& handle );
90 public: // Not intended for application developers
93 * @brief This constructor is used by Backend::Get().
95 * @param[in] backend A pointer to the internal backend object.
97 explicit DALI_INTERNAL Backend( Internal::Backend* backend );
102 } // namespace Toolkit
106 #endif // __DALI_TOOLKIT_TEXT_BACKEND_H__